https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • m

    melodic-advantage-23638

    01/26/2023, 1:52 AM
    As a work around
  • e

    elegant-twilight-61392

    01/26/2023, 1:53 AM
    Copy code
    /home/leotomas/haxe/haxelib/haxeui-core/git/haxe/ui/core/ComponentContainer.hx:61: characters 32-38 : Redefinition of variable _ready in subclass is not allowed. Previously declared at godot.Node
    happens if i
    typedef ComponentSurface = godot.Control;
  • m

    melodic-advantage-23638

    01/26/2023, 1:53 AM
    Instead of creating a CanvasItem can you create a new class MyCanvasItem
  • e

    elegant-twilight-61392

    01/26/2023, 1:54 AM
    well i tried making
    HaxeUINode
    that extends
    Control
    and it stores a reference to the
    Component
    that uses it so it can call a custom draw method from there
  • m

    melodic-advantage-23638

    01/26/2023, 1:55 AM
    Can that class be aware of the haxeui component that contains it and then override the _draw function and draw the component
  • e

    elegant-twilight-61392

    01/26/2023, 1:55 AM
    but for some reason the type doesnt exist and im very confused
  • e

    elegant-twilight-61392

    01/26/2023, 1:55 AM
    oh wait im just stupid
  • e

    elegant-twilight-61392

    01/26/2023, 1:55 AM
    i renamed the class but not the file lol
  • e

    elegant-twilight-61392

    01/26/2023, 1:57 AM
    a
    ComponentSurface
    will always actually be at least a
    Component
    , right?
  • m

    melodic-advantage-23638

    01/26/2023, 1:57 AM
    Other sat around
  • m

    melodic-advantage-23638

    01/26/2023, 1:58 AM
    Other way around
  • e

    elegant-twilight-61392

    01/26/2023, 1:58 AM
    well Component (indirectly) extends ComponentSurface
  • m

    melodic-advantage-23638

    01/26/2023, 1:58 AM
    Yes
  • e

    elegant-twilight-61392

    01/26/2023, 1:58 AM
    but does haxeui ever make a componentsurface that isnt a Component
  • m

    melodic-advantage-23638

    01/26/2023, 1:59 AM
    Not sure on that one
  • a

    ambitious-knife-25690

    01/26/2023, 1:59 AM
    it doesn't
  • e

    elegant-twilight-61392

    01/26/2023, 2:00 AM
    solution to drawing problems maybe
  • a

    ambitious-knife-25690

    01/26/2023, 2:02 AM
    oh haha
  • m

    melodic-advantage-23638

    01/26/2023, 2:02 AM
    Yep
  • m

    melodic-advantage-23638

    01/26/2023, 2:03 AM
    I thought you'd have the haxeuinode in ComponentImpl but that works
  • a

    ambitious-knife-25690

    01/26/2023, 2:05 AM
    componentimpl inherits from this class so it's the same
  • a

    ambitious-knife-25690

    01/26/2023, 2:05 AM
    just a bit more contained
  • m

    melodic-advantage-23638

    01/26/2023, 2:07 AM
    Yep
  • f

    full-journalist-82607

    01/26/2023, 8:55 AM
    Is there an easy to see by code if a dropdown is shown or not ?
  • b

    bright-gpu-74537

    01/26/2023, 8:56 AM
    nope, not as far as i remember, it should be fairly easy to add though
  • f

    full-journalist-82607

    01/26/2023, 8:58 AM
    okay, thanks for the info 🙂 It would be useful addition ( at least for me :p)
  • b

    bright-gpu-74537

    01/26/2023, 9:31 AM
    alright, added:
    DropDown.dropDownOpen
    ... ... you can also set it (true/false) to open the dropdown programmatically (it just calls
    showDropDown()
    or
    hideDropDown()
    )
  • f

    full-journalist-82607

    01/26/2023, 9:32 AM
    Awesome ! Thanks
  • b

    bright-gpu-74537

    01/26/2023, 10:06 AM
    OK,
    _ready
    has been renamed to
    _componentReady
    so you shouldnt get the conflict now if you wanted to use inheritance
  • a

    ambitious-knife-25690

    01/26/2023, 10:52 AM
    Gaahhh, clipping almost done
1...141414151416...1687Latest