fix: Prevent gamemode slider movement when hardcore mode is enabled
Add virtual `canMoveSlider` method to UIScene base class and override it in both LoadMenu and CreateWorldMenu scenes. The method returns false when attempting to move the gamemode slider while hardcore mode is active, effectively locking the slider in that state. The UIController now checks `canMoveSlider` before initiating a slider drag and during ongoing drag updates.
This commit is contained in:
@@ -74,6 +74,7 @@ protected:
|
||||
|
||||
virtual void handleTimerComplete(int id);
|
||||
virtual void handleGainFocus(bool navBack);
|
||||
virtual bool canMoveSlider(F64 sliderId);
|
||||
|
||||
public:
|
||||
// INPUT
|
||||
|
||||
Reference in New Issue
Block a user