update
This commit is contained in:
@@ -3,11 +3,7 @@ package ru.m.tankz;
|
||||
import haxework.gui.ButtonView;
|
||||
import flash.display.Sprite;
|
||||
import haxework.gui.IGroupView;
|
||||
import ru.m.tankz.view.frames.GameReadyFrame;
|
||||
import ru.m.tankz.PacketBuilder;
|
||||
import flash.text.TextFieldType;
|
||||
import flash.Lib;
|
||||
import flash.text.TextField;
|
||||
import haxework.log.JSLogger;
|
||||
import ru.m.tankz.data.GameData;
|
||||
import haxework.frame.IFrameSwitcher;
|
||||
@@ -42,7 +38,7 @@ class Client implements IConnectionHandler {
|
||||
public function new() {
|
||||
var bytes = Assets.getBytes("resources/layout/main.json");
|
||||
var form:Dynamic = Json.parse(bytes.readUTFBytes(bytes.bytesAvailable));
|
||||
view = GuiBuilder.build(form, {listener:this});
|
||||
view = GuiBuilder.build(form);
|
||||
new Root(view);
|
||||
switcher = view.findViewById("switcher");
|
||||
logout = view.findViewById("top:logout");
|
||||
@@ -58,13 +54,6 @@ class Client implements IConnectionHandler {
|
||||
#end
|
||||
|
||||
switcher.change(AuthFrame.ID);
|
||||
|
||||
/*var tf = new TextField();
|
||||
tf.type = TextFieldType.INPUT;
|
||||
tf.text = "Azaza";
|
||||
tf.border = true;
|
||||
tf.borderColor = 0xff0000;
|
||||
Lib.current.addChild(tf);*/
|
||||
}
|
||||
|
||||
public function onPress(view:ButtonView):Void {
|
||||
|
||||
@@ -8,7 +8,6 @@ import protohx.Message;
|
||||
import haxework.frame.IFrameSwitcher;
|
||||
import ru.m.tankz.proto.LoginRequest;
|
||||
import ru.m.tankz.proto.LoginResponse;
|
||||
import ru.m.core.connect.IConnection;
|
||||
import haxework.provider.Provider;
|
||||
import haxe.crypto.Md5;
|
||||
import haxework.gui.InputView;
|
||||
|
||||
@@ -4,7 +4,7 @@ import ru.m.tankz.proto.JoinGameResponse;
|
||||
import ru.m.tankz.proto.JoinGameRequest;
|
||||
import ru.m.tankz.proto.CreateGameResponse;
|
||||
import ru.m.tankz.proto.CreateGameRequest;
|
||||
import ru.m.tankz.view.frames.game.GameView;
|
||||
import ru.m.tankz.view.frames.list.GameView;
|
||||
import haxework.frame.IFrameSwitcher;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.LabelView;
|
||||
|
||||
@@ -7,7 +7,7 @@ import ru.m.tankz.proto.PersonSelectRequest;
|
||||
import haxework.gui.list.ListView;
|
||||
import protohx.Message;
|
||||
import ru.m.core.connect.IConnection;
|
||||
import ru.m.tankz.view.frames.person.PersonView;
|
||||
import ru.m.tankz.view.frames.list.PersonView;
|
||||
import ru.m.tankz.data.GameData;
|
||||
import haxework.provider.Provider;
|
||||
import ru.m.tankz.proto.Person;
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
package ru.m.tankz.view.frames.game;
|
||||
|
||||
import ru.m.tankz.proto.Person;
|
||||
import haxework.gui.list.ListView.IListItemView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.skin.ColorSkin;
|
||||
import haxework.gui.HGroupView;
|
||||
|
||||
class PersonView extends HGroupView implements IListItemView<Person> {
|
||||
|
||||
public var item_index(default, default):Int;
|
||||
public var data(default, set):Person;
|
||||
|
||||
private var nameLabel:LabelView;
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
pWidth = 100;
|
||||
height = 50;
|
||||
skin = new ColorSkin(0xffffff);
|
||||
|
||||
nameLabel = new LabelView();
|
||||
addView(nameLabel);
|
||||
}
|
||||
|
||||
private function set_data(value:Person):Person {
|
||||
this.data = value;
|
||||
nameLabel.text = value.name;
|
||||
return this.data;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package ru.m.tankz.view.frames.game;
|
||||
package ru.m.tankz.view.frames.list;
|
||||
|
||||
import ru.m.tankz.proto.Person;
|
||||
import ru.m.tankz.proto.Game;
|
||||
@@ -1,4 +1,4 @@
|
||||
package ru.m.tankz.view.frames.person;
|
||||
package ru.m.tankz.view.frames.list;
|
||||
|
||||
import haxework.gui.list.ListView.IListItemView;
|
||||
import haxework.gui.LabelView;
|
||||
BIN
src/client/resources/fonts/BookmanOldStyle.eot
Normal file
BIN
src/client/resources/fonts/BookmanOldStyle.eot
Normal file
Binary file not shown.
1365
src/client/resources/fonts/BookmanOldStyle.svg
Normal file
1365
src/client/resources/fonts/BookmanOldStyle.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 246 KiB |
BIN
src/client/resources/fonts/BookmanOldStyle.woff
Normal file
BIN
src/client/resources/fonts/BookmanOldStyle.woff
Normal file
Binary file not shown.
@@ -87,7 +87,7 @@
|
||||
{
|
||||
"id": "list", "type": "haxework.gui.list.VListView",
|
||||
"factory": {
|
||||
"type": "~ru.m.tankz.view.frames.person.PersonView"
|
||||
"type": "~ru.m.tankz.view.frames.list.PersonView"
|
||||
},
|
||||
"scroll": {
|
||||
"type": "haxework.gui.list.VScrollView",
|
||||
@@ -116,7 +116,7 @@
|
||||
{
|
||||
"id": "list", "type": "haxework.gui.list.VListView",
|
||||
"factory": {
|
||||
"type": "~ru.m.tankz.view.frames.game.GameView"
|
||||
"type": "~ru.m.tankz.view.frames.list.GameView"
|
||||
},
|
||||
"scroll": {
|
||||
"type": "haxework.gui.list.VScrollView",
|
||||
@@ -151,7 +151,7 @@
|
||||
{
|
||||
"id": "list", "type": "haxework.gui.list.VListView",
|
||||
"factory": {
|
||||
"type": "~ru.m.tankz.view.frames.game.PersonView"
|
||||
"type": "~ru.m.tankz.view.frames.list.PersonView"
|
||||
},
|
||||
"scroll": {
|
||||
"type": "haxework.gui.list.VScrollView",
|
||||
|
||||
Reference in New Issue
Block a user