Skip to content

[0.5.3] Could I implement a CollapsibleDialog in my Scripted SubState? Are they useable or not? #4268

Closed Answered by KoloInDaCrib
Starexify asked this question in Q&A
Discussion options

You must be logged in to vote

I think the problem is that you're using a macro (in this case @:build) to add child components to your collapsible dialog, however those macros aren't supported in hscript

Try using something like RuntimeComponentBuilder if you're gonna build components using an .xml file or write the components in the code (more specifically in the new function) like this:

// An example of how haxe ui components could be added instead of using an .xml file.
var hbox = new HBox();
hbow.percentWidth = 100;
addComponent(hbox);

var label = new Label();
label.text = "test";
hbox.addComponent(label);

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Starexify
Comment options

@Starexify
Comment options

@KoloInDaCrib
Comment options

@Starexify
Comment options

@KoloInDaCrib
Comment options

Answer selected by Starexify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants