Skip to content

Commit 71e1095

Browse files
committed
chore: Rename 'qt_taunt' keybind to 'taunt'
Updated all references and default keybinds from 'qt_taunt' to 'taunt' for consistency. Also removed unused imports in several files and cleaned up a commented-out line in ClientPrefs.
1 parent 5a85b63 commit 71e1095

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

source/ClientPrefs.hx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package;
22

33
import Controls;
4-
import flixel.graphics.FlxGraphic;
54
import flixel.input.keyboard.FlxKey;
65

76
class ClientPrefs { //default settings if it can't find a save file containing your current settings
@@ -242,7 +241,7 @@ class ClientPrefs { //default settings if it can't find a save file containing y
242241

243242
'debug_1' => [SEVEN, NONE],
244243
'debug_2' => [EIGHT, NONE],
245-
'qt_taunt' => [SPACE, NONE]
244+
'taunt' => [SPACE, NONE]
246245
];
247246
public static var defaultKeys:Map<String, Array<FlxKey>> = null;
248247

@@ -345,7 +344,7 @@ class ClientPrefs { //default settings if it can't find a save file containing y
345344
}
346345

347346
inline public static function getGameplaySetting(name:String, defaultValue:Dynamic):Dynamic {
348-
return /*PlayState.isStoryMode ? defaultValue : */ (gameplaySettings.exists(name) ? gameplaySettings.get(name) : defaultValue);
347+
return (gameplaySettings.exists(name) ? gameplaySettings.get(name) : defaultValue);
349348
}
350349

351350
public static function reloadControls() {

source/Controls.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ package;
33
import flixel.input.FlxInput;
44
import flixel.input.actions.FlxAction;
55
import flixel.input.actions.FlxActionInput;
6-
import flixel.input.actions.FlxActionInputDigital;
76
import flixel.input.actions.FlxActionManager;
87
import flixel.input.actions.FlxActionSet;
9-
import flixel.input.gamepad.FlxGamepadButton;
108
import flixel.input.gamepad.FlxGamepadInputID;
119
import flixel.input.keyboard.FlxKey;
1210

source/PlayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class PlayState extends MusicBeatState
453453
debugKeysCharacter = ClientPrefs.copyKey(ClientPrefs.keyBinds.get('debug_2'));
454454
PauseSubState.songName = null; //Reset to default
455455
playbackRate = ClientPrefs.getGameplaySetting('songspeed', 1);
456-
tauntKey = ClientPrefs.copyKey(ClientPrefs.keyBinds.get('qt_taunt'));
456+
tauntKey = ClientPrefs.copyKey(ClientPrefs.keyBinds.get('taunt'));
457457

458458
keysArray = [];
459459

source/options/ControlsSubState.hx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package options;
22

3-
import Controls;
4-
import flixel.graphics.FlxGraphic;
53
import flixel.input.keyboard.FlxKey;
64

75
class ControlsSubState extends MusicBeatSubstate {
@@ -17,7 +15,7 @@ class ControlsSubState extends MusicBeatSubstate {
1715
['Down', 'note_down'],
1816
['Up', 'note_up'],
1917
['Right', 'note_right'],
20-
['Taunt', 'qt_taunt'],
18+
['Taunt', 'taunt'],
2119
['Use BE', 'bot_energy'],
2220
[''],
2321
['UI'],

0 commit comments

Comments
 (0)