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

@@ -1,82 +0,0 @@
{
"type":"haxework.frame.FrameSwitcher",
"skin":{"type":"haxework.gui.skin.BitmapSkin", "image":"@~image:resources/images/background.png", "fillType":"REPEAT"},
"views":[
{
"id":"menu", "type":"haxework.gui.VGroupView",
"pWidth":100, "pHeight":100,
"views":[
{
"id":"logo", "type":"haxework.gui.SpriteView", "contentSize":true,
"skin":{"type":"haxework.gui.skin.BitmapSkin", "image":"@~image:resources/images/logo/logo.png"}
},
{
"type":"haxework.gui.VGroupView", "contentSize":true,
"views":[
{
"id":"start1", "type":"haxework.gui.ButtonView", "_include":"button",
"text":"1 Player", "onPress":"#listener"
},
{
"id":"start2", "type":"haxework.gui.ButtonView", "_include":"button",
"text":"2 Player", "onPress":"#listener"
},
{
"id":"options", "type":"haxework.gui.ButtonView", "_include":"button",
"text":"Options", "onPress":"#listener"
},
{
"id":"about", "type":"haxework.gui.ButtonView", "_include":"button",
"text":"About", "onPress":"#listener"
}
]
}
]
},
{
"id":"game", "type":"haxework.gui.HGroupView",
"pWidth":100, "pHeight":100,
"views":[
{
"id":"map", "type":"haxework.gui.SpriteView",
"pHeight":100, "r":1,
"skin":{"type":"haxework.gui.skin.ColorSkin", "color":"0xff0000"}
},
{
"type":"haxework.gui.VGroupView",
"pWidth":100, "pHeight":100,
"skin":{"type":"haxework.gui.skin.ColorSkin", "color":"0x00ff00"}
}
]
},
{
"id":"about", "type":"haxework.gui.VGroupView",
"pWidth":100, "pHeight":100,
"views":[
{
"type":"haxework.gui.LabelView", "text":"@text:about",
"fontFamily":"@text:font", "fontEmbed":true, "fontSize":48, "contentSize":true
},
{"type":"haxework.gui.SpriteView", "height":400},
{
"id":"back", "type":"haxework.gui.ButtonView", "_include":"button",
"text":"Back", "onPress":"#listener"
}
]
}
],
"_includes":{
"button":{
"width":250, "height":60,
"skin":{
"type":"haxework.gui.skin.ButtonBitmapSkin",
"upImage":"@~image:resources/images/control/button_normal.png",
"overImage":"@~image:resources/images/control/button_over.png",
"downImage":"@~image:resources/images/control/button_down.png",
"fillType":"NINEPATH"
},
"fontFamily":"@text:font", "fontEmbed":true, "fontColor":"0xE7E0BB", "fontSize":20
}
}
}

View File

@@ -1,189 +0,0 @@
{
"_includes": {
"button_skin": {
"skin": {
"type": "haxework.gui.skin.ButtonBitmapSkin",
"upImage": "@~image:resources/images/control/button_normal.png",
"downImage": "@~image:resources/images/control/button_down.png",
"overImage": "@~image:resources/images/control/button_over.png",
"fillType": "NINEPATH"
},
"fontColor": "0xffffff"
}
},
"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",
"_include": "button_skin"
}
]
},
{
"id": "switcher", "type": "haxework.frame.FrameSwitcher",
"pWidth": 100, "pHeight": 100,
"skin": {"type": "haxework.gui.skin.BitmapSkin", "image": "@~image:resources/images/background.png", "fillType": "REPEAT"},
"views": [
{
"id": "auth", "type": "ru.m.tankz.view.frames.AuthFrame",
"pWidth": 100, "pHeight": 100, "layoutMargin": 3,
"views": [
{
"id": "login", "type": "haxework.gui.HGroupView",
"contentSize": true,
"views": [
{
"type": "haxework.gui.LabelView",
"width": 150, "height": 25, "text": "Login"
},
{
"id": "input", "type": "haxework.gui.InputView",
"skin": {"type": "haxework.gui.skin.ColorSkin", "color": "0xffffff"},
"width": 200, "height": 25, "text": ""
}
]
},
{
"id": "password", "type": "haxework.gui.HGroupView",
"contentSize": true,
"views": [
{
"type": "haxework.gui.LabelView",
"width": 150, "height": 25, "text": "Password"
},
{
"id": "input", "type": "haxework.gui.InputView",
"skin": {"type": "haxework.gui.skin.ColorSkin", "color": "0xffffff"},
"width": 200, "height": 25, "text": ""
}
]
},
{
"id": "auth",
"type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Auth",
"_include": "button_skin"
}
]
},
{
"id": "person_list", "type": "ru.m.tankz.view.frames.PersonListFrame",
"pWidth": 100, "pHeight": 100, "layoutMargin": 3, "paddings": 10,
"views": [
{
"id": "list", "type": "haxework.gui.list.VListView",
"factory": {
"type": "~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
}
]
},
{
"id": "game_list", "type": "ru.m.tankz.view.frames.GameListFrame",
"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",
"_include": "button_skin"
},
{
"id": "list", "type": "haxework.gui.list.VListView",
"factory": {
"type": "~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
}
]
},
{
"id": "game_ready", "type": "ru.m.tankz.view.frames.GameReadyFrame",
"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",
"_include": "button_skin"
},
{
"id": "exit", "type": "haxework.gui.ButtonView",
"width": 100, "height": 45,
"text": "Exit",
"_include": "button_skin"
},
{
"id": "list", "type": "haxework.gui.list.VListView",
"factory": {
"type": "~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
}
]
},
{
"id": "game", "type": "ru.m.tankz.view.frames.GameFrame",
"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",
"_include": "button_skin"
},
{
"id": "render", "type": "ru.m.tankz.render.Render",
"contentSize": true
}
]
}
]
}
]
}