public void ShowLevelUI(Action levelChangedCallback, Action toggleSettingCallback, Action resetSettingsCallback) { AdjustmentDrawable adjustment = new AdjustmentDrawable(toggleSettingCallback, resetSettingsCallback); adjustment.OnLevelChanged += levelChangedCallback; wrapped.Drawable = adjustment; }
public void Destroy() { //ApplicationLauncher.Instance.DisableMutuallyExclusive(wrapped); if (wrapped != null) { ApplicationLauncher.Instance.RemoveModApplication(wrapped); wrapped = null; addedToAppLauncher = false; } levelUI = null; }
private void showAdjustmentUI() { AdjustmentDrawable adjustment = new AdjustmentDrawable(); adjustment.OnLevelChanged += () => { if (listenToSliderChange) { setting.Level = adjustment.Level; setting.UseDefaultAmbience = false; saveSettings(); startAutoHide(); } }; button.Drawable = adjustment; updateSliderFromSetting(); startAutoHide(); }
public void HideLevelUI() { levelUI = null; }
public void ShowLevelUI(Action levelChangedCallback, Action toggleSettingCallback, Action resetSettingsCallback) { levelUI = new AdjustmentDrawable(toggleSettingCallback, resetSettingsCallback); levelUI.OnLevelChanged += levelChangedCallback; }