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

    bright-gpu-74537

    11/29/2019, 8:54 AM
    and your alternative is to have haxeui process the css -> scss at compile time in a macro or something?
  • h

    handsome-television-62908

    11/29/2019, 8:55 AM
    Well.. I think I'm kind of stuck with HaxeUI processing it during run-time which may be less than desirable, but it's what I'm working with right now
  • h

    handsome-television-62908

    11/29/2019, 8:56 AM
    And it's because I'm trying to see how I can make styling for Coconut over HaxeUI more seamless
  • b

    bright-gpu-74537

    11/29/2019, 8:57 AM
    so coconut doesnt like haxeui css?
  • h

    handsome-television-62908

    11/29/2019, 9:01 AM
    Well, the coconut compatibility with HaxeUI is bare-bones by the very definition. I mean, there might actually be less than 3-400 lines of code (possibly less tbh) to make coconut work on top of HaxeUI. So you can imagine just how "integrated" it is. It's not that Coconut doesn't like HaxeUI css . . . it's just that the only thing Coconut supports as far as the XML-tags goes is whatever extends from
    haxe.ui.core.Component
    and wraps its own helper methods around it.
  • h

    handsome-television-62908

    11/29/2019, 9:01 AM
    I believe the Style tag is not a component, but a sort of "meta" thing
  • b

    bright-gpu-74537

    11/29/2019, 9:01 AM
    ah
  • b

    bright-gpu-74537

    11/29/2019, 9:01 AM
    yeah... its not processed in the same way
  • b

    bright-gpu-74537

    11/29/2019, 9:02 AM
    or or
  • h

    handsome-television-62908

    11/29/2019, 9:02 AM
    yeah none of that is supported
  • b

    bright-gpu-74537

    11/29/2019, 9:02 AM
    maybe some others i cant quite remember
  • h

    handsome-television-62908

    11/29/2019, 9:02 AM
    yeah, like the tag
  • h

    handsome-television-62908

    11/29/2019, 9:02 AM
    That's not really a component I think
  • b

    bright-gpu-74537

    11/29/2019, 9:02 AM
    yeah, data too
  • b

    bright-gpu-74537

    11/29/2019, 9:03 AM
    can it use the haxeui xml parser?
  • h

    handsome-television-62908

    11/29/2019, 9:05 AM
    It quite possibly could, I think the only thing it "really" needs in order to work "properly" with HaxeUI is for tink.Hxx to understand how to interrop with HaxeUI and for Coconut to add some meta-fields to the real components (for tracking data changes). The meta-field /data-change tracking could probably stay how it is, but the thing I believe "really" needs to be done for real haxeui xml parsing would be the hxx implementation
  • h

    handsome-television-62908

    11/29/2019, 9:07 AM
    I actually believe it wouldn't be such a terribly difficult thing to do, but I'd have to understand some more details first. I think I get Hxx and Coconut's way of wrapping over HaxeUI for the most part, but I couldn't even begin to wrap my head around how HaxeUI does its parsing and how I could better integrate the two.
  • b

    bright-gpu-74537

    11/29/2019, 9:10 AM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/parsers/ui/XMLParser.hx
  • b

    bright-gpu-74537

    11/29/2019, 9:10 AM
    so basically you call "new XMLParser("")" and a resourceResolver (if you want for things like )
  • b

    bright-gpu-74537

    11/29/2019, 9:11 AM
    out of that you get a "ComponentInfo" which is basically all the component properties
  • h

    handsome-television-62908

    11/29/2019, 9:34 AM
    Ahh. So it appears that I was actually wrong about what the Hxx api was doing and what I thought Coconut was doing. So actually making use of the HaxeUI parser would probably not be the best thing to do for compatibility reasons . . .
  • h

    handsome-television-62908

    11/29/2019, 9:38 AM
    I'll need to do some more digging and playing around with the two technologies. But right now CSS is definitely the most nagging discontinuity between the two
  • h

    handsome-television-62908

    11/29/2019, 10:18 AM
    Well, I got a pretty seamless haxeui+coconut with CSS working now I guess haha
  • b

    bright-gpu-74537

    11/29/2019, 10:35 AM
    via addStyleString?
  • h

    handsome-television-62908

    11/29/2019, 10:47 AM
    Yes!
  • h

    handsome-television-62908

    11/29/2019, 10:47 AM
    And Cix
  • h

    handsome-television-62908

    11/29/2019, 10:49 AM
    The only "immersion" break would be that Cix needs to make a backlog of all of the generated CSS requests until HaxeUI.toolkit was initiated
  • h

    handsome-television-62908

    11/29/2019, 10:49 AM
    I think I could make a macro to insert its own "init" function within Toolkits, but not worth it for me at the moment lol
  • b

    bright-gpu-74537

    11/29/2019, 10:51 AM
    Cix?
  • h

    handsome-television-62908

    11/29/2019, 10:52 AM
    Yes https://github.com/back2dos/cix
1...147148149...1687Latest