alphabet!!
This commit is contained in:
@@ -79,10 +79,16 @@ class KeybindSetting extends FlxTypedSpriteGroup<FlxSprite> {
|
||||
}
|
||||
|
||||
public function changeKeybind(callback:Void->Void, cancelCallback:Void->Void, p2:Bool = false) {
|
||||
|
||||
var flicker = FlxFlicker.flicker(this, 0, Options.flashingMenu ? 0.06 : 0.15, true, false, function(t) {
|
||||
});
|
||||
|
||||
KeybindsOptions.instance.persistentDraw = true;
|
||||
KeybindsOptions.instance.persistentUpdate = false;
|
||||
|
||||
KeybindsOptions.instance.openSubState(new ChangeKeybindSubState(function(key:FlxKey) {
|
||||
flicker.stop();
|
||||
flicker.destroy();
|
||||
if (p2)
|
||||
Reflect.setField(Options, 'P2_$value', [option2 = key]);
|
||||
else
|
||||
@@ -90,6 +96,8 @@ class KeybindSetting extends FlxTypedSpriteGroup<FlxSprite> {
|
||||
updateText();
|
||||
callback();
|
||||
}, function() {
|
||||
flicker.stop();
|
||||
flicker.destroy();
|
||||
if (p2)
|
||||
Reflect.setField(Options, 'P2_$value', [option2 = 0]);
|
||||
else
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package funkin.options.keybinds;
|
||||
|
||||
import flixel.FlxCamera;
|
||||
import flixel.effects.FlxFlicker;
|
||||
import funkin.system.Controls;
|
||||
import funkin.options.Options;
|
||||
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
|
||||
@@ -217,13 +216,11 @@ class KeybindsOptions extends MusicBeatSubstate {
|
||||
if (alphabets.members[curSelected] != null) {
|
||||
canSelect = false;
|
||||
CoolUtil.playMenuSFX(1);
|
||||
FlxFlicker.flicker(alphabets.members[curSelected], 0.4, Options.flashingMenu ? 0.06 : 0.15, true, false, function(t) {
|
||||
alphabets.members[curSelected].changeKeybind(function() {
|
||||
canSelect = true;
|
||||
}, function() {
|
||||
canSelect = true;
|
||||
}, p2Selected);
|
||||
});
|
||||
alphabets.members[curSelected].changeKeybind(function() {
|
||||
canSelect = true;
|
||||
}, function() {
|
||||
canSelect = true;
|
||||
}, p2Selected);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user