big update
This commit is contained in:
43
src/client/haxe/layout/frames/auth.json
Normal file
43
src/client/haxe/layout/frames/auth.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
19
src/client/haxe/layout/frames/game.json
Normal file
19
src/client/haxe/layout/frames/game.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
24
src/client/haxe/layout/frames/game_list.json
Normal file
24
src/client/haxe/layout/frames/game_list.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
30
src/client/haxe/layout/frames/game_ready.json
Normal file
30
src/client/haxe/layout/frames/game_ready.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
14
src/client/haxe/layout/frames/person_list.json
Normal file
14
src/client/haxe/layout/frames/person_list.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
46
src/client/haxe/layout/main.json
Executable file
46
src/client/haxe/layout/main.json
Executable 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
12
src/client/haxe/layout/styles.json
Normal file
12
src/client/haxe/layout/styles.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user