From 4b242a6e5907cf1ad05b97816550aeac7dbb6fc4 Mon Sep 17 00:00:00 2001 From: DoctorVanGogh Date: Sun, 17 Sep 2017 18:52:31 +0200 Subject: [PATCH] complete core functionality (create/rename/delete) --- Assemblies/ModSwitch.dll | Bin 13824 -> 26112 bytes README.md | 14 ++- Source/ModSwitch/ModSwitch.cs | 7 ++ Source/ModSwitch/ModSwitch.csproj | 7 +- Source/ModSwitch/ModSwitch.csproj.DotSettings | 4 +- Source/ModSwitch/Model/ModAttributes.cs | 32 +++++ Source/ModSwitch/Model/ModSet.cs | 68 ++++++++++- Source/ModSwitch/Properties/AssemblyInfo.cs | 4 +- Source/ModSwitch/Settings.cs | 113 ++++++++++++++++-- Source/ModSwitch/[UI]/Assets.cs | 21 ++++ Source/ModSwitch/[UI]/Dialog_SetText.cs | 54 +++++++++ Source/ModSwitch/[Util]/Linq.cs | 54 +++++++++ Source/ModSwitch/{ => [Util]}/Util.cs | 0 Source/ModSwitch/[Util]/Widgets.cs | 41 +++++++ TODO.md | 14 +-- Textures/UI/Delete.png | Bin 0 -> 430 bytes Textures/UI/Document.png | Bin 0 -> 189 bytes Textures/UI/Edit.png | Bin 0 -> 241 bytes Textures/UI/Settings.png | Bin 0 -> 443 bytes 19 files changed, 406 insertions(+), 27 deletions(-) create mode 100644 Source/ModSwitch/Model/ModAttributes.cs create mode 100644 Source/ModSwitch/[UI]/Assets.cs create mode 100644 Source/ModSwitch/[UI]/Dialog_SetText.cs create mode 100644 Source/ModSwitch/[Util]/Linq.cs rename Source/ModSwitch/{ => [Util]}/Util.cs (100%) create mode 100644 Source/ModSwitch/[Util]/Widgets.cs create mode 100644 Textures/UI/Delete.png create mode 100644 Textures/UI/Document.png create mode 100644 Textures/UI/Edit.png create mode 100644 Textures/UI/Settings.png diff --git a/Assemblies/ModSwitch.dll b/Assemblies/ModSwitch.dll index be2135d70e4e5bab99daa3e5fddb17605c7bcb4b..81a6016c62d5ecbdc3be26b2b4a6eaa64331e784 100644 GIT binary patch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cll&GG%3!rPkj99KaNS`eS6T?M(>HS zHQ_|c-)7n3Ck%=}pR>bfO&cwrdnY0~+eaf#nS3%PjP@M#-H3kuvKNnd2;<>M`OX0+ zcbSFByf~e}Lizpo8*#k5)r9!u%VSgv52ZfbS>rpqLHM+B7f{SB&pVH0i|3zD>pYg? zyfNiw`45e0naurG*x=K29(m7|WP`VjGf&z4-zYfellz>R`7`srLiTAv^n8LJL@wRC dxIfm Powered by Harmony diff --git a/Source/ModSwitch/ModSwitch.cs b/Source/ModSwitch/ModSwitch.cs index bd17ea5..c2af395 100644 --- a/Source/ModSwitch/ModSwitch.cs +++ b/Source/ModSwitch/ModSwitch.cs @@ -7,7 +7,9 @@ using Verse; namespace DoctorVanGogh.ModSwitch { + class ModSwitch : Mod { + private Settings _settings; public ModSwitch(ModContentPack content) : base(content) { @@ -30,5 +32,10 @@ public override void DoSettingsWindowContents(Rect inRect) { public void DoModsConfigWindowContents(Rect bottom) { _settings.DoModsConfigWindowContents(bottom); } + + public void DeleteSet(ModSet modSet) { + if (_settings.Sets.Remove(modSet)) + WriteSettings(); + } } } diff --git a/Source/ModSwitch/ModSwitch.csproj b/Source/ModSwitch/ModSwitch.csproj index 8f2a507..9f7a8b1 100644 --- a/Source/ModSwitch/ModSwitch.csproj +++ b/Source/ModSwitch/ModSwitch.csproj @@ -51,12 +51,17 @@ + - + + + + +