mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-01 03:04:30 +00:00
fix: disable flickering when changing FPS in the options menu
This commit is contained in:
parent
e66290c55f
commit
b2647fe09f
|
@ -46,6 +46,8 @@ class EnumPreferenceItem extends TextMenuItem
|
||||||
}
|
}
|
||||||
|
|
||||||
lefthandText = new AtlasText(15, y, formatted(defaultValue), AtlasFont.DEFAULT);
|
lefthandText = new AtlasText(15, y, formatted(defaultValue), AtlasFont.DEFAULT);
|
||||||
|
|
||||||
|
this.fireInstantly = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
override function update(elapsed:Float):Void
|
override function update(elapsed:Float):Void
|
||||||
|
|
|
@ -58,6 +58,8 @@ class NumberPreferenceItem extends TextMenuItem
|
||||||
this.precision = precision;
|
this.precision = precision;
|
||||||
this.onChangeCallback = callback;
|
this.onChangeCallback = callback;
|
||||||
this.valueFormatter = valueFormatter;
|
this.valueFormatter = valueFormatter;
|
||||||
|
|
||||||
|
this.fireInstantly = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
override function update(elapsed:Float):Void
|
override function update(elapsed:Float):Void
|
||||||
|
|
Loading…
Reference in a new issue