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

    ambitious-knife-25690

    01/24/2023, 11:57 PM
    but i'm not sure if it matters
  • a

    ambitious-knife-25690

    01/24/2023, 11:58 PM
    cause i'm wondering if your implementation would actually be composite haxeui -> native composite godot
  • a

    ambitious-knife-25690

    01/24/2023, 11:58 PM
    if that makes sense?
  • e

    elegant-twilight-61392

    01/25/2023, 12:12 AM
    to make a composite backend, you just implement whatever methods it needs to draw the composite components, right?
  • e

    elegant-twilight-61392

    01/25/2023, 12:12 AM
    and then all the composite components should Just Work ™️
  • e

    elegant-twilight-61392

    01/25/2023, 12:13 AM
    but im not sure what the best way to "arbitrarily" draw stuff in godot is
  • e

    elegant-twilight-61392

    01/25/2023, 12:13 AM
    and also handling input could be a challenge
  • e

    elegant-twilight-61392

    01/25/2023, 12:14 AM
    but if i just use godots text input or button nodes for a haxeui input or button, i get mouse and keyboard input for free
  • a

    ambitious-knife-25690

    01/25/2023, 12:16 AM
    so the way you do it, is you take the common "visual" component
  • a

    ambitious-knife-25690

    01/25/2023, 12:17 AM
    and you draw to that
  • a

    ambitious-knife-25690

    01/25/2023, 12:17 AM
    ideally, that component will accept children to make it easier
  • a

    ambitious-knife-25690

    01/25/2023, 12:18 AM
    an
    ComponentSurface
    is an
    FlxSpriteGroup
    for flixel as an example
  • e

    elegant-twilight-61392

    01/25/2023, 12:18 AM
    but you have to actually be able to draw on something
  • a

    ambitious-knife-25690

    01/25/2023, 12:19 AM
    kind of, but not really
  • e

    elegant-twilight-61392

    01/25/2023, 12:19 AM
    like in a webbrowser you can draw on a canvas with javascript
  • a

    ambitious-knife-25690

    01/25/2023, 12:19 AM
    haxeui is really smart 😄
  • e

    elegant-twilight-61392

    01/25/2023, 12:19 AM
    although haxeui just uses divs in html5
  • a

    ambitious-knife-25690

    01/25/2023, 12:19 AM
    technically, all you really need to know how to draw are lines, boxes and colours
  • e

    elegant-twilight-61392

    01/25/2023, 12:19 AM
    yeah thats what i dont know how to do lol
  • e

    elegant-twilight-61392

    01/25/2023, 12:20 AM
    there doesnt seem to be a canvas node, and im not sure if godot exposes drawing methods for those
  • a

    ambitious-knife-25690

    01/25/2023, 12:20 AM
    lack of experience in godot, or not sure how to translate godot to haxeui?
  • l

    late-engine-8731

    01/25/2023, 12:21 AM
    https://docs.godotengine.org/en/latest/classes/class_canvasitem.html
  • l

    late-engine-8731

    01/25/2023, 12:21 AM
    should be all there 🙂
  • e

    elegant-twilight-61392

    01/25/2023, 12:21 AM
    well im blind
  • a

    ambitious-knife-25690

    01/25/2023, 12:21 AM
    hey daz, how high level is godot?
  • e

    elegant-twilight-61392

    01/25/2023, 12:21 AM
    lol
  • l

    late-engine-8731

    01/25/2023, 12:21 AM
    define high level
  • a

    ambitious-knife-25690

    01/25/2023, 12:22 AM
    is it like sdl/kha/lime or is it more like flixel/openfl
  • e

    elegant-twilight-61392

    01/25/2023, 12:22 AM
    it more like unity
  • e

    elegant-twilight-61392

    01/25/2023, 12:22 AM
    lol
1...140314041405...1687Latest