1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| package gogetter.vues;
package class Demarrage extends CustomNode {
public var controleInterne:IControleur;
def level =ChoiceBox {
layoutX: 80
layoutY: 100
width:20
height:20
layoutInfo: LayoutInfo { width: 110; height: 20 }
items:["facile","moyen","difficile" };
init {
insert Label {
font: Font { size: 24; embolden: true }
text: "*****menu*****"
layoutX: 5
layoutY: 0
width:200
height:50
layoutInfo: LayoutInfo { width: 290; height: 45 }
hpos: HPos.CENTER
textFill:Color.RED
} into children;
insert Label {
font: Font { size: 15 }
text: " Niveau : "
layoutX: 0
layoutY: 100
width:20
height:60
layoutInfo: LayoutInfo { width: 140; height: 20 }
textFill:Color.GREEN
} into children;
insert level into children;
level.select(0);
insert Button {
layoutX: 200
layoutY: 100
layoutInfo: LayoutInfo { width:50; height: 20 }
text: "Start"
action: valider
} into children;
layoutInfo = LayoutInfo { width: 300; height: 210 }
} |
Partager