update
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<assets path="src/client/resources" rename="resources" include="*"/>
|
<assets path="src/client/resources" rename="resources" include="*"/>
|
||||||
<haxelib name="openfl"/>
|
<haxelib name="openfl"/>
|
||||||
<haxelib name="protohx"/>
|
<haxelib name="protohx"/>
|
||||||
<haxelib name="haxework" version="git"/>
|
<haxelib name="haxework"/>
|
||||||
<window width="760" height="600"/>
|
<window width="760" height="600"/>
|
||||||
<haxeflag name="-D" value="swf-gpu"/>
|
<haxeflag name="-D" value="swf-gpu"/>
|
||||||
<haxeflag name="-D" value="native-trace"/>
|
<haxeflag name="-D" value="native-trace"/>
|
||||||
@@ -17,5 +17,5 @@
|
|||||||
<haxeflag name="-debug"/>
|
<haxeflag name="-debug"/>
|
||||||
<haxeflag name="--macro" value="Meta.set('0.0.0')"/>
|
<haxeflag name="--macro" value="Meta.set('0.0.0')"/>
|
||||||
|
|
||||||
<template path="src/client/webapp/index_template.html" rename="index.html"/>
|
<!--<template path="src/client/webapp/index_template.html" rename="index.html"/>-->
|
||||||
</project>
|
</project>
|
||||||
@@ -17,13 +17,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "loginInput", "@type": "haxework.gui.InputView",
|
"id": "loginInput", "@type": "haxework.gui.InputView",
|
||||||
"skin": {
|
|
||||||
"@type": "haxework.gui.skin.BitmapSkin",
|
|
||||||
"image": "@asset:image:resources/images/map/map_3-0.png",
|
|
||||||
"fillType": "REPEAT"
|
|
||||||
},
|
|
||||||
"width": 220, "height": 44, "text": "",
|
"width": 220, "height": 44, "text": "",
|
||||||
"@style": "label"
|
"@style": "input"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -38,13 +33,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "passwordInput", "@type": "haxework.gui.InputView",
|
"id": "passwordInput", "@type": "haxework.gui.InputView",
|
||||||
"skin": {
|
|
||||||
"@type": "haxework.gui.skin.BitmapSkin",
|
|
||||||
"image": "@asset:image:resources/images/map/map_3-0.png",
|
|
||||||
"fillType": "REPEAT"
|
|
||||||
},
|
|
||||||
"width": 220, "height": 44, "text": "",
|
"width": 220, "height": 44, "text": "",
|
||||||
"@style": "label"
|
"@style": "input"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"pWidth": 100, "pHeight": 100,
|
"pWidth": 100, "pHeight": 100,
|
||||||
"skin": {
|
"skin": {
|
||||||
"@type": "haxework.gui.skin.BitmapSkin",
|
"@type": "haxework.gui.skin.BitmapSkin",
|
||||||
"image": "@asset:image:resources/images/map/map_1.png",
|
"image": "@asset:image:resources/images/background.png",
|
||||||
"fillType": "REPEAT"
|
"fillType": "REPEAT"
|
||||||
},
|
},
|
||||||
"views": [
|
"views": [
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
{
|
{
|
||||||
"person": {
|
"person": {
|
||||||
"width": 440, "height": 44,
|
"width": 440, "height": 44,
|
||||||
"skin": {
|
|
||||||
"@type": "haxework.gui.skin.BitmapSkin",
|
|
||||||
"image": "@asset:image:resources/images/map/map_3-0.png",
|
|
||||||
"fillType": "REPEAT"
|
|
||||||
},
|
|
||||||
"views": [
|
"views": [
|
||||||
{
|
{
|
||||||
"id": "nameLabel",
|
"id": "nameLabel",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"button_skin": {
|
"_button_skin": {
|
||||||
"skin": {
|
"skin": {
|
||||||
"@type": "haxework.gui.skin.ButtonBitmapSkin",
|
"@type": "haxework.gui.skin.ButtonBitmapSkin",
|
||||||
"image": "@asset:image:resources/images/map/map_4.png",
|
"image": "@asset:image:resources/images/map/map_4.png",
|
||||||
@@ -12,11 +12,34 @@
|
|||||||
"shadowColor": "0x000000"
|
"shadowColor": "0x000000"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
|
||||||
"label": {
|
"label": {
|
||||||
"fontColor": "0xffffff",
|
"fontColor": "0xffffff",
|
||||||
"fontEmbed": true,
|
"fontEmbed": false,
|
||||||
"fontFamily": "@res:text:fontName",
|
"fontFamily": "@res:text:fontName",
|
||||||
"fontSize": 16,
|
"fontSize": 16,
|
||||||
"shadowColor": "0x000000"
|
"shadowColor": "0x000000"
|
||||||
|
},
|
||||||
|
|
||||||
|
"input": {
|
||||||
|
"fontColor": "0xffffff",
|
||||||
|
"fontEmbed": false,
|
||||||
|
"fontFamily": "@res:text:fontName",
|
||||||
|
"fontSize": 16,
|
||||||
|
"shadowColor": "0x000000",
|
||||||
|
"skin": {
|
||||||
|
"@type": "haxework.gui.skin.ColorSkin",
|
||||||
|
"color": "0x000000"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -42,8 +42,9 @@ class Client implements IConnectionHandler {
|
|||||||
Provider.setFactory(IResources, Resources);
|
Provider.setFactory(IResources, Resources);
|
||||||
Provider.setFactory(GameData, GameData);
|
Provider.setFactory(GameData, GameData);
|
||||||
|
|
||||||
var font = Assets.getFont("resources/fonts/8-BIT WONDER.TTF");
|
//var font = Assets.getFont("resources/fonts/8-BIT WONDER.TTF");
|
||||||
Provider.get(IResources).text.put("fontName", font.fontName);
|
//Provider.get(IResources).text.put("fontName", font.fontName);
|
||||||
|
Provider.get(IResources).text.put("fontName", "Arial");
|
||||||
|
|
||||||
Provider.set(IPacketBuilder, new PacketBuilder());
|
Provider.set(IPacketBuilder, new PacketBuilder());
|
||||||
#if flash
|
#if flash
|
||||||
|
|||||||
Reference in New Issue
Block a user