Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
- Stop allowing negative numbers for alpha/scale settings
  • Loading branch information
Hotrian committed Jul 22, 2016
1 parent e7cac41 commit 40c664c
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 12 deletions.
27 changes: 24 additions & 3 deletions Assets/HOTK/Example Content/UI Scripts/AlphaMatchInputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,34 @@ public void OnAlphaChanged()
switch (Value)
{
case InputValue.AlphaStart:
Overlay.Alpha = f;
if (f >= 0)
{
Overlay.Alpha = f;
}
else
{
InputField.text = Overlay.Alpha.ToString();
}
break;
case InputValue.AlphaEnd:
Overlay.Alpha2 = f;
if (f >= 0)
{
Overlay.Alpha2 = f;
}
else
{
InputField.text = Overlay.Alpha2.ToString();
}
break;
case InputValue.AlphaSpeed:
Overlay.AlphaSpeed = f;
if (f >= 0)
{
Overlay.AlphaSpeed = f;
}
else
{
InputField.text = Overlay.AlphaSpeed.ToString();
}
break;
default:
throw new ArgumentOutOfRangeException();
Expand Down
27 changes: 24 additions & 3 deletions Assets/HOTK/Example Content/UI Scripts/ScaleMatchInputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,34 @@ public void OnScaleChanged()
switch (Value)
{
case InputValue.ScaleStart:
Overlay.Scale = f;
if (f >= 0)
{
Overlay.Scale = f;
}
else
{
InputField.text = Overlay.Scale.ToString();
}
break;
case InputValue.ScaleEnd:
Overlay.Scale2 = f;
if (f >= 0)
{
Overlay.Scale2 = f;
}
else
{
InputField.text = Overlay.Scale2.ToString();
}
break;
case InputValue.ScaleSpeed:
Overlay.ScaleSpeed = f;
if (f >= 0)
{
Overlay.ScaleSpeed = f;
}
else
{
InputField.text = Overlay.ScaleSpeed.ToString();
}
break;
default:
throw new ArgumentOutOfRangeException();
Expand Down
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-Editor.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-Editor.dll.mdb
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll.mdb
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
Binary file modified Library/assetDatabase3
Binary file not shown.
Binary file modified Library/metadata/00/00000000000000004000000000000000
Binary file not shown.
Binary file modified Library/metadata/00/00000000000000006100000000000000
Binary file not shown.
Binary file modified Library/metadata/ad/ad1c5ea0176b4cd49bb9a8376812e487
Binary file not shown.
Binary file modified Library/metadata/da/da0c905fbebc3da4b967b90ef4a69758
Binary file not shown.
Binary file modified Library/metadata/fb/fb4e3b1f85575064d83fabf25fdf1285
Binary file not shown.
3 changes: 0 additions & 3 deletions Library/shadercompiler-UnityShaderCompiler.exe1.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
Base path: C:/Program Files/Unity 5.3.5f1/Editor/Data
Cmd: getPlatforms
Unhandled exception: Protocol error - failed to read correct magic number

Quitting shader compiler process
3 changes: 0 additions & 3 deletions Library/shadercompiler-UnityShaderCompiler.exe2.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
Base path: C:/Program Files/Unity 5.3.5f1/Editor/Data
Cmd: getPlatforms
Unhandled exception: Protocol error - failed to read correct magic number

Quitting shader compiler process

1 comment on commit 40c664c

@Hotrian
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last minute fix before v1.0.3 release

Please sign in to comment.