Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Updated quick settings
Browse files Browse the repository at this point in the history
  • Loading branch information
silent-destroyer committed Sep 5, 2023
1 parent 140ca81 commit e0b26ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Data/RandomizerSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public RandomizerSettings() {
FoolTrapIntensity = FoolTrapOption.NORMAL;

EnemyRandomizerEnabled = false;
EnemyDifficulty = EnemyRandomizationType.RANDOM;
EnemyGeneration = EnemyGenerationType.RANDOM;
EnemyDifficulty = EnemyRandomizationType.BALANCED;
EnemyGeneration = EnemyGenerationType.SEEDED;
ExtraEnemiesEnabled = false;

RandomFoxColorsEnabled = true;
Expand Down
9 changes: 6 additions & 3 deletions src/Patches/QuickSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@ private static void QuickSettingsWindow(int windowID) {
GUI.Toggle(new Rect(240f, 180f, 210f, 30f), slotData["sword_progression"].ToString() == "1", "Sword Progression");
GUI.Toggle(new Rect(10f, 220f, 175f, 30f), slotData["start_with_sword"].ToString() == "1", "Start With Sword");
GUI.Toggle(new Rect(240f, 220f, 175f, 30f), slotData["ability_shuffling"].ToString() == "1", "Shuffle Abilities");
GUI.Toggle(new Rect(10, 260f, 175f, 30f), slotData["hexagon_quest"].ToString() == "1", "Hexagon Quest");
}

GUI.Label(new Rect(10f, 260f, 200f, 30f), $"Other Settings");
bool DeathLink = GUI.Toggle(new Rect(10f, 300f, 125f, 30f), TunicArchipelago.Settings.DeathLinkEnabled, "Death Link");
GUI.Label(new Rect(10f, 300f, 200f, 30f), $"Other Settings");
bool DeathLink = GUI.Toggle(new Rect(10f, 340f, 115f, 30f), TunicArchipelago.Settings.DeathLinkEnabled, "Death Link");
TunicArchipelago.Settings.DeathLinkEnabled = DeathLink;
bool EnemyRandomizer = GUI.Toggle(new Rect(150f, 340f, 180f, 30f), TunicArchipelago.Settings.EnemyRandomizerEnabled, "Enemy Randomizer");
TunicArchipelago.Settings.EnemyRandomizerEnabled = EnemyRandomizer;
GUI.skin.label.fontSize = 20;
GUI.Label(new Rect(10f, 340f, 500f, 30f), $"More settings in options menu!");
GUI.Label(new Rect(10f, 370f, 500f, 30f), $"More settings in options menu!");
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/TunicArchipelago.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override void Load() {
});
if (!File.Exists(SettingsPath)) {
Settings = new RandomizerSettings();
File.WriteAllText(SettingsPath, JsonConvert.SerializeObject(Settings));
File.WriteAllText(SettingsPath, JsonConvert.SerializeObject(Settings, Formatting.Indented));
} else {
Settings = JsonConvert.DeserializeObject<RandomizerSettings>(File.ReadAllText(SettingsPath));
Log.LogInfo("Loaded settings from file: " + JsonConvert.DeserializeObject<RandomizerSettings>(File.ReadAllText(SettingsPath)));
Expand Down

0 comments on commit e0b26ef

Please sign in to comment.