diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-09 12:10:12 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-09 12:10:12 +0200 |
| commit | ea0ee8408e82a19c00637aaa054165bbb49805ba (patch) | |
| tree | 63ff20a54a19c992872db865dcea34237ba2a24c /src | |
| parent | 302fd15f6c9cd455d61965f1edfae6415eacd1ca (diff) | |
* Tests.csproj:
* GOLIBTests.cs:
* GOLIBTest_1.cs:
* GOLIBTest_0.cs:
* GOLIBTest_5.cs:
* GOLIBTest_3.cs:
* GOLIBTest_fps.cs:
* GOLIBTest_4.1.cs:
* GOLIBTest_1.2.cs:
* GOLIBTest_1.1.cs:
* GOLIBTest_meter.cs:
* GOLIBTest_Label.cs:
* GOLIBTest_stack.cs:
* GOLIBTest_HStack.cs:
* GOLIBTest_Spinner.cs:
* GOLIBTest_Scrollbar.cs:
* GOLIBTest_Container.cs:
* GOLIBTest_Expandable.cs: code cleaning, grouped tests
* Interface.cs:
* OpenTKGameWindow.cs: ClearInterface function
Diffstat (limited to 'src')
| -rw-r--r-- | src/Interface.cs | 4 | ||||
| -rwxr-xr-x | src/OpenTKGameWindow.cs | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index d7a35f81..63160cf5 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -113,9 +113,7 @@ namespace go return tmp; } public static void Load<T>(string file, out T result, object hostClass = null) - { - //result = (T)(Load (file, hostClass) as object); - + { GOMLResolutionStack.Push(new List<DynAttribute>()); XmlSerializerNamespaces xn = new XmlSerializerNamespaces(); diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index d34d6bfa..fa68cb89 100755 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -88,7 +88,13 @@ namespace go g.Visible = false;//trick to ensure clip is added to refresh zone
GraphicObjects.Remove (g);
}
-
+ /// <summary> Remove all Graphic objects from top container </summary>
+ public void ClearInterface()
+ {
+ foreach (GraphicObject g in GraphicObjects)
+ g.Visible = false;
+ GraphicObjects.Clear ();
+ }
public void Quit ()
{
this.Exit ();
|