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

    thousands-house-41767

    02/03/2020, 9:40 PM
    Oh I see... Thanks!
  • b

    bright-gpu-74537

    02/03/2020, 9:41 PM
    np
  • u

    user

    02/04/2020, 12:19 AM
    can we specify sliders with only one interactable square ? Also in the context of sliders is their a way to add a value representation on the side like they do in zui or do we have to add a label and update the value of the label on change ? @User
  • u

    user

    02/04/2020, 12:26 AM
    ok so for sliders I was using start and end but what I wanted was min and max. My other question still stands for the value representation
  • u

    user

    02/04/2020, 12:35 AM
    I did it the quick and dirty way for now
  • u

    user

    02/04/2020, 12:39 AM
    Ok so another question now 😛 So how do we have a slider with a step of one to increment Int's ?
  • u

    user

    02/04/2020, 12:40 AM
    What I mean is I want my slider to go up one each time I slide the value.
  • u

    user

    02/04/2020, 12:40 AM
    or down when I slide back
  • u

    user

    02/04/2020, 12:41 AM
    in a range from 1 - 10
  • b

    bright-yak-48460

    02/04/2020, 5:05 AM
    Does slider not have a stepper-like "step" prop? If not, then setting "precision"? I'd think them to obey the same rules. Forgive that I'm not at my computer atm.
  • b

    bright-gpu-74537

    02/04/2020, 8:38 AM
    @User : http://haxeui.org/builder/?puyvsf
  • b

    bright-gpu-74537

    02/04/2020, 8:38 AM
    ?
  • b

    bright-gpu-74537

    02/04/2020, 8:39 AM
    i do wonder if a "step" prop does also make sense though, i mean, the precision prop dosnt really make sense after 0... so the best you can do is get it in steps of 1, so, what if you wanted to create a slider of 1 -> 100 in steps of 10? 20? I dont think thats possible / easy at the moment
  • b

    bright-gpu-74537

    02/04/2020, 8:52 AM
    but i think for your use case, a step precision of 0 will probably suffice
  • c

    chilly-stone-82683

    02/04/2020, 11:37 AM
    Why am I mentioned
  • l

    lemon-candle-43865

    02/04/2020, 11:38 AM
    He meant to mention mundusnine.
  • b

    bright-gpu-74537

    02/04/2020, 11:40 AM
    oh, whoops... sorry! Wrong person 🙂
  • b

    bright-gpu-74537

    02/04/2020, 11:41 AM
    ^^ @User
  • u

    user

    02/04/2020, 1:07 PM
    Ok great thanks Ian. I did it in code but I prefer your method because its localized in markup so no siffting through code and back.
  • u

    user

    02/04/2020, 1:08 PM
    I guess a step would make sense yes.
  • u

    user

    02/04/2020, 2:01 PM
    euhm... the method you showed fails when using the ComponentMacros.build. It says that the the slider1 is null and it cant get get_value from it.
  • u

    user

    02/04/2020, 2:01 PM
    @:build(haxe.ui.macros.ComponentMacros.build("../Assets/custom/sliders-arecool.xml"))
  • u

    user

    02/04/2020, 2:02 PM
    Should I file an issue in github or do you have an idea what it could be ? @User
  • b

    bright-gpu-74537

    02/04/2020, 2:21 PM
    issue might make sense, but if thats the xml i pasted, i dont see why it shouldnt work
  • b

    bright-gpu-74537

    02/04/2020, 2:21 PM
    ill have to check it out later though
  • u

    user

    02/04/2020, 3:20 PM
    the issue is maybe in the order things are built. It was essentially the same xml with different names: https://github.com/haxeui/haxeui-core/issues/327
  • u

    user

    02/04/2020, 3:21 PM
    I found another related to numbersteppers with ComponentMacros: https://github.com/haxeui/haxeui-core/issues/326
  • u

    user

    02/04/2020, 3:23 PM
    If you have any questions dont hesitate. If ever you would like access to the project I could add you to the project but I imagine you prefer smaller containerized issues :P.
  • b

    bright-gpu-74537

    02/04/2020, 3:24 PM
    for sure, small test apps to reproduce that specific issue are perfect... thanks! Ill take a look a little later
  • u

    user

    02/04/2020, 3:25 PM
    No rush. I have workarounds for now. 🙂
1...176177178...1687Latest