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

    bright-gpu-74537

    03/09/2023, 9:09 PM
    i think thats what i mean, with the resource plugins you can do all that... and more
  • p

    purple-businessperson-14467

    03/09/2023, 9:09 PM
    sure, I getcha
  • b

    bright-gpu-74537

    03/09/2023, 9:09 PM
    (i just have to remember how they work... they might need a tweak)
  • p

    purple-businessperson-14467

    03/09/2023, 9:10 PM
    No worries. This is a playgroud project for me still so...either way . Going down static lane at this point
  • b

    bright-gpu-74537

    03/09/2023, 9:11 PM
    https://github.com/haxeui/haxeui-core/tree/master/haxe/ui/assets
  • b

    bright-gpu-74537

    03/09/2023, 9:11 PM
    i have no idea what FontInfo and ImageInfo are doing there... they can go... thats the first thing
  • b

    bright-gpu-74537

    03/09/2023, 9:11 PM
    (goes to show how long its been since i looked at this stuff 😄 )
  • b

    bright-gpu-74537

    03/09/2023, 9:12 PM
    .. actually, i take it back... maybe its fine they are there... not sure...
  • b

    bright-gpu-74537

    03/09/2023, 9:13 PM
    yeah, ignore me... they are important where they are...
  • p

    purple-businessperson-14467

    03/09/2023, 9:14 PM
    I had thought about trying to use the new locale tool but thats all after compile USER=user ext={ #if html5 svg #else png #end }
  • b

    bright-gpu-74537

    03/09/2023, 9:15 PM
    yeah, that 100% aint gonna fly
  • b

    bright-gpu-74537

    03/09/2023, 9:15 PM
    (nor should it imo)
  • p

    purple-businessperson-14467

    03/09/2023, 9:15 PM
    agreed, but I had hope for some reason. Dashed they be
  • b

    bright-gpu-74537

    03/09/2023, 9:16 PM
    i think asset plugin is the way to go here... you can almost do it now:
    <asset-plugin id="assetNamePlugin" removeExtension="true" prefix="png" if="heaps" />
  • b

    bright-gpu-74537

    03/09/2023, 9:17 PM
    should be suffix, but that isnt supported (yet)
  • p

    purple-businessperson-14467

    03/09/2023, 9:25 PM
    can I use "static inline var" in xml? Im getting error that may be unrelated icon="assets/ciEvidence.${Main.ext}"
  • p

    purple-businessperson-14467

    03/09/2023, 9:25 PM
    I'm using @xml('
  • b

    bright-gpu-74537

    03/09/2023, 9:26 PM
    im not sure that is going to work... the data between icon="" isnt "pasted" into the haxe source "as is"... at least i dont think it is
  • p

    purple-businessperson-14467

    03/09/2023, 9:26 PM
    right, ok
  • p

    purple-businessperson-14467

    03/09/2023, 9:27 PM
    I thought maybe because ' in xml(' it might. Ok, it can wait
  • b

    bright-gpu-74537

    03/09/2023, 9:27 PM
    Field names starting with $ are not allowed
    its an interesting error though
  • b

    bright-gpu-74537

    03/09/2023, 9:28 PM
    dunno why its trying to create, or lookup, a field
  • b

    bright-gpu-74537

    03/09/2023, 9:28 PM
    but either way, its not "just a string"
  • p

    purple-businessperson-14467

    03/09/2023, 9:28 PM
    right
  • b

    bright-gpu-74537

    03/09/2023, 9:29 PM
    i do feel like though that this should be allowed / possible... its kinda nice (and feels normal)... ill check it out
  • b

    bright-gpu-74537

    03/09/2023, 9:30 PM
    (its the "." that screws up that example... use "_" and you get a different error)
  • b

    bright-gpu-74537

    03/09/2023, 9:31 PM
    ... hang on... isnt this all just compile time eval stuff, which haxeui fully supports... could be a simple as a bug
  • b

    bright-gpu-74537

    03/09/2023, 9:33 PM
    <button text="${1 + 1}" />
    is fine...
    <button text="answer = ${1 + 1}" />
    isnt... and that used to work, so yeah, a regression
  • p

    purple-businessperson-14467

    03/09/2023, 11:22 PM
    oh, nice find then
  • h

    happy-agent-4114

    03/10/2023, 12:05 AM
    Weirdly not the first time I've had problems with flixel
1...159315941595...1687Latest