Skip to content

Commit

Permalink
Merge v1.2 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
TriggerAu committed Jun 8, 2014
2 parents bc94138 + 92d30c8 commit ae41fc3
Show file tree
Hide file tree
Showing 21 changed files with 196 additions and 22 deletions.
9 changes: 8 additions & 1 deletion Examples/MBExtended/Framework/MonoBehaviourExtended.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/MBExtended/Framework/SkinsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/MBWindow/Framework/ExtensionsUnity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/MBWindow/Framework/MonoBehaviourExtended.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
13 changes: 12 additions & 1 deletion Examples/MBWindow/Framework/MonoBehaviourWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -332,6 +339,10 @@ private void DrawToolTip()
TooltipShown = false;
}

//if we've moved to a diffn tooltip then reset the counter
if (strToolTipText != strLastTooltipText) fltTooltipTime = 0f;

//make sure the last text is correct
strLastTooltipText = strToolTipText;
}

Expand Down
9 changes: 8 additions & 1 deletion Examples/MBWindow/Framework/SkinsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/PersistingData/Framework/ConfigNodeStorage.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/PersistingData/Framework/ExtensionsUnity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/PersistingData/Framework/MonoBehaviourExtended.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
13 changes: 12 additions & 1 deletion Examples/PersistingData/Framework/MonoBehaviourWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -332,6 +339,10 @@ private void DrawToolTip()
TooltipShown = false;
}

//if we've moved to a diffn tooltip then reset the counter
if (strToolTipText != strLastTooltipText) fltTooltipTime = 0f;

//make sure the last text is correct
strLastTooltipText = strToolTipText;
}

Expand Down
9 changes: 8 additions & 1 deletion Examples/PersistingData/Framework/SkinsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/SkinsAhoy/Framework/ExtensionsUnity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion Examples/SkinsAhoy/Framework/MonoBehaviourExtended.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
13 changes: 12 additions & 1 deletion Examples/SkinsAhoy/Framework/MonoBehaviourWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -332,6 +339,10 @@ private void DrawToolTip()
TooltipShown = false;
}

//if we've moved to a diffn tooltip then reset the counter
if (strToolTipText != strLastTooltipText) fltTooltipTime = 0f;

//make sure the last text is correct
strLastTooltipText = strToolTipText;
}

Expand Down
9 changes: 8 additions & 1 deletion Examples/SkinsAhoy/Framework/SkinsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion KSPPluginFramework/ConfigNodeStorage.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion KSPPluginFramework/ExtensionsUnity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
9 changes: 8 additions & 1 deletion KSPPluginFramework/MonoBehaviourExtended.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
13 changes: 12 additions & 1 deletion KSPPluginFramework/MonoBehaviourWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -332,6 +339,10 @@ private void DrawToolTip()
TooltipShown = false;
}

//if we've moved to a diffn tooltip then reset the counter
if (strToolTipText != strLastTooltipText) fltTooltipTime = 0f;

//make sure the last text is correct
strLastTooltipText = strToolTipText;
}

Expand Down
9 changes: 8 additions & 1 deletion KSPPluginFramework/SkinsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
using System;
/* Part of KSPPluginFramework
Version 1.2
Forum Thread:http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Author: TriggerAu, 2014
License: The MIT License (MIT)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,23 @@ This project contains a number of helper classes which include code to help you

The code can be used as is or as reference so that you can write your own

Forum Thread: [KSP Plugin Framework](http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework)
Author: TriggerAu
**Forum Thread:** [KSP Plugin Framework](http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework)
**Author:** [TriggerAu](https://github.com/TriggerAu)


###History
####Version 1.2 - 8 June 2014
- Added version tags to files
- Added tooltip timeout fix

####Version 1.1 - 6 Apr 2014
- Updated the framework with feedback issues
- Restructured project examples files
- Dropdown example

####Version 1.0 - 22 Jan 2014
Feature complete set of stuff
- **MonoBehaviourExtended** - Adds some bits to the base MonoBehaviour class - logging, repeating background function, definitions of Unity Events
- **MonoBehaviourWindow** - Adds to the above with all the bits to draw a window, Contains code for - Visibilty, Screen Clamping, Tooltips, Wrappers
- **SkinsLibrary** - A way to change the whole guis skin in one go for your code as well as easily set up new skins.
- **ConfigNodeStorage** - This class (and docco) helps with being able to have a "settings" object that you can easily save/load as required, and also some examples of how ot serialise complex objects

0 comments on commit ae41fc3

Please sign in to comment.