Fix bug with shader
This commit is contained in:
@@ -19,6 +19,7 @@ class CharterStrumlineExtraButton extends UISprite {
|
||||
button.scale.set(0.75,0.75);
|
||||
button.updateHitbox();
|
||||
button.antialiasing = false;
|
||||
button.cursor = BUTTON;
|
||||
members.push(button);
|
||||
|
||||
this.text = new UIText(0,0, 160, text);
|
||||
@@ -49,4 +50,10 @@ class CharterStrumlineExtraButton extends UISprite {
|
||||
FlxMath.lerp(button.scale.y, buttonScale.y, 1/6)
|
||||
);
|
||||
}
|
||||
|
||||
public override function destroy() {
|
||||
super.destroy();
|
||||
|
||||
buttonScale.put();
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ class UIDropDown extends UISliceSprite {
|
||||
this.options = options;
|
||||
this.index = index;
|
||||
|
||||
cursor = BUTTON;
|
||||
|
||||
label = new UIText(0, 0, width - height, options[index]);
|
||||
members.push(label);
|
||||
|
||||
@@ -33,7 +35,6 @@ class UIDropDown extends UISliceSprite {
|
||||
}
|
||||
|
||||
public override function update(elapsed:Float) {
|
||||
|
||||
var opened = curMenu.contextMenuOpened();
|
||||
framesOffset = (opened || (hovered && FlxG.mouse.pressed)) ? 18 : (hovered ? 9 : 0);
|
||||
if (FlxG.mouse.justReleased && (hovered || dropButton.hovered)) {
|
||||
|
||||
@@ -24,6 +24,7 @@ class UIScrollBar extends UISprite {
|
||||
this.length = length;
|
||||
|
||||
thumb = new UISliceSprite(0, 0, w, h, 'editors/ui/scrollbar');
|
||||
thumb.cursor = BUTTON;
|
||||
members.push(thumb);
|
||||
|
||||
thumbIcon = new FlxSprite(0, 0, Paths.image('editors/ui/scrollbar-icon'));
|
||||
|
||||
Reference in New Issue
Block a user