Exemplo n.º 1
0
 public void ExtraSettingsAPI_ButtonPress(string name)
 {
     if (name == "default")
     {
         ExtraSettings.ResetAllSettings();
     }
 }
Exemplo n.º 2
0
 private void SavePersistence()
 {
     persistence.zoomSpeed        = ExtraSettings.GetSliderValue("zoomspeed");
     persistence.nearClip         = ExtraSettings.GetSliderValue("nearclip");
     persistence.minimapPosition  = ExtraSettings.GetComboboxSelectedIndex("position");
     persistence.markers          = ExtraSettings.GetCheckboxState("markers");
     persistence.caveMode         = ExtraSettings.GetCheckboxState("cavemode");
     persistence.renderingQuality = ExtraSettings.GetComboboxSelectedIndex("renderquality");
 }
Exemplo n.º 3
0
 public void ExtraSettingsAPI_SettingsOpen()
 {
     ExtraSettings.SetSliderValue("zoomspeed", persistence.zoomSpeed);
     ExtraSettings.SetSliderValue("nearclip", persistence.nearClip);
     ExtraSettings.SetComboboxSelectedIndex("position", persistence.minimapPosition);
     ExtraSettings.SetComboboxSelectedIndex("renderquality", persistence.renderingQuality);
     ExtraSettings.SetCheckboxState("markers", persistence.markers);
     ExtraSettings.SetCheckboxState("cavemode", persistence.caveMode);
 }
Exemplo n.º 4
0
        public void ExtraSettingsAPI_Load()
        {
            persistence.zoomMinimapIn  = ExtraSettings.GetKeybindName("zoomminimapin");
            persistence.zoomMinimapOut = ExtraSettings.GetKeybindName("zoomminimapout");
            persistence.minimapDrag    = ExtraSettings.GetKeybindName("minimapdrag");
            SavePersistence();

            markersLastValue = persistence.markers;
            if (RAPI.IsCurrentSceneGame())
            {
                StartCoroutine(WaitForEndOfInitInGameScene());
            }
        }