Compare commits

..

1 Commits

Author SHA1 Message Date
ivan tkachenko 54e88b08a8 WIP: Add LethalConfig with suitable custom options
Draft because needs testing in multiplayer environment. Apparently,
both isClinet and isHost are true in single player.

FIXME:
If LethalConfig panel opened while orbiting, and then the round has started, it would still
be possible to modify the values at least once. This is presumably a bug in LethalConfig,
because it doesn't check the callback again before actually applying the change.
2025-07-12 04:49:20 +03:00
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ namespace MuzikaGromche
var slider = new IntSliderConfigItem(track.Weight.Entry, new IntSliderOptions
{
RequiresRestart = false,
CanModifyCallback = CanModifyWeightsNow,
CanModifyCallback = CanModifyCallback,
});
LethalConfigManager.AddConfigItem(slider);
}
@ -323,7 +323,7 @@ namespace MuzikaGromche
ConfigManager.Register(this);
}
public static CanModifyResult CanModifyWeightsNow()
public static CanModifyResult CanModifyCallback()
{
var startOfRound = StartOfRound.Instance;
if (!startOfRound)