Skip to content

Commit

Permalink
Merge pull request #218 from SubnauticaModding/dev
Browse files Browse the repository at this point in the history
SMLHelper 2.9.7
  • Loading branch information
MrPurple6411 committed May 22, 2021
2 parents 4b59b09 + e509152 commit 5712bdc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Example mod/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.9.6.0")]
[assembly: AssemblyFileVersion("2.9.6.0")]
[assembly: AssemblyVersion("2.9.7.0")]
[assembly: AssemblyFileVersion("2.9.7.0")]
4 changes: 2 additions & 2 deletions Example mod/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"Id": "SMLHelperExampleMod",
"DisplayName": "Example Mod For SMLHelper",
"Author": "The SMLHelper Dev Team",
"Version": "2.9.6",
"Version": "2.9.7",
"Enable": true,
"AssemblyName": "Example mod.dll",
"VersionDependencies": {
"SMLHelper": "2.9.6"
"SMLHelper": "2.9.7"
}
}
5 changes: 2 additions & 3 deletions SMLHelper/Assets/Spawnable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ internal virtual void PatchTechType()
/// <returns>Returns the <see cref="Sprite"/> that will be used in the <see cref="SpriteHandler.RegisterSprite(TechType, Sprite)"/> call.</returns>
protected virtual Sprite GetItemSprite()
{
if(HasSprite)
{
// This is for backwards compatibility with mods that were using the "ModName/Assets" format
string path = this.AssetsFolder != modFolderLocation
? IOUtilities.Combine(".", "QMods", this.AssetsFolder.Trim('/'), this.IconFileName)
Expand All @@ -224,8 +222,9 @@ protected virtual Sprite GetItemSprite()
return ImageUtils.LoadSpriteFromFile(path);
}

if(HasSprite)
Logger.Error($"Sprite for '{this.PrefabFileName}'{Environment.NewLine}Did not find an image file at '{path}'");
}

return SpriteManager.defaultSprite;
}
}
Expand Down
3 changes: 3 additions & 0 deletions SMLHelper/Options/SliderModOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ internal override void AddToPanel(uGUI_TabbedControlsPanel panel, int tabIndex)
// if we using custom value format, we need to replace vanilla uGUI_SliderWithLabel with our component
if (ValueFormat != null)
OptionGameObject.transform.Find("Slider").gameObject.AddComponent<SliderValue>().ValueFormat = ValueFormat;

// fixing tooltip for slider
OptionGameObject.transform.Find("Slider/Caption").GetComponent<Text>().raycastTarget = true;
#else
// if we using custom value format or step, we need to replace vanilla uGUI_SliderWithLabel with our component
if (ValueFormat != null || Step >= Mathf.Epsilon)
Expand Down
4 changes: 2 additions & 2 deletions SMLHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.9.6.0")]
[assembly: AssemblyFileVersion("2.9.6.0")]
[assembly: AssemblyVersion("2.9.7.0")]
[assembly: AssemblyFileVersion("2.9.7.0")]
[assembly: InternalsVisibleTo("SMLHelper.Tests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
2 changes: 1 addition & 1 deletion SMLHelper/mod_BelowZero.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Id": "SMLHelper",
"DisplayName": "SMLHelper",
"Author": "The SMLHelper Dev Team",
"Version": "2.9.6",
"Version": "2.9.7",
"Enable": true,
"Game": "BelowZero",
"AssemblyName": "SMLHelper.dll",
Expand Down
2 changes: 1 addition & 1 deletion SMLHelper/mod_Subnautica.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Id": "SMLHelper",
"DisplayName": "SMLHelper",
"Author": "The SMLHelper Dev Team",
"Version": "2.9.6",
"Version": "2.9.7",
"Enable": true,
"Game": "Subnautica",
"AssemblyName": "SMLHelper.dll",
Expand Down

0 comments on commit 5712bdc

Please sign in to comment.