Skip to content

Commit

Permalink
Slider fix #57
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrulos committed Jul 23, 2018
1 parent 3faf854 commit a10ae5f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MSCLoader/MSCLoader/MSCUnloader.cs
Expand Up @@ -40,8 +40,8 @@ void Update()
Keybind.Keybinds = new List<Keybind>();
Keybind.DefaultKeybinds = new List<Keybind>();
Settings.modSettings = new List<Settings>();
Application.LoadLevel(Application.loadedLevelName);
PlayMakerGlobals.Instance.Variables.FindFsmBool("SongImported").Value = false; //stupid variable name.
Application.LoadLevel(Application.loadedLevelName);
doReset = false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion MSCLoader/MSCLoader/ModLoader.cs
Expand Up @@ -72,7 +72,7 @@ public class ModLoader : MonoBehaviour
/// <summary>
/// The current version of the ModLoader.
/// </summary>
public static readonly string Version = "0.4.3";
public static readonly string Version = "0.4.4";


/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions MSCLoader/MSCLoader/Properties/AssemblyInfo.cs
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("0.4.3.139")]
[assembly: AssemblyFileVersion("0.4.3.139")]
[assembly: AssemblyVersion("0.4.4.140")]
[assembly: AssemblyFileVersion("0.4.4.140")]
4 changes: 2 additions & 2 deletions MSCLoader/MSCLoader/Settings.cs
Expand Up @@ -212,8 +212,8 @@ public static void AddSlider(Mod mod, Settings setting, int minValue, int maxVal
setting.Mod = mod;
setting.Vals = new object[3];

//sometimes is double
if (setting.Value is int || setting.Value is double)
//sometimes is double or Single (this should fix that, exclude types)
if (setting.Value.GetType() != typeof(float) || setting.Value.GetType() != typeof(string))
{
setting.type = SettingsType.Slider;
setting.Vals[0] = minValue;
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,5 +1,5 @@
[![](https://img.shields.io/github/release/piotrulos/MSCModLoader.svg?style=flat-square)](#)
[![](https://img.shields.io/badge/experimental-v0.4.2-yellow.svg?style=flat-square)](#)
[![](https://img.shields.io/badge/experimental-v0.4.4-yellow.svg?style=flat-square)](#)
[![](https://img.shields.io/github/downloads/piotrulos/MSCModLoader/total.svg?style=flat-square)](#)

# MSCLoader
Expand Down

0 comments on commit a10ae5f

Please sign in to comment.