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

    bright-gpu-74537

    09/16/2019, 8:31 PM
    1.1.0?
  • b

    bright-gpu-74537

    09/16/2019, 8:31 PM
    you mean you can have multiple? You defo can and they maintain %
  • b

    bright-gpu-74537

    09/16/2019, 8:31 PM
    let me grab my test
  • l

    loud-salesclerk-7438

    09/16/2019, 8:32 PM
    I mean version 1.1.0 so you can release 1.0.0 before adding new components
  • l

    loud-salesclerk-7438

    09/16/2019, 8:33 PM
    (assuming semver)
  • b

    bright-gpu-74537

    09/16/2019, 8:35 PM
    yeah, i need to release
  • b

    bright-gpu-74537

    09/16/2019, 8:35 PM
    but issues keep cropping up, which will always be the case
  • b

    bright-gpu-74537

    09/16/2019, 8:35 PM
    :/
  • l

    loud-salesclerk-7438

    09/16/2019, 8:36 PM
    if issues stop coming up, that either means nobody uses your project, or it's 100% bugfree and everbody immediately knows how to use it
  • b

    bright-gpu-74537

    09/16/2019, 8:37 PM
    haha, yeah, so nobody uses your project if its "bug free"
  • b

    bright-gpu-74537

    09/16/2019, 8:38 PM
    (note this is html5, its just the back end im using)
  • l

    loud-salesclerk-7438

    09/16/2019, 8:39 PM
    lots of sliders... looking good
  • b

    bright-gpu-74537

    09/16/2019, 8:40 PM
    well, its about it being possible
  • b

    bright-gpu-74537

    09/16/2019, 8:40 PM
    native isnt actually that diificult now
  • b

    bright-gpu-74537

    09/16/2019, 8:40 PM
    Copy code
    xml
        <splitter width="100%" height="100%" direction="vertical">
            <splitter width="100%" height="100%" direction="horizontal">
                
                <box width="100%" height="100%" style="background-color: #FFCCCC;padding:10px;">
                    <button width="100%" height="100%" text="100% x 100%" />
                </box>    
                
                <splitter width="200" height="100%" style="background-color: #CCCCFF;padding:10px;spacing: 10px;" direction="vertical">
                    <box width="100%" height="75%" style="background-color: #CCFFCC;padding:10px;">
                        <button width="100%" height="100%" text="100% x 75%" />
                    </box>    
                    <box width="100%" height="25%" style="background-color: #FFFFCC;padding:10px;">
                        <button width="100%" height="100%" text="100% x 25%" />
                    </box>    
                </splitter>    
            </splitter>  
            
            <splitter width="100%" height="200" style="background-color: #CCFFFF;padding:10px;spacing: 10px;" direction="horizontal">
                <box width="100%" height="100%" style="background-color: #CCFFCC;padding:10px;">
                    <button width="100%" height="100%" text="100% x 100%" />
                </box>    
                <box width="400" height="100%" style="background-color: #FFFFCC;padding:10px;">
                    <button width="100%" height="100%" text="400px x 100%" />
                </box>    
            </splitter>
        </splitter>
  • b

    bright-gpu-74537

    09/16/2019, 8:41 PM
    and the upside, is that now i can resize any "box", well, component really
  • b

    bright-gpu-74537

    09/16/2019, 8:42 PM
    nat¡ve is just around the corner, once that is done, then it will be in "the core" rather than in some ide project for fun
  • l

    loud-salesclerk-7438

    09/16/2019, 8:42 PM
    does it throw an error if you add more than two components per splitter?
  • b

    bright-gpu-74537

    09/16/2019, 8:43 PM
    you can add as many as you want
  • l

    loud-salesclerk-7438

    09/16/2019, 8:44 PM
    will it be a three way split if I add three childs to a splitter?
  • b

    bright-gpu-74537

    09/16/2019, 8:47 PM
    haxeui is pretty good with layouts
  • b

    bright-gpu-74537

    09/16/2019, 8:47 PM
    1, 2, 7, 20
  • b

    bright-gpu-74537

    09/16/2019, 8:48 PM
    it calculates if its a % or not
  • b

    bright-gpu-74537

    09/16/2019, 8:48 PM
    if it is, then it applies a %
  • b

    bright-gpu-74537

    09/16/2019, 8:49 PM
    so you "80%" will always be "80%"
  • b

    bright-gpu-74537

    09/16/2019, 8:49 PM
    your "100px" will aways be "100px"
  • b

    bright-gpu-74537

    09/16/2019, 8:50 PM
    ok, actually that doesnt make sense when you resize
  • b

    bright-gpu-74537

    09/16/2019, 8:50 PM
    right, so when you resize and you are using % it will work out a new %
  • l

    loud-salesclerk-7438

    09/16/2019, 8:51 PM
    yeah somehow it has to come up with a new ratio / new sizes well the layouting was already in there, a slider "just" adds the ability to change values through UI
  • b

    bright-gpu-74537

    09/16/2019, 8:51 PM
    (the layout engine already did this)
1...111112113...1687Latest