update haxework. ep3

This commit is contained in:
2019-03-01 12:48:35 +03:00
parent e3d3359019
commit 2d4c56d04c
21 changed files with 188 additions and 252 deletions

View File

@@ -1,26 +0,0 @@
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 = 0xffffff) {
super(color, 0.6);
this.borderColor = borderColor;
}
override public function draw(view:ButtonView):Void {
var color:Int = selectColor(view);
var graphics:Graphics = view.content.graphics;
graphics.clear();
graphics.beginFill(color, alpha);
graphics.lineStyle(2, borderColor);
//graphics.drawRoundRect(0, 0, view.width, view.height, 10, 10);
graphics.drawRect(0, 0, view.width, view.height);
graphics.endFill();
}
}