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

    refined-cat-44047

    01/24/2023, 10:01 PM
    oh yeah, that sounds like what I want, I think. I would prefer all styles remain in css, rather than having some in Haxe code. Can you have multiple themes, and have them inherit from a "base" theme
  • e

    elegant-twilight-61392

    01/24/2023, 10:02 PM
    would it make more sense for haxeui-hxgodot to be "more like" a native backend and use Godot's ui components and styling or "more like" a composite backend where everything is drawn basically 🤔
  • f

    full-journalist-82607

    01/24/2023, 10:11 PM
    You could also do like the old html5 where you could chose native for a component or not. I don't know enough godot to help in your decision
  • b

    bright-gpu-74537

    01/24/2023, 10:11 PM
    http://haxeui.org/builder/?b05fdb7b ?
  • b

    bright-gpu-74537

    01/24/2023, 10:12 PM
    i think it would a) depend on the "fullness" of the godot UI and b) how well / easy it would map to haxeui - in general "native" backends are a lot more work
  • b

    bright-gpu-74537

    01/24/2023, 10:13 PM
    the module.xml for that is:
    Copy code
    xml
    <module>
        <themes>
            <customTheme parent="default">
                <var name="normal-background-color-start" value="#FFCCCC" />
                <var name="normal-background-color-end" value="#FF8888" />
                <var name="normal-border-color" value="#FF2222" />
                <var name="accent-color" value="#FF2222" />
                <var name="normal-text-color" value="white" />
            </customTheme>
        </themes>
    </module>
  • r

    refined-cat-44047

    01/24/2023, 10:13 PM
    Oh awesome! Thanks. I was just about to ask what "customTheme" was is this case, and where it was getting the red from! Thanks!
  • b

    bright-gpu-74537

    01/24/2023, 10:14 PM
    fyi, on the builder you can do View -> Project
  • b

    bright-gpu-74537

    01/24/2023, 10:14 PM
    then you can see all the files that were used
  • r

    refined-cat-44047

    01/24/2023, 10:14 PM
    OOhhhh, this changes everything! haha
  • r

    refined-cat-44047

    01/24/2023, 10:15 PM
    very cool!
  • b

    bright-gpu-74537

    01/24/2023, 10:22 PM
    so for your stuff, you can basically just do what the default theme does: http://haxeui.org/builder/?25c2d3f8
  • r

    refined-cat-44047

    01/24/2023, 10:24 PM
    oh yeah, that is super cool. I will give that a go.
  • f

    full-journalist-82607

    01/24/2023, 11:01 PM
    @bright-gpu-74537 Cells !
  • e

    elegant-twilight-61392

    01/24/2023, 11:06 PM
    godots ui stuff is pretty extensive what kinds of "elements" would a "native" backend need to have to make it worth using? godot has containers, buttons, dropdowns, text edit boxes, sliders, etc that seem like they could be easily mapped to elements in haxeui
  • e

    elegant-twilight-61392

    01/24/2023, 11:06 PM
    heres one of their example images for what nodes it has
  • f

    full-journalist-82607

    01/24/2023, 11:18 PM
    Maybe you can begin with composite ( as it's less work) and add the native ? I would think composite is cool for normal godot users that want would another gui, and native is cool for haxe users who want to haxify godot
  • e

    elegant-twilight-61392

    01/24/2023, 11:18 PM
    well the godot ui is fully styleable already
  • e

    elegant-twilight-61392

    01/24/2023, 11:19 PM
    that image is the default look, but you can change basically everything about it if you want
  • e

    elegant-twilight-61392

    01/24/2023, 11:21 PM

    https://docs.godotengine.org/en/latest/_images/tank-kings-by-winterpixel-games.pngâ–¾

    like this is also using godots ui tools
  • a

    ambitious-knife-25690

    01/24/2023, 11:30 PM
    hehe everyone making haxeui backends
  • a

    ambitious-knife-25690

    01/24/2023, 11:31 PM
    this is actually super cool 😄
  • a

    ambitious-knife-25690

    01/24/2023, 11:39 PM
    from the looks of it godot employs the mentality that haxeui does for composites when it comes to custom components
  • a

    ambitious-knife-25690

    01/24/2023, 11:40 PM
    their components might not actually be "real" native, but simply provided composite buttons
  • a

    ambitious-knife-25690

    01/24/2023, 11:43 PM
    I'm not sure if this will make sense
  • a

    ambitious-knife-25690

    01/24/2023, 11:44 PM
    if the above is true, the route to go might be composite backend and expose the native control options through some kind of haxeui flag
  • e

    elegant-twilight-61392

    01/24/2023, 11:52 PM
    well yeah, the buttons are not native buttons
  • a

    ambitious-knife-25690

    01/24/2023, 11:55 PM
    if you go native backend, you'd get default native skinning
  • e

    elegant-twilight-61392

    01/24/2023, 11:56 PM
    when i said "native" (in quotation marks) i meant mapping haxeui elements to godot nodes, not literally native ui stuff
  • a

    ambitious-knife-25690

    01/24/2023, 11:57 PM
    yeah, my bad, i read it like wxwidgets native
1...140214031404...1687Latest