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

    handsome-television-62908

    06/20/2020, 5:56 AM
    I could create a quick demo project in a few minutes I'm sure
  • h

    handsome-television-62908

    06/20/2020, 5:58 AM
    On another note, how have you been using kha with modules without using the '../asset' work around? I'm assuming this is supposed to be possible
  • b

    bright-gpu-74537

    06/20/2020, 5:59 AM
    i use "haxeui create kha" which moves somethings around
  • b

    bright-gpu-74537

    06/20/2020, 5:59 AM
    im almost certain i would have used modules there, but ill check
  • b

    bright-gpu-74537

    06/20/2020, 5:59 AM
    maybe i never tested "classes from xml files" though
  • b

    bright-gpu-74537

    06/20/2020, 5:59 AM
    which is when this issue comes to light, correct?
  • b

    bright-gpu-74537

    06/20/2020, 6:00 AM
    ie,
    <component file="../assets/file.xml" />
    in a
    module.xml
  • h

    handsome-television-62908

    06/20/2020, 6:00 AM
    Right! That should really be all there is to the bug
  • h

    handsome-television-62908

    06/20/2020, 6:00 AM
    and then you can't access it like
    assets.File
  • b

    bright-gpu-74537

    06/20/2020, 6:00 AM
    gotcha
  • b

    bright-gpu-74537

    06/20/2020, 6:01 AM
    and with your PR that works again? i presume normal non-".." paths still work also
  • b

    bright-gpu-74537

    06/20/2020, 6:03 AM
    btw, im going to have a play at rewriting the way custom components work in general thanks to that conversation yesterday, i think it can (possibly) be alot simpler and without that wrapper component
  • b

    bright-gpu-74537

    06/20/2020, 6:03 AM
    unless ive overlooked something and that wrapper component is needed
  • h

    handsome-television-62908

    06/20/2020, 6:03 AM
    Well I did just run into an error. Maybe I missed that actually
  • b

    bright-gpu-74537

    06/20/2020, 6:03 AM
    on a normal file class?
  • h

    handsome-television-62908

    06/20/2020, 6:04 AM
    No wait - I think it worked I'm just clumsy haha
  • b

    bright-gpu-74537

    06/20/2020, 6:04 AM
    🙂
  • h

    handsome-television-62908

    06/20/2020, 6:05 AM
    It did work, I forgot I gave my normal file path an alias
  • h

    handsome-television-62908

    06/20/2020, 6:05 AM
    I didn't make that same mistake when it's using
    ..
    though! I know that is true haha
  • h

    handsome-television-62908

    06/20/2020, 6:07 AM
    Also yeah - that sounds great! Components having an extra element around them have always felt a little off
  • b

    bright-gpu-74537

    06/20/2020, 6:08 AM
    yeah, im wondering if there was another reason as to why it was done that way... not sure yet
  • b

    bright-gpu-74537

    06/20/2020, 6:08 AM
    there could be something else im overlooking, but ill find out when i start playing
  • b

    bright-gpu-74537

    06/20/2020, 6:09 AM
    so, just to confirm, in your PR... the following xml => classes work:
  • b

    bright-gpu-74537

    06/20/2020, 6:10 AM
    <component file="../assets/class1.xml" />
    <component file="../../assets/class1.xml" />
    <component file="../../bob/../assets/class1.xml" />
    <component file="assets/class1.xml" />
    <component file="./assets/class1.xml" />
  • h

    handsome-television-62908

    06/20/2020, 6:16 AM
    Sorry - didn't catch this. Were you asking me to check on my end real quick?
  • b

    bright-gpu-74537

    06/20/2020, 6:44 AM
    yeah, just to see if the above work with your change
  • b

    bright-gpu-74537

    06/20/2020, 6:45 AM
    i think only
    <component file="assets/class1.xml" />
    will work without it
  • b

    bright-gpu-74537

    06/20/2020, 6:45 AM
    (if im understanding correctly anyway)
  • h

    handsome-television-62908

    06/20/2020, 7:00 AM
    Tested it - works!
  • h

    handsome-television-62908

    06/20/2020, 7:02 AM
    This all compiled and rendered together
1...290291292...1687Latest