[client] update haxework. ep4
This commit is contained in:
@@ -5,6 +5,7 @@ views:
|
||||
$type: ru.m.tankz.frame.start.PresetsView
|
||||
geometry.size.width: 100%
|
||||
geometry.margin.top: 10
|
||||
geometry.margin.bottom: -3
|
||||
layout.hAlign: center
|
||||
- $type: haxework.gui.HGroupView
|
||||
skin: $r:skin:border
|
||||
|
||||
@@ -51,7 +51,10 @@ import ru.m.tankz.Type;
|
||||
}
|
||||
indexLabel.fontColor = cast color;
|
||||
var controlType = state.control.get(value);
|
||||
control.skin = [new ButtonBitmapSkin(Assets.getBitmapData('resources/image/ui/control/${controlType}.png'))];
|
||||
var image = Assets.getBitmapData('resources/image/ui/control/${controlType}.png');
|
||||
control.skin = [new ButtonBitmapSkin(image)];
|
||||
// ToDo:
|
||||
//control.geometry.size.fixed = [image.width, image.height];
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,7 @@ class Render extends SpriteView {
|
||||
g.beginFill(0x000000);
|
||||
g.drawRect(0, 0, mapWidth, mapHeight);
|
||||
g.endFill();
|
||||
geometry.size.content.width = mapWidth;
|
||||
geometry.size.content.height = mapHeight;
|
||||
setContentSize(mapWidth, mapHeight);
|
||||
}
|
||||
|
||||
public function draw(game:Engine):Void {
|
||||
|
||||
Reference in New Issue
Block a user