[add] PuzzleAppView
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
package ru.m.puzzlez;
|
||||
|
||||
class App {
|
||||
public static function main() {
|
||||
trace("ok");
|
||||
}
|
||||
}
|
||||
15
src/haxe/ru/m/puzzlez/PuzzlezApp.hx
Normal file
15
src/haxe/ru/m/puzzlez/PuzzlezApp.hx
Normal 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");
|
||||
}
|
||||
}
|
||||
10
src/haxe/ru/m/puzzlez/PuzzlezTheme.hx
Normal file
10
src/haxe/ru/m/puzzlez/PuzzlezTheme.hx
Normal 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'});
|
||||
}
|
||||
}
|
||||
10
src/haxe/ru/m/puzzlez/view/PuzzlezAppView.hx
Normal file
10
src/haxe/ru/m/puzzlez/view/PuzzlezAppView.hx
Normal file
@@ -0,0 +1,10 @@
|
||||
package ru.m.puzzlez.view;
|
||||
|
||||
import haxework.view.group.VGroupView;
|
||||
|
||||
@:template class PuzzlezAppView extends VGroupView {
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
10
src/haxe/ru/m/puzzlez/view/PuzzlezAppView.yaml
Normal file
10
src/haxe/ru/m/puzzlez/view/PuzzlezAppView.yaml
Normal 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
|
||||
Reference in New Issue
Block a user