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

    refined-laptop-39041

    01/23/2023, 4:30 PM
    It shouldn't if you use ./get_dlc?
  • r

    refined-laptop-39041

    01/23/2023, 4:30 PM
    Instead of just recursively cloning the submodules
  • p

    powerful-morning-89

    01/23/2023, 4:34 PM
    Reminder that Git is utter crap at dealing with big binary files.
  • r

    refined-laptop-39041

    01/23/2023, 4:37 PM
    The amount of binaries is probably my least favorite part of Kha
  • b

    bumpy-engineer-49082

    01/23/2023, 4:59 PM
    im in windows and i don't know anything about linux terminal.
  • b

    bumpy-engineer-49082

    01/23/2023, 4:59 PM
    you've said there was a batch. How do i find it?
  • f

    full-journalist-82607

    01/23/2023, 5:24 PM
    @bright-gpu-74537 How would I override the FocusManager to set my own list ? I was thinkg of extending it and override buildFosuableList but I cannot set my instance because of public static var instance(get, null):FocusManager;
  • e

    elegant-twilight-61392

    01/23/2023, 5:25 PM
    you can shadow the original class so itll use your modified version automatically
  • b

    bright-gpu-74537

    01/23/2023, 5:26 PM
    why would you want to override the focusable list??
  • f

    full-journalist-82607

    01/23/2023, 5:27 PM
    Because I want the focusable list to be only the cells in my tables. And I thought it was simpler than to remove focus of all the other components. ( The other interactive components don't need a focus, as they have already a shortcut and I want only the cells, not the components inside the cell)
  • f

    full-journalist-82607

    01/23/2023, 5:30 PM
    That's agood idea too ( and @:access doesn't seem to work)
  • b

    bright-gpu-74537

    01/23/2023, 5:37 PM
    seems like a weird idea to override a core part of haxeui (or shadow it) because it doesnt do something your way - what is it you are trying to do?
  • f

    full-journalist-82607

    01/23/2023, 5:43 PM
    I want to have the focus only working in the cells of a big tableview ( and not components outside the table or inside the cells). I also wanted to test to have the focus on the cells of the table ( which is basically the item renderer) which aren't normally interactive components ( but I could always create the interactive component inside the item renderer)
  • r

    refined-laptop-39041

    01/23/2023, 5:48 PM
    Inside the Kha directory, there is a file called ``get_dlc.bat``. Run that
  • b

    bright-gpu-74537

    01/23/2023, 5:50 PM
    can you maybe try and explain with code / example? I think i follow, but a test case would be useful. Im sure there are better solutions that "hack the focus manager"
  • b

    bumpy-engineer-49082

    01/23/2023, 6:02 PM
    Um, nothing happened. Should I use it before gitting submodules?
  • f

    full-journalist-82607

    01/23/2023, 6:03 PM

    https://share.sketchpad.app/23/8ad-cc32-1d26f3.png▾

  • b

    bright-gpu-74537

    01/23/2023, 6:33 PM
    so the idea is that you want the item renderer to be focusable?
  • f

    full-journalist-82607

    01/23/2023, 6:33 PM
    In fact hmm, that should be the most important I think
  • b

    bright-gpu-74537

    01/23/2023, 6:34 PM
    i mean, the item renderer isnt an interactive component, so thats the issue... cant you listen for keypresses on table? Not sure that will work though tbh
  • f

    full-journalist-82607

    01/23/2023, 6:36 PM
    I'm going to eat now. But yeah you're right maybe I should focus on the irem renderer instead .. and nt on the cous manager, I'm kind of brainstorming
  • b

    bright-gpu-74537

    01/23/2023, 6:52 PM
    they way i would have done it would to have a "onKey" on the tableview, and if its 13 then "do something" with the selected item / index... but im not sure keys will fire for a tableview
  • f

    full-journalist-82607

    01/23/2023, 9:09 PM
    I made the ItemRenderer Focusable ( by extending it) and it works like I wish. At first I tried to put an interactivecomponent in the item renderer but for some reason all the styling didn't work ( no background color etc).
  • p

    purple-businessperson-14467

    01/24/2023, 12:45 AM
    Q: Is there a way to make "Same Size" button the same width as the longest button? I can do it with code but was curious if some property dance would work. http://haxeui.org/builder/?bdd714a4 Basically all buttons in left column should be same width of longest button.
  • c

    clever-yak-82528

    01/24/2023, 12:50 AM
    screaming and crying
  • f

    full-journalist-82607

    01/24/2023, 7:55 AM
    Copy code
    xml
    <vbox style="padding: 5px;" width="100%" height="100%">
        <hbox  width="100%" height="100%" >
            <vbox height="100%" style="background-color:#FF00FF" >
                <button text="make me fit Dude"/>
                <button text="same Size" width="100%" />
            </vbox>
            <vbox width="100%" height="100%">
                 <button text="make is" width="100%"/>
            </vbox>
        </hbox>
    </vbox>
    Just put width="100%" , it will be 100% of the box that was calculated on the longest button. It is easy if you know the longest button If you don't know. you'll have to use styles in code or css and use use customStyle.minPercentWith =100
  • p

    purple-businessperson-14467

    01/24/2023, 7:57 AM
    In production I wouldnt know the longest button? As the contents are translated
  • f

    full-journalist-82607

    01/24/2023, 7:57 AM
    Just eddited the answer for when you you don't know the longest button
  • p

    purple-businessperson-14467

    01/24/2023, 7:58 AM
    gotcha
  • p

    purple-businessperson-14467

    01/24/2023, 7:58 AM
    Sounds good, thanks
1...140014011402...1687Latest