Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit ad38fa4

Browse files
committed
Fixed fading glitch
1 parent d22f556 commit ad38fa4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/InfoBarSubstate.hx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,20 @@ class InfoBarSubstate extends FlxSubState
3939
funny.alpha = 0;
4040
view.alpha = 0;
4141

42-
FlxTween.tween(blackBox, {alpha: 0.7}, 1, {ease: FlxEase.expoInOut});
43-
FlxTween.tween(funny, {alpha: 1}, 1, {ease: FlxEase.expoInOut});
44-
FlxTween.tween(view, {alpha: 1}, 1, {ease: FlxEase.expoInOut});
45-
4642
var amogus = 20;
4743
for (option in available) {
4844
var optionBtn = new FlxButton(amogus, 300, option, function() {addFeature(option);});
4945
optionBtn.scale.set(1, 2);
5046
btns.add(optionBtn);
47+
optionBtn.alpha = 0;
48+
FlxTween.tween(optionBtn, {alpha: 1}, 1, {ease: FlxEase.expoInOut});
5149
amogus = amogus + 90;
5250
}
5351

52+
FlxTween.tween(blackBox, {alpha: 0.7}, 1, {ease: FlxEase.expoInOut});
53+
FlxTween.tween(funny, {alpha: 1}, 1, {ease: FlxEase.expoInOut});
54+
FlxTween.tween(view, {alpha: 1}, 1, {ease: FlxEase.expoInOut});
55+
5456

5557

5658
if (current == null) {

0 commit comments

Comments
 (0)