big update

This commit is contained in:
2015-08-10 12:13:38 +03:00
parent 93c8912dc0
commit 43c5be9455
24 changed files with 323 additions and 438 deletions

View File

@@ -0,0 +1,43 @@
{
"pWidth": 100, "pHeight": 100, "layoutMargin": 3,
"views": [
{
"@type": "haxework.gui.HGroupView",
"contentSize": true,
"views": [
{
"@type": "haxework.gui.LabelView",
"width": 150, "height": 25, "text": "Login"
},
{
"id": "loginInput", "@type": "haxework.gui.InputView",
"skin": {"@type": "haxework.gui.skin.ColorSkin", "color": "0xffffff"},
"width": 200, "height": 25, "text": ""
}
]
},
{
"@type": "haxework.gui.HGroupView",
"contentSize": true,
"views": [
{
"@type": "haxework.gui.LabelView",
"width": 150, "height": 25, "text": "Password"
},
{
"id": "passwordInput", "@type": "haxework.gui.InputView",
"skin": {"@type": "haxework.gui.skin.ColorSkin", "color": "0xffffff"},
"width": 200, "height": 25, "text": ""
}
]
},
{
"id": "authButton",
"@type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Auth",
"@style": "button_skin"
}
]
}

View File

@@ -0,0 +1,19 @@
{
"pWidth": 100, "pHeight": 100,
"views": [
{
"id": "name", "@type": "haxework.gui.LabelView",
"pWidth": 100, "height": 25, "text": ""
},
{
"id": "restart", "@type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Restart",
"@style": "button_skin"
},
{
"id": "render", "@type": "ru.m.tankz.render.Render",
"contentSize": true
}
]
}

View File

@@ -0,0 +1,24 @@
{
"pWidth": 100, "pHeight": 100,
"views": [
{
"id": "name", "@type": "haxework.gui.LabelView",
"pWidth": 100, "height": 25, "text": ""
},
{
"id": "create", "@type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Create",
"@style": "button_skin"
},
{
"id": "list", "@type": "haxework.gui.list.VListView<ru.m.tankz.proto.Game>",
"factory": "@class:ru.m.tankz.view.frames.list.GameView",
"scroll": {
"@type": "haxework.gui.list.VScrollView",
"skin": {"@type": "haxework.gui.list.VScrollSkin"}
},
"pWidth": 100, "pHeight": 100, "layoutMargin": 5
}
]
}

View File

@@ -0,0 +1,30 @@
{
"pWidth": 100, "pHeight": 100,
"views": [
{
"id": "name", "@type": "haxework.gui.LabelView",
"pWidth": 100, "height": 25, "text": ""
},
{
"id": "start", "@type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Start",
"@style": "button_skin"
},
{
"id": "exit", "@type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Exit",
"@style": "button_skin"
},
{
"id": "list", "@type": "haxework.gui.list.VListView<ru.m.tankz.proto.Person>",
"factory": "@class:ru.m.tankz.view.frames.list.PersonView",
"scroll": {
"@type": "haxework.gui.list.VScrollView",
"skin": {"@type": "haxework.gui.list.VScrollSkin"}
},
"pWidth": 100, "pHeight": 100, "layoutMargin": 5
}
]
}

View File

@@ -0,0 +1,14 @@
{
"pWidth": 100, "pHeight": 100, "layoutMargin": 3, "paddings": 10,
"views": [
{
"id": "list", "@type": "haxework.gui.list.VListView<ru.m.tankz.proto.Person>",
"factory": "@class:ru.m.tankz.view.frames.list.PersonView",
"scroll": {
"@type": "haxework.gui.list.VScrollView",
"skin": {"@type": "haxework.gui.list.VScrollSkin"}
},
"pWidth": 100, "pHeight": 100, "layoutMargin": 5
}
]
}

View File

@@ -0,0 +1,46 @@
{
"@type": "haxework.gui.VGroupView",
"pWidth": 100, "pHeight": 100,
"views": [
{
"id":"top", "@type": "haxework.gui.HGroupView",
"pWidth": 100, "height": 30,
"skin": {"@type": "haxework.gui.skin.ColorSkin", "color": "0x105000"},
"views": [
{
"id": "logout", "@type": "haxework.gui.ButtonView",
"width": 100, "height": 30,
"text": "Logout",
"@style": "button_skin"
}
]
},
{
"id": "switcher", "@type": "haxework.gui.frame.FrameSwitcher",
"pWidth": 100, "pHeight": 100,
"skin": {"@type": "haxework.gui.skin.BitmapSkin", "image": "@asset:image:resources/images/background.png", "fillType": "REPEAT"},
"views": [
{
"id": "auth",
"@type": "ru.m.tankz.view.frames.AuthFrame"
},
{
"id": "person_list",
"@type": "ru.m.tankz.view.frames.PersonListFrame"
},
{
"id": "game_list",
"@type": "ru.m.tankz.view.frames.GameListFrame"
},
{
"id": "game_ready",
"@type": "ru.m.tankz.view.frames.GameReadyFrame"
},
{
"id": "game",
"@type": "ru.m.tankz.view.frames.GameFrame"
}
]
}
]
}

View File

@@ -0,0 +1,12 @@
{
"button_skin": {
"skin": {
"@type": "haxework.gui.skin.ButtonBitmapSkin",
"upImage": "@asset:image:resources/images/control/button_normal.png",
"downImage": "@asset:image:resources/images/control/button_down.png",
"overImage": "@asset:image:resources/images/control/button_over.png",
"fillType": "NINEPATH"
},
"fontColor": "0xffffff"
}
}