private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.AllLightConfigReloaded += (sender, e) => { LightConfig.Destroy(); // not perfect.. LoadConfig(); _groupWindow.SetVisible(false); _groupWindow = null; AllLightConfigReloaded(this, e); }; _groupWindow.AllLightConfigSaved += (sender, e) => SaveConfig(); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } if ((LightConfig != null && !LightConfig.UseBlizzy78Toolbar) || !ToolbarManager.ToolbarAvailable) { // Don't lock highlight on the button since it's just a toggle _appButtonStock.SetFalse(false); } }
protected virtual void Dispose(bool disposing) { LightConfig.Destroy(); _groupWindowIcon.SetVisible(false); if (_groupWindow != null) { _groupWindow.SetVisible(false); } }
private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } }
protected virtual void Dispose(bool disposing) { LightConfig.Destroy(); if (toolbarControl != null) { toolbarControl.OnDestroy(); GameObject.Destroy(toolbarControl); } if (_groupWindow != null) { _groupWindow.SetVisible(false); _groupWindow = null; } }
private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.AllLightConfigSaved += (sender, e) => SaveConfig(e); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } toolbarControl.SetFalse(false); }
private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow<ILightArrayConfig>(LightConfig); _groupWindow.AllLightConfigReloaded += (sender, e) => { LightConfig.Destroy(); // not perfect.. LoadConfig(); _groupWindow.SetVisible(false); _groupWindow = null; AllLightConfigReloaded(this, e); }; _groupWindow.AllLightConfigSaved += (sender, e) => SaveConfig(); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } if ((LightConfig != null && !LightConfig.UseBlizzy78Toolbar) || !ToolbarManager.ToolbarAvailable) { // Don't lock highlight on the button since it's just a toggle _appButtonStock.SetFalse(false); } }