public static void OnSettingsUI(UIHelperBase helper)
 {
     Debug.Log("Make settings was called");
     for (int i = 0; i < Enum.GetValues(typeof(Slots)).Length; i++)
     {
         dropDowns[i] = helper.AddDropdown(((Slots)i).ToString(), Enum.GetNames(typeof(GlobalTextures)), (int)selection[i], (_) => OnSettingsChanged()) as UIDropDown;
     }
     defaultTilingInput = helper.AddTextfield("default tiling value", defaultTiling.ToString(), (_) => { }, (_) => { OnSettingsChanged(); }) as UITextField;
     helper.AddCheckbox("temporarily disable the mod (for quick comparison)", TempDisable, (isChecked) => { TempDisable = isChecked; Patches.RefreshNets(); });
 }
Exemple #2
0
 public void OnLevelLoaded(LoadMode mode)
 {
     Patches.RefreshNets();
 }