Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source/funkin/editors/ui/UIState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ class UIState extends MusicBeatState {
public var curContextMenu:UIContextMenu = null;

public static var state(get, never):UIState;

public static var fallbackState:UIState = null;

private inline static function get_state()
return FlxG.state is UIState ? cast FlxG.state : null;
return FlxG.state is UIState ? cast FlxG.state : fallbackState;

public var buttonHandler:Void->Void = null;
public var hoveredSprite:UISprite = null;
Expand Down