update
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
{
|
||||
"pWidth": 100, "pHeight": 100,
|
||||
"views": [
|
||||
{
|
||||
"id": "name", "@type": "haxework.gui.LabelView",
|
||||
"pWidth": 100, "height": 44, "text": "",
|
||||
"@style": "label"
|
||||
},
|
||||
{
|
||||
"id": "render", "@type": "ru.m.tankz.render.Render",
|
||||
"contentSize": true
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
{
|
||||
"pWidth": 100, "pHeight": 100,
|
||||
"views": [
|
||||
{
|
||||
"id": "name", "@type": "haxework.gui.LabelView",
|
||||
"pWidth": 100, "height": 44, "text": "",
|
||||
"@style": "label"
|
||||
},
|
||||
{
|
||||
"id": "create", "@type": "haxework.gui.ButtonView",
|
||||
"width": 132, "height": 44,
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
{
|
||||
"pWidth": 100, "pHeight": 100,
|
||||
"views": [
|
||||
{
|
||||
"id": "name", "@type": "haxework.gui.LabelView",
|
||||
"pWidth": 100, "height": 44, "text": "",
|
||||
"@style": "label"
|
||||
},
|
||||
{
|
||||
"id": "start", "@type": "haxework.gui.ButtonView",
|
||||
"width": 132, "height": 44,
|
||||
|
||||
@@ -82,6 +82,6 @@ class Render extends SpriteView implements IRender {
|
||||
90;
|
||||
} else {
|
||||
0;
|
||||
}) / (Math.PI * 2);
|
||||
}) * (Math.PI / 180);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ class GameFrame extends VGroupView implements ViewBuilder implements IPacketHand
|
||||
public function onShow():Void {
|
||||
var person = Provider.get(GameData).person;
|
||||
var persons = Provider.get(GameData).game.persons;
|
||||
name.text = person.name;
|
||||
engine.personId = person.id;
|
||||
engine.init(DEFAULT.CONFIG);
|
||||
content.addEventListener(Event.ENTER_FRAME, updateGame);
|
||||
|
||||
@@ -27,13 +27,11 @@ class GameListFrame extends VGroupView implements ViewBuilder implements IPacket
|
||||
public static inline var ID = "game_list";
|
||||
|
||||
public function init() {
|
||||
list = findViewById("list");
|
||||
list.dispatcher.addListener(this);
|
||||
findViewById("create", ButtonView).onPress = this;
|
||||
}
|
||||
|
||||
public function onShow() {
|
||||
findViewById("name", LabelView).text = Provider.get(GameData).person.name;
|
||||
Provider.get(IConnection).packetHandler.addListener(this);
|
||||
Provider.get(IConnection).send(new GamesSubscribeRequest());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user