public void OnSettingsUI(UIHelperBase helper) { helper.AddSpace(20); dropDown = (UIDropDown)helper.AddDropdown("Cost Tooltip When Selectors Are Invisible", modes, Settings.TooltipMode, (i) => { Settings.TooltipMode = i; Settings.SaveConfiguration(); if (HideSelectors.Loaded) { HideSelectors.Toggle(); } }); }
public override void OnUpdate(float realTimeDelta, float simulationTimeDelta) { if ((Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt)) && Input.GetKey(KeyCode.H)) { if (_processed) { return; } _processed = true; HideSelectors.Toggle(); } else { _processed = false; } }