-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar component support missing #2
Comments
The |
Nice catch - ill check it out - thanks! |
OK, this should be fixed now in latest kenney theme (git version). Can you close this if that works. Cheers, |
Fantastic, thanks a lot for the quick fix! 👍🏻 However, there seems to be a difference in how the different themes handles the sidebar. Dark theme: Screen.Recording.2021-10-25.at.21.06.38.movKenney theme: Screen.Recording.2021-10-25.at.21.07.18.mov |
hmmm, that seems a little strange, it looks like its running it in reverse or something? There shouldnt be any difference what-so-ever between the two... are you sure thats the only difference in those recordings? |
Yeah, the only difference is changing By the way, here's the <sidebar width="100%" height="500" position="top" method="float" modal="true" hidden="false">
<vbox width="100%">
<splitter width="100%" height="500">
<frame text="Code" width="100%" height="100%">
<vbox width="100%" height="100%">
<textarea id="script" width="100%" height="100%" text="I am a text area 1" style="font-size: 16px; font-name: 'BrassMono';" />
<button width="100%" text="Reload" />
</vbox>
</frame>
<frame text="Issues" width="100%" height="100%">
<listview width="100%" height="100%">
<item-renderer width="100%" layoutName="horizontal">
<image resource="haxeui-core/styles/default/haxeui_small.png" verticalAlign="center" />
<vbox width="100%">
<label id="text" width="100%" style="font-bold: true;font-underline:true;" />
<label id="subText" width="100%" style="color: #888888;font-size:12px;" />
</vbox>
<button id="action" verticalAlign="center" />
</item-renderer>
<data>
<item text="Item 1" subText="Sub text for item 1" action="Action 1" />
<item text="Item 2" subText="Sub text for item 2" action="Action 2" />
<item text="Item 3" subText="Sub text for item 3" action="Action 3" />
<item text="Item 4" subText="Sub text for item 4" action="Action 4" />
<item text="Item 5" subText="Sub text for item 5" action="Action 5" />
<item text="Item 6" subText="Sub text for item 6" action="Action 6" />
<item text="Item 7" subText="Sub text for item 7" action="Action 7" />
<item text="Item 8" subText="Sub text for item 8" action="Action 8" />
<item text="Item 9" subText="Sub text for item 9" action="Action 9" />
</data>
</listview>
</frame>
</splitter>
</vbox>
</sidebar> |
I found the issue! 🎉 I was doing the following: final ui = haxe.ui.macros.ComponentMacros.buildComponent("ui.xml");
ui.show();
So it appears there's something in the |
Trying to use the Kenney theme with a UI schema file that includes a
<sidebar>
-component results in the following error on the Kha backend:If I remove the
<sidebar>
-component it works just fine...The text was updated successfully, but these errors were encountered: