[add] PuzzleAppView

This commit is contained in:
2020-01-09 21:20:08 +03:00
parent 820fe61efe
commit 78db6d6765
9 changed files with 101 additions and 9 deletions

View File

@@ -1,7 +0,0 @@
package ru.m.puzzlez;
class App {
public static function main() {
trace("ok");
}
}

View File

@@ -0,0 +1,15 @@
package ru.m.puzzlez;
import haxework.App;
import haxework.log.TraceLogger;
import ru.m.puzzlez.view.PuzzlezAppView;
class PuzzlezApp extends App {
public static function main() {
L.push(new TraceLogger());
var app = new PuzzlezApp(new PuzzlezTheme());
app.start(new PuzzlezAppView());
L.d("Puzzlez", "started");
}
}

View File

@@ -0,0 +1,10 @@
package ru.m.puzzlez;
import haxework.view.theme.Theme;
class PuzzlezTheme extends Theme {
public function new() {
super({name: 'Georgia'}, {light: 'gray'});
}
}

View File

@@ -0,0 +1,10 @@
package ru.m.puzzlez.view;
import haxework.view.group.VGroupView;
@:template class PuzzlezAppView extends VGroupView {
public function new() {
super();
}
}

View File

@@ -0,0 +1,10 @@
style: background
layout.hAlign: center
layout.vAlign: middle
layout.margin: 20
views:
- $type: haxework.view.form.LabelView
text: Puzzle'z
font.size: 42
- $type: haxework.view.form.ButtonView
text: Start