straight-oyster-87301
01/12/2022, 7:15 PMbright-gpu-74537
01/12/2022, 7:15 PMstraight-oyster-87301
01/12/2022, 7:15 PMstraight-oyster-87301
01/12/2022, 7:15 PMbright-gpu-74537
01/12/2022, 7:16 PMstraight-oyster-87301
01/12/2022, 7:16 PMstraight-oyster-87301
01/12/2022, 7:38 PMstraight-oyster-87301
01/12/2022, 7:40 PMstraight-oyster-87301
01/12/2022, 7:40 PMbright-gpu-74537
01/12/2022, 8:02 PMbright-gpu-74537
01/12/2022, 8:02 PMbright-gpu-74537
01/12/2022, 8:02 PMbright-gpu-74537
01/12/2022, 8:03 PMstraight-oyster-87301
01/13/2022, 2:06 AMstraight-oyster-87301
01/13/2022, 2:07 AMhorizontalAlign="right" and marginRight="10" but it do nothingbright-gpu-74537
01/13/2022, 6:54 AMbright-gpu-74537
01/13/2022, 6:55 AMBox (but then items are no longer place horizontally) or use a "spacer"bright-gpu-74537
01/13/2022, 6:55 AMbright-gpu-74537
01/13/2022, 6:56 AMxml
<hbox width="100%">
<spacer width="100%" />
<button text="Button" />
</hbox>bright-gpu-74537
01/13/2022, 6:56 AMSpacer extends Component - nothing special but semantically its nicer)straight-oyster-87301
01/13/2022, 11:51 AMstraight-oyster-87301
01/13/2022, 1:16 PMstraight-oyster-87301
01/13/2022, 1:38 PMhx
package components;
import haxe.ui.containers.HBox;
import haxe.ui.events.MouseEvent;
@:build(haxe.ui.ComponentBuilder.build("assets/text-dialog.xml"))
class DialogTextField extends HBox {
public function new() {
super();
}
@:bind(openFileDialog, MouseEvent.CLICK)
public function openDialog(_:MouseEvent) {
// Now only works on cpp!
var dialog = new hx.widgets.FileDialog(haxe.ui.ToolkitAssets.instance.options.frame, "Pick a directory", this.monkePath.text);
}
} I tried writing this but uh it doesn't show anything when the button clickedstraight-oyster-87301
01/13/2022, 1:39 PMhx
package components;
import haxe.ui.containers.HBox;
import haxe.ui.events.MouseEvent;
@:build(haxe.ui.ComponentBuilder.build("assets/text-dialog.xml"))
class DialogTextField extends HBox {
public function new() {
super();
}
@:bind(openFileDialog, MouseEvent.CLICK)
public function openDialog(_:MouseEvent) {
// Now only works on cpp!
var dialog = new hx.widgets.FileDialog(haxe.ui.ToolkitAssets.instance.options.frame, "Pick a directory", this.monkePath.text);
}
} I tried writing this but uh it doesn't show anything when the button clickedstraight-oyster-87301
01/13/2022, 1:40 PMstraight-oyster-87301
01/13/2022, 1:40 PMbright-gpu-74537
01/13/2022, 3:35 PMbright-gpu-74537
01/13/2022, 3:36 PMDialogs.selectFile(...) / Dialogs.selectFolder(...) and that work on all (or at least most) backendsstraight-oyster-87301
01/13/2022, 4:41 PMstraight-oyster-87301
01/13/2022, 4:42 PM