* ghostbuster mouse and overlay stacks * variable adjustment * use map coords for distance check * vertical stack ordering, and cvars * skreee * fix stack merge 'sidedness' issue * overlays no longer try to stack to overlays at the wrong coordinates * options slider for stack merge distance * admin option sliders for ghost fade/hide * Update AdminOptionsTab.xaml.cs --------- Co-authored-by: ScarKy0 <scarky0@onet.eu>
53 lines
1.9 KiB
C#
53 lines
1.9 KiB
C#
using Content.Shared.CCVar;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.Options.UI.Tabs;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class AdminOptionsTab : Control
|
|
{
|
|
private const float OverlayMergeMin = 0.05f;
|
|
private const float OverlayMergeMax = 0.95f;
|
|
private const int OverlayGhostFadeMin = 0;
|
|
private const int OverlayGhostFadeMax = 10;
|
|
private const int OverlayGhostHideMin = 0;
|
|
private const int OverlayGhostHideMax = 5;
|
|
|
|
public AdminOptionsTab()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
Control.AddOptionCheckBox(CCVars.AdminPlayerlistSeparateSymbols, PlayerlistSeparateSymbolsCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AdminPlayerlistHighlightedCharacterColor, PlayerlistCharacterColorCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AdminPlayerlistRoleTypeColor, PlayerlistRoleTypeColorCheckBox);
|
|
|
|
Control.AddOptionCheckBox(CCVars.AdminOverlayClassic, EnableClassicOverlayCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AdminOverlaySymbols, EnableOverlaySymbolsCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AdminOverlayPlaytime, EnableOverlayPlaytimeCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AdminOverlayStartingJob, EnableOverlayStartingJobCheckBox);
|
|
|
|
Control.Initialize();
|
|
|
|
Control.AddOptionPercentSlider(
|
|
CCVars.AdminOverlayMergeDistance,
|
|
OverlayMergeDistanceSlider,
|
|
OverlayMergeMin,
|
|
OverlayMergeMax);
|
|
|
|
Control.AddOptionSlider(
|
|
CCVars.AdminOverlayGhostFadeDistance,
|
|
OverlayGhostFadeSlider,
|
|
OverlayGhostFadeMin,
|
|
OverlayGhostFadeMax);
|
|
|
|
Control.AddOptionSlider(
|
|
CCVars.AdminOverlayGhostHideDistance,
|
|
OverlayGhostHideSlider,
|
|
OverlayGhostHideMin,
|
|
OverlayGhostHideMax);
|
|
}
|
|
}
|
|
|