File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed
source/funkin/ui/freeplay Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
15
15
16
16
public var currentDifficultyList : Array <String > = [];
17
17
18
+ var prevDifficulty : String ;
19
+
18
20
public var usedDots : Array <DifficultyDot > = [];
19
21
20
22
public function new (x : Float , y : Float )
@@ -72,7 +74,7 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
72
74
}
73
75
else
74
76
{
75
- targetState = (i == prevIndex ) ? DESELECTING : DESELECTED ;
77
+ targetState = (i == prevIndex || prevDifficulty == curDotSpr . difficultyId ) ? DESELECTING : DESELECTED ;
76
78
}
77
79
78
80
curDotSpr .visible = true ;
@@ -92,6 +94,7 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
92
94
93
95
curDotSpr .updateState (curDotSpr .type , targetState );
94
96
}
97
+ prevDifficulty = currDiffString ;
95
98
}
96
99
97
100
public function fade (fadeIn : Bool ): Void
@@ -295,25 +298,3 @@ class DifficultyDot extends FlxSpriteGroup
295
298
override public inline function toString (): String
296
299
return ' DiffDot(diff= $difficultyId )' ;
297
300
}
298
- /*
299
- class DifficultyDotOLD extends FlxSpriteGroup
300
- {
301
-
302
-
303
- public function new(id:String, num:Int, erected:Bool)
304
- {
305
- updateState();
306
- }
307
-
308
-
309
-
310
-
311
-
312
- override function update(elapsed:Float):Void
313
- {
314
- super.update(elapsed);
315
- }
316
-
317
-
318
- }
319
- */
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class FreeplayState extends MusicBeatSubState
123
123
/**
124
124
* For positioning the difficulty dots.
125
125
*/
126
- public static final DEFAULT_DOTS_GROUP_POS : Array <Int > = [200 , 170 ];
126
+ public static final DEFAULT_DOTS_GROUP_POS : Array <Int > = [190 , 170 ];
127
127
128
128
var songs : Array <Null <FreeplaySongData >> = [];
129
129
You can’t perform that action at this time.
0 commit comments