Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit c172e16

Browse files
committed
Update overrides
1 parent 134ba4e commit c172e16

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Splatoon/Gui/CGui.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Splatoon.Gui;
88
using Splatoon.Gui.Scripting;
99
using Splatoon.Memory;
10+
using Splatoon.SplatoonScripting;
1011
using Splatoon.Utils;
1112
using System.Diagnostics;
1213
using System.Runtime.InteropServices;
@@ -62,6 +63,7 @@ void Draw()
6263
WasOpen = false;
6364
Notify.Success("Configuration saved".Loc());
6465
if(p.Config.verboselog) p.Log("Configuration saved");
66+
ScriptingProcessor.Scripts.Each(x => x.InternalData.UnconditionalDraw = false);
6567
}
6668
return;
6769
}

Splatoon/Serializables/Configuration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public void Save(bool suppressError = false)
8787
{
8888
//PluginLog.Debug($"Saving configuration for {x.InternalData.FullName}");
8989
Safe(x.Controller.SaveConfig);
90+
Safe(x.Controller.SaveOverrides);
9091
}
9192
}
9293
}

Splatoon/Splatoon.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Authors>NightmareXIV</Authors>
5-
<Version>3.2.1.2</Version>
5+
<Version>3.2.1.3</Version>
66
</PropertyGroup>
77

88
<PropertyGroup>

Splatoon/SplatoonScripting/SplatoonScript.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ internal void DrawRegisteredElements()
165165
if (ImGui.GetIO().KeyShift || x.Elements.All(z => Controller.GetRegisteredElements().ContainsKey(z.Key)))
166166
{
167167
InternalData.Overrides = x;
168+
Controller.ApplyOverrides();
168169
Notify.Success("Import success");
169170
}
170171
else

0 commit comments

Comments
 (0)