it all works just we gotta fix super small sprites
This commit is contained in:
@@ -101,7 +101,7 @@ class UIDebugState extends UIState {
|
||||
}, 130, 48));
|
||||
add(new UITextBox(10, 220, ""));
|
||||
|
||||
var spliceSprite:UISliceSprite = new UISliceSprite(650, 300, 200, 200, "editors/ui/context-bg-debug");
|
||||
var spliceSprite:UISliceSprite = new UISliceSprite(650, 350, 10, 30, "editors/ui/context-bg");
|
||||
add(spliceSprite);
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ class UISliceSprite extends UISprite {
|
||||
public override function draw() @:privateAccess {
|
||||
checkEmptyFrame();
|
||||
|
||||
if (alpha == 0 || _frame.type == FlxFrameType.EMPTY) {
|
||||
if (!(alpha == 0 || _frame.type == FlxFrameType.EMPTY)) {
|
||||
if (__framesDirty) calculateFrames();
|
||||
if (__meshDirty) __genMesh();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user