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

    famous-alarm-22563

    12/08/2022, 10:20 AM
    they seem soooo easy to ddos
  • f

    famous-alarm-22563

    12/08/2022, 10:20 AM
    I've never made one but still.. how do you secure one 🤔
  • b

    bright-gpu-74537

    12/08/2022, 10:20 AM
    or just flat out eat all the HDD space
  • b

    bright-gpu-74537

    12/08/2022, 10:21 AM
    run it in a docker sandbox, delete the results a) after an amount of time b) when a certain threshold is reached
  • b

    bright-gpu-74537

    12/08/2022, 10:21 AM
    none of which the haxeui builder is doing
  • f

    famous-alarm-22563

    12/08/2022, 10:21 AM
    docker is the holy grail.
  • f

    famous-alarm-22563

    12/08/2022, 10:22 AM
    anyway, I'm getting distracted.. I need to go fix my ui instead of talk to the creator of the ui library 😛
  • b

    bright-gpu-74537

    12/08/2022, 10:22 AM
    i had my haxe ide thing running its compiles in docker... worked out really nice...
  • b

    bright-gpu-74537

    12/08/2022, 10:22 AM
    valid point... need to get one with stuff too... 👋
  • h

    hallowed-ocean-84954

    12/09/2022, 2:50 AM
    I think this falls into the custom component category but here goes. Is there anything like a logarithmic slider ? I have a slider for the quadratic constant for light attenuation over distance. But that constant is very sensitive at low values (because it's the quad const) and relatively insensitive above a certain range. Now I could limit the slider to the sensitive range of course. But I wondered if it would be possible to create a log slider which used the bulk of the sensitivity (amount of movement), say half the width for the sensitive range with a pretty small step, then after the end of the part of the range used much bigger step. Some of log scaling would probably go close. Ok so I guess I see one way to do this. Create a linear slider of the exponent and do it that way. It wouldn't change the step size but you could show the current value as a^b and that would indicate where you were. But the tick marks wouldn't indicate it was log. Would have to label it but that would likely seem odd. But then maybe a slider with uneven movement would seem odd too. Anyhow, not a must have - just thinking about UI.
  • h

    hallowed-ocean-84954

    12/09/2022, 3:11 AM
    Ok odd thing with frames If you try this one out: click on Light Casters then on deselect Directional Light then select it again So far the nested frames look fine. Now select Point Light Now the frames overlap. If you reload and start again and do this: click on Light Casters click on PointLight deselect either PointLight or Directional Light. reselect either or both and all the while the frame nesting is fine. I note the width of the frame doesn't seem to decrease once it gets a value. I'm guessing this is all done lazily and that once an element has a width something needs to trigger reevaluation of it.
  • b

    bright-gpu-74537

    12/11/2022, 9:04 AM
    heres the minmal repro for the above btw: http://haxeui.org/builder/?a2d27eb3 Seems frame doesnt honour auto sizing correctly... which is strange since it should be line any other component... unless ive given it a custom layout and screwed it up
  • b

    bright-gpu-74537

    12/11/2022, 9:19 AM
    alright, fixed, both examples work correctly now on the playground
  • b

    bright-gpu-74537

    12/11/2022, 9:26 AM
    (actually, not quite, it breaks other things)
  • b

    bright-gpu-74537

    12/11/2022, 10:24 AM
    alright, now its all working... test apps above work, and so does this now: http://haxeui.org/builder/?8a029765
  • f

    few-pizza-8232

    12/11/2022, 5:42 PM
    Is there a intended way to "snap" draggable objects to intervals or anchors? I can do it by creating invisible draggable masks separate from what the user sees as draggable elements but I figured I'd make sure there's no intended way, first
  • h

    hallowed-ocean-84954

    12/11/2022, 6:21 PM
    Many thanx for that - btw is there any way to format a float to n decimal places ? You'll notice the 0.22000000002 min value caused by the division. I don't think Haxe itself has a convenient way to do this - is there any CSS trick I can play. I could just hard code the min label but that just goes against the grain
  • b

    bright-gpu-74537

    12/11/2022, 6:25 PM
    if im understanding correctly, there is nothing inbuilt in haxeui that that snaps draggables... might be a nice enhancement at some point though
  • b

    bright-gpu-74537

    12/11/2022, 6:26 PM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/util/MathUtil.hx#L11 ?
  • h

    hallowed-ocean-84954

    12/11/2022, 6:26 PM
    oh nice !
  • h

    hallowed-ocean-84954

    12/11/2022, 6:26 PM
    that's exactly what I need
  • h

    hallowed-ocean-84954

    12/11/2022, 6:26 PM
    thanx
  • f

    few-pizza-8232

    12/11/2022, 6:28 PM
    Alright, good to confirm. My use case is probably too specific for me to 1. build into the library and 2. PR an implementation at this point, but if I think of a good way to generalize it I might take a crack at that later
  • b

    bright-gpu-74537

    12/11/2022, 6:28 PM
    cool, well, once you have something, even if its quite specific it would be good to see it, just so i can "keep it in mind" for future changes 🙂
  • h

    hallowed-ocean-84954

    12/11/2022, 6:38 PM
    Ah, alas MathUtil.round isn't cutting it because the errors in floating point calcs introducing stray values many places out. I really need a StringFormat 0.2%f kind of thing (which doesn't exist) - I can do that in a cbk function I guess
  • f

    full-journalist-82607

    12/11/2022, 7:23 PM
    Back to the internet ! 🙂 And a few little bugs, - changing languages don't work in tabs http://haxeui.org/builder/?0b06321d ( I looked at but the Locale event seems quite mysterious to me) - having a dropdown with a text attribute crashes in hxwidget , but there's a workaround to not make it crash ( but it won't show the text)
    Copy code
    haxe
    class ChoiceSelectedLabel extends DataBehaviour {
        public override function get():Variant {
        
            var choice:Choice = cast(_component.window, Choice);
            if (choice == null) return null; // added this
            return choice.selectedString;
        }
    }
  • h

    hallowed-ocean-84954

    12/11/2022, 7:41 PM
    Ok I have a solution that works. I listen on the READY event for the slider and format the min and max strings in the labels. .
  • b

    bright-gpu-74537

    12/11/2022, 9:35 PM
    i feel like i might have fixed (or broken?) something around this area verrrry recently... i changed the way native component lookups work, in that they could be recursive, which meant dropdown would also inherit some "button" native behaviours... are you on git everything? I might have missed some things... im still convinced its a good change, just maybe there are some "free radicals" ( 😄 ) to mop up
  • b

    bright-gpu-74537

    12/11/2022, 9:35 PM
    hmmm, maybe a "StringUtils.format" would be a nice addition
  • h

    hallowed-ocean-84954

    12/11/2022, 9:36 PM
    often thought it
1...132913301331...1687Latest