[client] update StartFrame

This commit is contained in:
2018-07-27 17:35:12 +03:00
parent f8bba85eb4
commit a24d610b05
9 changed files with 220 additions and 150 deletions

View File

@@ -0,0 +1,25 @@
package ru.m.skin;
import flash.display.Graphics;
import haxework.gui.ButtonView;
import haxework.gui.skin.ButtonColorSkin;
class SimpleButtonSkin extends ButtonColorSkin {
public var borderColor(default, default):Int;
public function new(color:Int = 0xffffff, borderColor:Int = 0x95937D) {
super(color, 0.6);
this.borderColor = borderColor;
}
override public function draw(view:ButtonView):Void {
var color:Int = selectColor(view);
var graphics:Graphics = view.contentAsSprite.graphics;
graphics.clear();
graphics.beginFill(color, alpha);
graphics.lineStyle(2, borderColor);
graphics.drawRoundRect(0, 0, view.width, view.height, 10, 10);
graphics.endFill();
}
}