fixes
This commit is contained in:
@@ -49,6 +49,7 @@ class TextView extends SpriteView implements ITextView<Sprite, TextField> {
|
||||
textFormat = textField.defaultTextFormat;
|
||||
textFormat.font = "Arial";
|
||||
textFormat.size = 16;
|
||||
textFormat.leading = 0;
|
||||
textFormat.align = TextFormatAlign.CENTER;
|
||||
content.addChild(textField);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ class ButtonBitmapSkin implements ISkin<Sprite, ButtonView> implements ISize {
|
||||
public var upImage(null, set):BitmapData;
|
||||
public var overImage(null, set):BitmapData;
|
||||
public var downImage(null, set):BitmapData;
|
||||
public var disableImage(null, default):BitmapData;
|
||||
|
||||
private var images:Map<ButtonState, BitmapData>;
|
||||
private var disable:BitmapData;
|
||||
@@ -62,7 +63,7 @@ class ButtonBitmapSkin implements ISkin<Sprite, ButtonView> implements ISize {
|
||||
|
||||
public function draw(view:ButtonView):Void {
|
||||
if (images == null) return;
|
||||
var image:BitmapData = view.disabled ? disable : images.get(view.state);
|
||||
var image:BitmapData = view.disabled ? disableImage == null ? disable : disableImage : images.get(view.state);
|
||||
DrawUtil.draw(view.content.graphics, image, new Rectangle(0, 0, view.width, view.height), fillType, color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user