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

    ambitious-knife-25690

    09/24/2022, 4:10 PM
    because i think the default is like "inherit" which means "size to the children"
  • a

    ambitious-knife-25690

    09/24/2022, 4:11 PM
    this is normal behaviour, think of haxeui similar to common web behaviours rather than game dev behaviours and it will make more sense
  • w

    witty-island-52596

    09/24/2022, 4:20 PM
    right
  • w

    witty-island-52596

    09/24/2022, 4:21 PM
    it makes sense when you think about it
  • a

    ambitious-knife-25690

    09/24/2022, 4:22 PM
    oh, i misread your can for "cant" lol
  • a

    ambitious-knife-25690

    09/24/2022, 4:22 PM
    didn't need to explain soz 😂
  • w

    witty-island-52596

    09/24/2022, 4:47 PM
    all good
  • b

    bright-gpu-74537

    09/24/2022, 6:50 PM
    what do you mean?
  • b

    bright-gpu-74537

    09/24/2022, 6:52 PM
    so by default, components are autosized, that means they take up the size of their contents (like a buttons size is the size of the label, icon, item renderer and any padding)... you can change this ofc, by just giving it a fixed size (% or px) if you want (or by changing the padding, etc)
  • b

    bright-gpu-74537

    09/24/2022, 6:52 PM
    note there are some components that come with an "initial size" (eg: textfields and sliders), this is because the contents are either small or non-existent... but, you can always size them as you want
  • p

    purple-businessperson-14467

    09/24/2022, 10:24 PM
    like the mainview.xml?
  • p

    purple-businessperson-14467

    09/24/2022, 10:25 PM
    or each custom component
  • b

    bright-gpu-74537

    09/25/2022, 5:59 AM
    in each xml file you'd add
    <?xml-model href="haxeui.xsd"?>
    at the top
  • f

    full-journalist-82607

    09/25/2022, 4:28 PM
    I have a bug ! 🙂 . It seems the disabled styling doesn't work anymore for buttons http://haxeui.org/builder/?efkorx When you click on disable, the disable style don't appear.
  • b

    bright-gpu-74537

    09/25/2022, 4:30 PM
    great.... looks like ive broken something - thanks, ill check it out
  • w

    witty-island-52596

    09/25/2022, 5:07 PM
    is there a way to remove the border of the scroll view? http://haxeui.org/builder/?fitbde
  • w

    witty-island-52596

    09/25/2022, 5:08 PM
    I should probably just use a header
  • w

    witty-island-52596

    09/25/2022, 5:14 PM
    yeah that or an accordian
  • b

    bright-gpu-74537

    09/25/2022, 5:22 PM
    border-size
    , not
    borderSize
  • w

    witty-island-52596

    09/25/2022, 6:15 PM
    thx
  • w

    witty-island-52596

    09/25/2022, 9:02 PM
    how do I use
    haxe.ui.ComponentBuilder.fromString
  • w

    witty-island-52596

    09/25/2022, 9:05 PM
    nvm got it
  • w

    witty-island-52596

    09/26/2022, 3:04 AM
    Copy code
    hx
    
    @:build(haxe.ui.ComponentBuilder.build("assets/main-view.xml"))
    class MainView extends VBox
    {
        public function new()
        {
            super();
            appPage.add(new EventPage());
            eventPage.add(new EventPage());
            gatewayPage.add(new GatewayPage());
        }
    }
    
    class Page extends VBox {}
    
    @:build(haxe.ui.ComponentBuilder.build("assets/app-page.xml"))
    class AppPage extends Page {}
    
    @:build(haxe.ui.ComponentBuilder.build("assets/event-page.xml"))
    class EventPage extends Page {}
    
    @:build(haxe.ui.ComponentBuilder.build("assets/gateway-page.xml"))
    class GatewayPage extends Page {}
    trying to add sub components to a parent component but nothing shows up
  • w

    witty-island-52596

    09/26/2022, 3:06 AM
    tried adding them onReady, tried having the pages directly extend VBox instead of Page
  • w

    witty-island-52596

    09/26/2022, 3:09 AM
    tried addComponent and it seems to hang on an infinite loop. but it freezes when I try to switch to the AppPage tab, not when I instantiate it
  • b

    bright-gpu-74537

    09/26/2022, 5:47 AM
    So if you are adding components to components you need to use addComponent
  • b

    bright-gpu-74537

    09/26/2022, 5:48 AM
    you got a minimal repro?
  • w

    witty-island-52596

    09/26/2022, 6:29 AM
    i can share. 1 sec
  • w

    witty-island-52596

    09/26/2022, 6:46 AM
    https://github.com/Geokureli/Newgrounds/blob/flixel-ui/test/haxeui-flixel/Source/MainView.hx
  • w

    witty-island-52596

    09/26/2022, 6:47 AM
    I should reduce this
1...128012811282...1687Latest