tall-teacher-57409
06/14/2022, 4:30 PMtall-teacher-57409
06/14/2022, 4:30 PMbright-gpu-74537
06/14/2022, 4:31 PMbright-gpu-74537
06/14/2022, 4:31 PMtall-teacher-57409
06/14/2022, 4:32 PMbright-gpu-74537
06/14/2022, 4:32 PMbright-gpu-74537
06/14/2022, 4:32 PMtall-teacher-57409
06/14/2022, 4:33 PMtall-teacher-57409
06/14/2022, 4:33 PMtall-teacher-57409
06/14/2022, 4:33 PMbright-gpu-74537
06/14/2022, 4:34 PMtall-teacher-57409
06/14/2022, 4:34 PMtall-teacher-57409
06/14/2022, 4:38 PMhaxe
@:build(haxe.ui.ComponentBuilder.build("assets/main-view.xml"))
class MainView extends VBox {
public function new() {
super();
button1.onClick = function(e) {
button1.text = "Thanks!";
}
}
@:bind(button2, MouseEvent.CLICK)
private function onMyButton(e:MouseEvent) {
button2.text = "Thanks!";
}
}
bruh I should deal with @build and @bind tall-teacher-57409
06/14/2022, 4:39 PMbright-gpu-74537
06/14/2022, 4:39 PMtall-teacher-57409
06/14/2022, 4:40 PMtall-teacher-57409
06/14/2022, 4:40 PMbright-gpu-74537
06/14/2022, 4:40 PMtall-teacher-57409
06/14/2022, 4:40 PMtall-teacher-57409
06/14/2022, 4:41 PMtall-teacher-57409
06/14/2022, 4:50 PMbright-gpu-74537
06/14/2022, 4:51 PMhaxe.ui.containers.VBoxpowerful-morning-89
06/14/2022, 5:01 PMbright-gpu-74537
06/14/2022, 5:02 PMtall-teacher-57409
06/14/2022, 5:47 PMapp.addComponent(new MainView());
&
var mainView:Component = ComponentMacros.buildComponent("assets/main-view.xml");
app.addComponent(mainView);tall-teacher-57409
06/14/2022, 5:48 PMbright-gpu-74537
06/14/2022, 5:55 PMbright-gpu-74537
06/14/2022, 5:56 PMbright-gpu-74537
06/14/2022, 5:56 PMtall-teacher-57409
06/14/2022, 5:57 PM