[client] display version

This commit is contained in:
2018-01-05 18:15:51 +03:00
parent 54abb75102
commit d013fb4988
3 changed files with 11 additions and 1 deletions

View File

@@ -20,6 +20,15 @@
"@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"
}
]
}

View File

@@ -50,6 +50,7 @@ class Client implements IConnectionHandler {
var font:Font = Font.enumerateFonts()[0];
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());
#if flash

View File

@@ -121,7 +121,7 @@ class Haxe extends Sdk {
*/
openfl(params) {
params = Object.assign({
build: dateformat(new Date(), 'yyyy-mm-ddHH:MM:ss'),
build: dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss'),
macro: [],
debug: false,
}, params);