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

    refined-cat-44047

    12/15/2022, 2:09 AM
    yeah
  • a

    ambitious-knife-25690

    12/15/2022, 2:10 AM
    Here's an older version of the Http class that has references to flash, you can strip out all of the non flash definitions. Name the file
    HttpFlash.hx
    and place at
    haxe.http.Http
    in your own project
  • a

    ambitious-knife-25690

    12/15/2022, 2:11 AM
    copy
    haxe.Http
    into your own project at the same package location as the std
  • a

    ambitious-knife-25690

    12/15/2022, 2:11 AM
    but add your own definition like so
  • r

    refined-cat-44047

    12/15/2022, 2:11 AM
    oh awesome, so it will use my copy first! before the one from Haxe?
  • a

    ambitious-knife-25690

    12/15/2022, 2:11 AM
    Copy code
    hx
    package haxe;
    
    #if sys
    typedef Http = sys.Http;
    #elseif nodejs
    typedef Http = haxe.http.HttpNodeJs;
    #elseif js
    typedef Http = haxe.http.HttpJs;
    #elseif flash
    typedef Http = haxe.http.HttpFlash;
    #else
    typedef Http = haxe.http.HttpBase;
    #end
  • r

    refined-cat-44047

    12/15/2022, 2:11 AM
    oh nice!
  • a

    ambitious-knife-25690

    12/15/2022, 2:12 AM
    no idea if that's all you'd need to do tho 😆
  • r

    refined-cat-44047

    12/15/2022, 2:12 AM
    haha, well that is an amazing start. Thank you so much for this!
  • a

    ambitious-knife-25690

    12/15/2022, 2:13 AM
    Actually, you don't even need to modify the old
    haxe.Http
  • a

    ambitious-knife-25690

    12/15/2022, 2:13 AM
    just copy it to the file
    haxe.http.HttpFlash
  • a

    ambitious-knife-25690

    12/15/2022, 2:14 AM
    it won't be used on the other targets anyway cause of the above definitions 😆
  • r

    refined-cat-44047

    12/15/2022, 2:15 AM
    oh yeah nice
  • r

    refined-cat-44047

    12/15/2022, 2:15 AM
    So I assume there is a hierarchy for imports. Like it will use the copy of
    haxe.Http
    inside my project, before it gets it from Haxe? If I ended up doing it that way
  • a

    ambitious-knife-25690

    12/15/2022, 2:15 AM
    yep, it's called class shadowing
  • a

    ambitious-knife-25690

    12/15/2022, 2:16 AM
    haxe will use the module closest to your project
  • r

    refined-cat-44047

    12/15/2022, 2:16 AM
    oh awesome! That is very good to know
  • r

    refined-cat-44047

    12/15/2022, 2:17 AM
    oh yeah, that seems super powerful, and will probably help me a lot. I guess you have to be a bit careful though 😄
  • a

    ambitious-knife-25690

    12/15/2022, 2:18 AM
    be as messy as you want, you only affect your own project :D
  • r

    refined-cat-44047

    12/15/2022, 2:23 AM
    yeah, that's what I am afraid of haha. Na, seems really good. Thanks for you help! I will try this out
  • f

    famous-alarm-22563

    12/15/2022, 10:39 AM
    haxeui seems to be broken on mac
  • f

    famous-alarm-22563

    12/15/2022, 10:40 AM
    the on click handler only triggers when i click to the right of and below the button.
  • f

    famous-alarm-22563

    12/15/2022, 10:40 AM
    I think this is because i'm mixing flixel and haxeui event handlers again... I wish we had tests for bkends
  • b

    bright-gpu-74537

    12/15/2022, 10:43 AM
    > I think this is because i'm mixing flixel and haxeui event handlers again you shouldnt be doing that... it might work, but it sounds like that might be the issue... got any code?
  • f

    famous-alarm-22563

    12/15/2022, 10:43 AM
    linux works fine i don't have a copy of windows on me so not sure if that works
  • b

    bright-gpu-74537

    12/15/2022, 10:44 AM
    weird that its not consistent though
  • f

    famous-alarm-22563

    12/15/2022, 10:44 AM
    I'm on the move atm.. gonna be hard ot sit and get an example up.. Just create a haxeui button with an onclick handleer
  • b

    bright-gpu-74537

    12/15/2022, 10:45 AM
    well, i know for a fact that works as ive been playing with haxeui-flixel this morning and all was fine
  • f

    famous-alarm-22563

    12/15/2022, 10:45 AM
    (center it iwth horizontal and vertical algin.. button is inside a box)
  • b

    bright-gpu-74537

    12/15/2022, 10:45 AM
    so you'll have to supply code (when you can) - i dont have time to spend recreating issues where im not sure what the source is like
1...133513361337...1687Latest