Skip to content

Commit 6cad90b

Browse files
committed
bobob
1 parent 539ac0c commit 6cad90b

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

source/funkin/ui/freeplay/DifficultyDots.hx

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
1515

1616
public var currentDifficultyList:Array<String> = [];
1717

18+
var prevDifficulty:String;
19+
1820
public var usedDots:Array<DifficultyDot> = [];
1921

2022
public function new(x:Float, y:Float)
@@ -72,7 +74,7 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
7274
}
7375
else
7476
{
75-
targetState = (i == prevIndex) ? DESELECTING : DESELECTED;
77+
targetState = (i == prevIndex || prevDifficulty == curDotSpr.difficultyId) ? DESELECTING : DESELECTED;
7678
}
7779

7880
curDotSpr.visible = true;
@@ -92,6 +94,7 @@ class DifficultyDots extends FlxTypedSpriteGroup<DifficultyDot>
9294

9395
curDotSpr.updateState(curDotSpr.type, targetState);
9496
}
97+
prevDifficulty = currDiffString;
9598
}
9699

97100
public function fade(fadeIn:Bool):Void
@@ -295,25 +298,3 @@ class DifficultyDot extends FlxSpriteGroup
295298
override public inline function toString():String
296299
return 'DiffDot(diff=$difficultyId)';
297300
}
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-
*/

source/funkin/ui/freeplay/FreeplayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class FreeplayState extends MusicBeatSubState
123123
/**
124124
* For positioning the difficulty dots.
125125
*/
126-
public static final DEFAULT_DOTS_GROUP_POS:Array<Int> = [200, 170];
126+
public static final DEFAULT_DOTS_GROUP_POS:Array<Int> = [190, 170];
127127

128128
var songs:Array<Null<FreeplaySongData>> = [];
129129

0 commit comments

Comments
 (0)