[client] display version
This commit is contained in:
@@ -20,6 +20,15 @@
|
|||||||
"@type": "ru.m.tankz.view.frames.GameFrame"
|
"@type": "ru.m.tankz.view.frames.GameFrame"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "haxework.gui.LabelView",
|
||||||
|
"inLayout": false,
|
||||||
|
"contentSize": true,
|
||||||
|
"vAlign": "BOTTOM",
|
||||||
|
"hAlign": "RIGHT",
|
||||||
|
"text": "@res:text:version",
|
||||||
|
"@style": "label"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -50,6 +50,7 @@ class Client implements IConnectionHandler {
|
|||||||
|
|
||||||
var font:Font = Font.enumerateFonts()[0];
|
var font:Font = Font.enumerateFonts()[0];
|
||||||
Provider.get(IResources).text.put("font", "Bookman Old Style");
|
Provider.get(IResources).text.put("font", "Bookman Old Style");
|
||||||
|
Provider.get(IResources).text.put("version", 'v${Const.VERSION} b${Const.BUILD}');
|
||||||
|
|
||||||
Provider.set(IPacketBuilder, new PacketBuilder());
|
Provider.set(IPacketBuilder, new PacketBuilder());
|
||||||
#if flash
|
#if flash
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class Haxe extends Sdk {
|
|||||||
*/
|
*/
|
||||||
openfl(params) {
|
openfl(params) {
|
||||||
params = Object.assign({
|
params = Object.assign({
|
||||||
build: dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss'),
|
build: dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss'),
|
||||||
macro: [],
|
macro: [],
|
||||||
debug: false,
|
debug: false,
|
||||||
}, params);
|
}, params);
|
||||||
|
|||||||
Reference in New Issue
Block a user