-
-
Save fulopm/c90dd931d0b24ac725782b282f4fbdbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ui; | |
import haxe.ui.HaxeUIApp; | |
import haxe.ui.components.Label; | |
import haxe.ui.components.Button; | |
import haxe.ui.containers.VBox; | |
class UI { | |
var UIApp:HaxeUIApp; | |
var pane:VBox; | |
var label1:Label; | |
var button1:Button; | |
public function new() { | |
UIApp = new HaxeUIApp(); | |
UIApp.ready(onReady, onEnd); | |
} | |
public function createAndShowGUI() : Void{ | |
pane = new VBox(); | |
label1 = new Label(); | |
label1.text = "Test"; | |
pane.addComponent(label1); | |
button1 = new Button(); | |
button1.text = "OK"; | |
pane.addComponent(button1); | |
UIApp.addComponent(pane); | |
} | |
public static function onReady() : Void { | |
} | |
public static function onEnd() : Void { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment