Skip to content

Commit

Permalink
Removed statics from toggles (was unnecessary)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxgurugamer committed Jun 18, 2023
1 parent b2964da commit 3837416
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions EditorExtensionsRedux/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

using System.Reflection;

[assembly: AssemblyVersion("3.4.3.6")]
[assembly: AssemblyFileVersion("3.4.3.6")]
[assembly: AssemblyVersion("3.4.4.0")]
[assembly: AssemblyFileVersion("3.4.4.0")]
11 changes: 4 additions & 7 deletions EditorExtensionsRedux/EditorExtensionsRedux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,10 @@ void localdumpReflection()
#endif

//Boop: Cache the editor hotkeys so we can keep consistency with whatever is in the settings.cfg file.
internal static KeyCodeExtended HotkeyEditor_toggleSymModePrimary; // = GameSettings.Editor_toggleSymMode.primary;
internal static KeyCodeExtended HotkeyEditor_toggleSymModeSecondary; // = GameSettings.Editor_toggleSymMode.secondary;
internal static KeyCodeExtended HotkeyEditor_toggleAngleSnapPrimary; // = GameSettings.Editor_toggleAngleSnap.primary;
internal static KeyCodeExtended HotkeyEditor_toggleAngleSnapSecondary;// = GameSettings.Editor_toggleAngleSnap.secondary;
internal static bool hotkeysInitted = false;
internal KeyCodeExtended HotkeyEditor_toggleSymModePrimary; // = GameSettings.Editor_toggleSymMode.primary;
internal KeyCodeExtended HotkeyEditor_toggleSymModeSecondary; // = GameSettings.Editor_toggleSymMode.secondary;
internal KeyCodeExtended HotkeyEditor_toggleAngleSnapPrimary; // = GameSettings.Editor_toggleAngleSnap.primary;
internal KeyCodeExtended HotkeyEditor_toggleAngleSnapSecondary;// = GameSettings.Editor_toggleAngleSnap.secondary;

//Unity, called after Awake()
public void Start()
Expand All @@ -750,13 +749,11 @@ public void Start()
Log.Debug("Version: " + Versioning.Revision);

//Boop: Cache the editor hotkeys so we can keep consistency with whatever is in the settings.cfg file.
if (!hotkeysInitted)
{
HotkeyEditor_toggleSymModePrimary = GameSettings.Editor_toggleSymMode.primary;
HotkeyEditor_toggleSymModeSecondary = GameSettings.Editor_toggleSymMode.secondary;
HotkeyEditor_toggleAngleSnapPrimary = GameSettings.Editor_toggleAngleSnap.primary;
HotkeyEditor_toggleAngleSnapSecondary = GameSettings.Editor_toggleAngleSnap.secondary;
hotkeysInitted = true;
}

//Boop: Nuke the editor hotkeys so we can hijack them.
Expand Down
4 changes: 2 additions & 2 deletions GameData/EditorExtensionsRedux/EditorExtensionsRedux.version
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"VERSION": {
"MAJOR": 3,
"MINOR": 4,
"PATCH": 3,
"BUILD": 6
"PATCH": 4,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down

0 comments on commit 3837416

Please sign in to comment.