https://linen.dev logo
Join Discord
Powered by
# ceramic
  • f

    faint-toothbrush-51643

    05/08/2023, 8:37 PM
    i'm not intimately familiar with ceramic's loading and scene management system
  • f

    faint-toothbrush-51643

    05/08/2023, 8:37 PM
    i delved into it a while ago but not completely
  • b

    billowy-waiter-28954

    05/08/2023, 8:53 PM
    You can override the scene load() method and call the callback after running a Timer.delay()
  • g

    gifted-whale-78169

    05/09/2023, 10:07 PM
    can you please give an example of how i would update my scene layout on resize?
  • g

    gifted-whale-78169

    05/09/2023, 10:08 PM
    would i need to explicitly resize my scene size or something like that? im not exactly sure
  • g

    gifted-whale-78169

    05/10/2023, 1:20 AM
    pretty sure i noted this before but pointerUp doesnt seem to work
  • g

    gifted-whale-78169

    05/10/2023, 1:36 AM
    almost got a functional dropdown menu, one more bug
  • g

    gifted-whale-78169

    05/10/2023, 1:36 AM
    supposedly anyways
  • b

    billowy-waiter-28954

    05/10/2023, 6:46 AM
    pointerUp
    event on a visual will only be triggered if you are listening to
    pointerDown
    as well, and that
    pointerDown
    has triggered on this visual
  • b

    billowy-waiter-28954

    05/10/2023, 6:47 AM
    Well, you can override
    resize()
    method of your
    Scene
    and do whatever you wish with your
    width
    and
    height
    properties
  • g

    gifted-whale-78169

    05/10/2023, 10:50 AM
    I'll have to double check but updating the scene width and height to the new window actualWidth and actualHeight didn't do anything
  • g

    gifted-whale-78169

    05/10/2023, 10:50 AM
    I tried onResize for the app.screen and scene, neither worked
  • b

    billowy-waiter-28954

    05/10/2023, 11:35 AM
    @gifted-whale-78169 The scene is already resizing itself automatically (as long as you assigned to
    app.scenes.main
    or
    app.scenes.set(...)
    , but of course you need to take care of what's inside, using the new scene's width and height
  • g

    gifted-whale-78169

    05/10/2023, 11:36 AM
    oh alright
  • a

    ambitious-knife-25690

    05/10/2023, 11:36 AM
  • a

    ambitious-knife-25690

    05/10/2023, 11:36 AM
    the event is created in the constructor of the file
  • a

    ambitious-knife-25690

    05/10/2023, 11:36 AM
    an example usage
  • g

    gifted-whale-78169

    05/10/2023, 11:56 AM
    ๐Ÿ™
  • g

    gifted-whale-78169

    05/10/2023, 11:57 AM
    will check out once I get home
  • f

    faint-toothbrush-51643

    05/10/2023, 8:08 PM
    in
    Visual.hx
    Copy code
    hx
    #if ceramic_no_depth_range
        public var depthRange(default,set):Float = -1;
        #else
        public var depthRange(default,set):Float = 1;
        #end
        function set_depthRange(depthRange:Float):Float {
            if (this.depthRange == depthRange) return depthRange;
            this.depthRange = depthRange;
            ceramic.App.app.hierarchyDirty = true;
            return depthRange;
        }
  • f

    faint-toothbrush-51643

    05/10/2023, 8:08 PM
    where can I change
    ceramic_no_depth_range
    ?
  • b

    billowy-waiter-28954

    05/10/2023, 8:57 PM
    Thatโ€™s a flag to use legacy behavior, mostly related to a game that was using Ceramic before depthRange was defaulting to 1. Why would you want to change that define though? You can always set depthRange on a visual at runtime
  • b

    billowy-waiter-28954

    05/10/2023, 8:58 PM
    But anyway you can enable that define like any other defines in ceramic.yml
  • f

    faint-toothbrush-51643

    05/10/2023, 9:01 PM
    oh
  • f

    faint-toothbrush-51643

    05/10/2023, 9:01 PM
    just noticed the problem
  • f

    faint-toothbrush-51643

    05/10/2023, 9:03 PM
    i was wondering why the depths seemed to be behaving oddly and that line was indicated as having no effect
  • f

    faint-toothbrush-51643

    05/10/2023, 9:09 PM

    https://cdn.discordapp.com/attachments/853414608747364352/1105964831728742440/image.pngโ–พ

  • b

    billowy-waiter-28954

    05/10/2023, 9:15 PM
    Is that even valid haxe ๐Ÿ˜†?
  • f

    faint-toothbrush-51643

    05/10/2023, 10:33 PM
    apparently it is
  • a

    ambitious-knife-25690

    05/10/2023, 10:35 PM
    i believe this is just a bug with haxe
1...119120121...124Latest