Skip to content

Commit

Permalink
Fixed Nullref when moving cursor over BG icon inventory spaces which …
Browse files Browse the repository at this point in the history
…didn't have any parts in them, also fixes nullref when trying to pull the breaking ground parts, and they don't pulled into the container
  • Loading branch information
linuxgurugamer committed Feb 17, 2021
1 parent d931fd8 commit da1da9d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 41 deletions.
5 changes: 4 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,7 @@ ChangeLog
Removed unnecessary message about missing WinPos.cfg file

0.3.7.3
Added check for part already added. PlumeParty has a part: pp.vvmach, which apparently has been included in other mods (ChrayolDesign is one) and was causing errors because of duplicate parts
Added check for part already added. PlumeParty has a part: pp.vvmach, which apparently has been included in other mods (ChrayolDesign is one) and was causing errors because of duplicate parts

0.3.7.4
Fixed Nullref when moving cursor over BG icon inventory spaces which didn't have any parts in them, also fixes nullref when trying to pull the breaking ground parts, and they don't pulled into the container
2 changes: 1 addition & 1 deletion GameData/JanitorsCloset/JanitorsCloset.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 0,
"MINOR": 3,
"PATCH": 7,
"BUILD": 2
"BUILD": 3
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
2 changes: 1 addition & 1 deletion JanitorsCloset.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 0,
"MINOR": 3,
"PATCH": 7,
"BUILD": 3
"BUILD": 4
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
2 changes: 1 addition & 1 deletion JanitorsCloset/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

using System.Reflection;

[assembly: AssemblyVersion("0.3.7.2")]
[assembly: AssemblyVersion("0.3.7.3")]
[assembly: AssemblyDescription("$(ProjectDir)")]
2 changes: 2 additions & 0 deletions JanitorsCloset/JanitorsCloset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ private void IconClicked(EditorPartIcon icon, EditorIconEvents.EditorIconClickEv

private void IconHover(EditorPartIcon icon, bool hover)
{
if (icon == null || icon.partInfo == null)
return;
Log.Info("IconHover, ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary): " + ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary).ToString());
if (HighLogic.CurrentGame.Parameters.CustomParams<JanitorsClosetSettings>().showMod ||
ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary) || ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.secondary))
Expand Down
37 changes: 0 additions & 37 deletions JanitorsCloset/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,43 +57,6 @@ public class JanitorsClosetSettings : GameParameters.CustomParameterNode
[GameParameters.CustomParameterUI("Debug mode (spams the log file")]
public bool debug = false;


#if false
public override void SetDifficultyPreset(GameParameters.Preset preset)
{
switch (preset)
{
case GameParameters.Preset.Easy:
toolbarEnabled = true;
toolbarPopupsEnabled = true;
editorMenuPopupEnabled = true;
hoverTimeout = 0.5f;
break;

case GameParameters.Preset.Normal:
toolbarEnabled = true;
toolbarPopupsEnabled = true;
editorMenuPopupEnabled = true;
hoverTimeout = 0.5f;
break;

case GameParameters.Preset.Moderate:
toolbarEnabled = true;
toolbarPopupsEnabled = true;
editorMenuPopupEnabled = true;
hoverTimeout = 0.5f;
break;

case GameParameters.Preset.Hard:
toolbarEnabled = true;
toolbarPopupsEnabled = true;
editorMenuPopupEnabled = true;
hoverTimeout = 0.5f;
break;
}
}
#endif

public override bool Enabled(MemberInfo member, GameParameters parameters)
{
if (member.Name == "toolbarPopupsEnabled")
Expand Down

0 comments on commit da1da9d

Please sign in to comment.