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

    bright-gpu-74537

    05/02/2023, 7:12 AM
    interesting, and how do you use it? just "c.layout = new BottomGridLayout()" ?
  • b

    bright-gpu-74537

    05/02/2023, 7:13 AM
    are there interesting props on the layout itself?
  • f

    full-journalist-82607

    05/02/2023, 7:13 AM
    Exactly.
  • b

    bright-gpu-74537

    05/02/2023, 7:17 AM
    is the layout something that is shareable and will "just work" (this end) so i can use it as a testbed for making the factory more dynamic?
  • f

    full-journalist-82607

    05/02/2023, 7:17 AM
    No not really. But I like the idea 🙂 .
  • b

    bright-gpu-74537

    05/02/2023, 7:18 AM
    ok, fair enough, ill create a bullshit layout then with some crappy dummy props to test 🙂
  • f

    full-journalist-82607

    05/02/2023, 7:18 AM
    It was the answer to before lol
  • f

    full-journalist-82607

    05/02/2023, 7:18 AM
    It is super shareable haha
  • b

    bright-gpu-74537

    05/02/2023, 7:18 AM
    heh heh, gotcha
  • f

    full-journalist-82607

    05/02/2023, 7:19 AM
    zz
  • f

    full-journalist-82607

    05/02/2023, 7:20 AM
    here https://cdn.discordapp.com/attachments/565569107701923852/1102857027459493908/message.txt
  • b

    bright-gpu-74537

    05/02/2023, 7:20 AM
    perfect... 👌 thanks!
  • f

    full-journalist-82607

    05/02/2023, 7:21 AM
    You're welcome ! 🙂 And thank you in advance
  • b

    bright-gpu-74537

    05/02/2023, 7:24 AM
    follow up to this, until i think more about allowing "any component" as a property editor (for property grids), ive added two new property types: "action" and "toggle": http://haxeui.org/builder/?1186d46a
  • b

    bright-gpu-74537

    05/02/2023, 7:26 AM
    heh, already half implemented it seems:
    Copy code
    xml
        <layouts>
            <class package="haxe.ui.layouts" />
        </layouts>
    (from core module.xml - probably doesnt do anything, but intention is clear)
  • b

    bright-gpu-74537

    05/02/2023, 8:27 AM
    alright, @full-journalist-82607 - thats all working now, lemme know how it fares... its a nice change in general: http://haxeui.org/builder/?5d251e4d
  • b

    bright-gpu-74537

    05/02/2023, 8:28 AM
    im not 100% how to use your layout, so it looks a little off (maybe the layout is bugged), but it creates an instance and sets props, thats the important part
  • b

    bright-gpu-74537

    05/02/2023, 8:29 AM
    also, when i said none of the existing layouts have interesting layout properties, i was wrong: Grid does... so this is nice:
    Copy code
    xml
            <box layout="grid" layoutColumns="2" style="border:1px solid black;padding:5px;">
                <button text="1" />
                <button text="2" />
                <button text="3" />
            </box>
  • f

    full-journalist-82607

    05/02/2023, 9:08 AM
    Oh cool. hmmm, indeed there's a bug in my layout, it only works well for 3 columns. funny, now the label is at the top instead of the bottom when the code is
    Copy code
    xml
    <vbox>
            <grid id="grid" layoutColumns="3" layout="bottom grid" >
            </grid>
            <label id="shown_number" />
        </vbox>

    https://cdn.discordapp.com/attachments/565569107701923852/1102884385700712519/image.pngâ–¾

  • b

    bright-gpu-74537

    05/02/2023, 9:11 AM
    and what does it look like when you use the "old" method?
  • b

    bright-gpu-74537

    05/02/2023, 9:11 AM
    oh, i see, the label should be at the top... how odd
  • f

    full-journalist-82607

    05/02/2023, 9:19 AM
    Oh in fact, @User it's the haxeui core update which does that. Xml works as well as code. Now I don't see anything obvious other than this example which was changer by the update.
  • f

    full-journalist-82607

    05/02/2023, 9:31 AM
    Funny fix layouts from styles / xml commit makes it like this and make layout factory dynamic (and able to be registered in module.xml make like the one posted before withe label on the top. I must be doing something weird in my layout but I'm exploring my app to see if anything else has changed

    https://cdn.discordapp.com/attachments/565569107701923852/1102890063337095203/image.pngâ–¾

  • b

    bright-gpu-74537

    05/02/2023, 9:47 AM
    hmmmmm
  • b

    bright-gpu-74537

    05/02/2023, 9:49 AM
    if you get a moment, can you send me a simple test app that uses your layout, ill play with it locally, maybe the layout is bugged, but i dont like that its verrrry different with the new layout stuff... i would have assumed (hoped) it would have been 100% the same (even if the layout is bugged)
  • f

    full-journalist-82607

    05/02/2023, 10:06 AM
    Hmm, ok , trying to reproduce a simple version but not being to for now haha. I'll try again this afternoon
  • f

    full-journalist-82607

    05/02/2023, 10:50 AM
    ok in fact I had accidentely applied layout grid-bottom to somewere it shouldn't be haha ( to the container of the tile instead of the grid inside).
  • b

    bright-gpu-74537

    05/02/2023, 10:53 AM
    so its all fine?
  • b

    bright-gpu-74537

    05/02/2023, 10:59 AM
    uh oh... nope, something is up: http://haxeui.org/builder/?2fcc0ffa
  • b

    bright-gpu-74537

    05/02/2023, 10:59 AM
    (extracted from an app im working on)
1...165716581659...1687Latest