예제 #1
0
        public void ShowLevelUI(Action levelChangedCallback, Action toggleSettingCallback, Action resetSettingsCallback)
        {
            AdjustmentDrawable adjustment = new AdjustmentDrawable(toggleSettingCallback, resetSettingsCallback);

            adjustment.OnLevelChanged += levelChangedCallback;

            wrapped.Drawable = adjustment;
        }
예제 #2
0
        public void Destroy()
        {
            //ApplicationLauncher.Instance.DisableMutuallyExclusive(wrapped);
            if (wrapped != null)
            {
                ApplicationLauncher.Instance.RemoveModApplication(wrapped);
                wrapped            = null;
                addedToAppLauncher = false;
            }

            levelUI = null;
        }
예제 #3
0
        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();
        }
예제 #4
0
 public void HideLevelUI()
 {
     levelUI = null;
 }
예제 #5
0
 public void ShowLevelUI(Action levelChangedCallback, Action toggleSettingCallback, Action resetSettingsCallback)
 {
     levelUI = new AdjustmentDrawable(toggleSettingCallback, resetSettingsCallback);
     levelUI.OnLevelChanged += levelChangedCallback;
 }