LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[BUG] 'SSSliderSetting.SyncDragging' Property Always Returns False

Open CCrous opened this issue 1 year ago • 0 comments

Game Version: 14.0.3-labapi-publicbeta-5bf276ee

Description

When binding client-side slider settings through SSSliderSetting, the SyncDragging property persistently returns false even while the slider is being dragged. Although the SyncFloatValue property synchronizes numerical changes normally.

Reproduction Steps

  1. Define server settings containing SSSliderSetting
  2. Listen to the ServerSpecificSettingsSync.ServerOnSettingValueReceived event
  3. Drag the slider on the client-side and observe log outputs

Expected Behavior

  • SyncDragging should return true when the slider is actively being dragged
  • SyncDragging should return false when the slider is released

Actual Behavior

SyncDragging remains false regardless of the slider's drag state.

Reproduction Code

// Simplified test code (omitted many)
public class PluginEntry : Plugin
{
    public override void Enable()
    {
        ServerSpecificSettingsSync.DefinedSettings = [
            new SSSliderSetting(45510,
                "test slider",
                0,
                100)
        ];
        ServerSpecificSettingsSync.ServerOnSettingValueReceived += OnSettingUpdate;
    }

    private static void OnSettingUpdate(ReferenceHub hub, ServerSpecificSettingBase setting)
    {
        if (setting is SSSliderSetting slider && slider.SettingId == 45510)
        {
            Logger.Info($"SyncDragging: {slider.SyncDragging} | Value: {slider.SyncFloatValue}");
        }
    }
}

CCrous avatar Apr 02 '25 16:04 CCrous