icy-zebra-52882
02/14/2022, 10:04 PMbright-gpu-74537
02/14/2022, 10:04 PMbright-gpu-74537
02/14/2022, 10:05 PM<scrollview contentWidth="100%">bright-gpu-74537
02/14/2022, 10:07 PMicy-zebra-52882
02/14/2022, 10:09 PMicy-zebra-52882
02/14/2022, 10:10 PMxml
<sidebar width="200px" height="100%">
<style>
.scrollview {
margin: 0;
padding: 0;
}
.button {
width: 100%;
}
</style>
<scrollview width="100%" contentWidth="100%">
<frame id="fileMenu" text="placeholder">
<vbox width="100%">
<button id="saveMenuItem" text="Save" icon="assets/images/editor/save.png" />
<button id="loadMenuItem" text="Load" icon="assets/images/editor/load.png" />
<button text="Vergangenheitsbewältigung" icon="assets/images/yellowhorn.png" />
</vbox>
</frame>
<frame text="Menu 2">
<grid>
<checkbox text="Test checkbox!" selected="true" />
</grid>
</frame>
</scrollview>
</sidebar>
this currently errors and says a dimension is invalid when the view is createdbright-gpu-74537
02/14/2022, 10:10 PMbright-gpu-74537
02/14/2022, 10:10 PMicy-zebra-52882
02/14/2022, 10:10 PMbright-gpu-74537
02/14/2022, 10:10 PMbright-gpu-74537
02/14/2022, 10:10 PMicy-zebra-52882
02/14/2022, 10:10 PMicy-zebra-52882
02/14/2022, 10:11 PMbright-gpu-74537
02/14/2022, 10:11 PMicy-zebra-52882
02/14/2022, 10:11 PMhttps://plzlookat.mystupid.pictures/HelloWorld_g8j4ZlsbjX.pngâ–¾
icy-zebra-52882
02/14/2022, 10:11 PMicy-zebra-52882
02/14/2022, 10:12 PMbright-gpu-74537
02/14/2022, 10:12 PMicy-zebra-52882
02/15/2022, 12:23 AMpos via code after it's been created changes the background bar graphic, but the slider "cursor" remains set at 0 by default
https://plzlookat.mystupid.pictures/HelloWorld_BgIGxZLCLj.mp4billions-carpenter-3485
02/15/2022, 7:59 AMbillions-carpenter-3485
02/15/2022, 8:01 AMbright-gpu-74537
02/15/2022, 8:16 AMxml
<sidebar width="200" height="100%">
<scrollview width="100%" contentWidth="100%">
<frame id="fileMenu" text="placeholder" width="100%"> <<<<<---- this was autosized, ie, no %/px width
<vbox width="100%">
<button width="100%" id="saveMenuItem" text="Save" icon="assets/images/editor/save.png" />
<button width="100%" id="loadMenuItem" text="Load" icon="assets/images/editor/load.png" />
<button width="100%" text="Vergangenheitsbewältigung" icon="assets/images/yellowhorn.png" />
</vbox>
</frame>
<frame text="Menu 2">
<grid>
<checkbox text="Test checkbox!" selected="true" />
</grid>
</frame>
</scrollview>
</sidebar>bright-gpu-74537
02/15/2022, 8:18 AMbright-gpu-74537
02/15/2022, 8:19 AMhaxe
@:build(haxe.ui.ComponentBuilder.build("assets/my-sidebar.xml"))
class MySidebar extends SideBar {
public function new() {
super();
mySlider.pos = 50;
}
}bright-gpu-74537
02/15/2022, 8:42 AMbillions-carpenter-3485
02/15/2022, 8:54 AMbright-gpu-74537
02/15/2022, 8:59 AMbright-gpu-74537
02/15/2022, 8:59 AMbillions-carpenter-3485
02/15/2022, 8:59 AMbright-gpu-74537
02/15/2022, 9:00 AM