From 0c200d4ae4f0f4a7a7c58c3affc7670eb6b2dcff Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 9 Sep 2015 13:50:40 +0200 Subject: [PATCH] simplify Loading, removed unnecessary overloads --- Tests/GOLIBTest_0.cs | 4 ++-- Tests/GOLIBTest_4.cs | 4 ++-- Tests/GOLIBTest_5.cs | 4 ++-- Tests/GOLIBTest_Listbox.cs | 9 +-------- src/Interface.cs | 38 ++------------------------------------ src/OpenTKGameWindow.cs | 13 +------------ 6 files changed, 10 insertions(+), 62 deletions(-) diff --git a/Tests/GOLIBTest_0.cs b/Tests/GOLIBTest_0.cs index 88cd45e9..a41cdb41 100644 --- a/Tests/GOLIBTest_0.cs +++ b/Tests/GOLIBTest_0.cs @@ -22,13 +22,13 @@ namespace test6 : base(1024, 600,"test") {} - Border g; + GraphicObject g; Label l; protected override void OnLoad (EventArgs e) { base.OnLoad (e); - LoadInterface("Interfaces/test0.goml", out g); + g = LoadInterface("Interfaces/test0.goml"); l = g.FindByName ("labCpt") as Label; } diff --git a/Tests/GOLIBTest_4.cs b/Tests/GOLIBTest_4.cs index 8adb5064..c1f2e0ad 100644 --- a/Tests/GOLIBTest_4.cs +++ b/Tests/GOLIBTest_4.cs @@ -66,7 +66,7 @@ namespace test } #endregion - Group c,c2; + GraphicObject c; ProgressBar pb, pb2; Label labMousePos, labPb, labF, labA, labH, labFps, labFpsMin, labFpsMax, labV, labUpdate; @@ -83,7 +83,7 @@ namespace test { base.OnLoad (e); - LoadInterface("Interfaces/test4.goml", out c); + c = LoadInterface("Interfaces/test4.goml"); //LoadInterface("golibtests/test4.xml", out c2); //c2.HorizontalAlignment = HorizontalAlignment.Left; //c2.VerticalAlignment = VerticalAlignment.Top; diff --git a/Tests/GOLIBTest_5.cs b/Tests/GOLIBTest_5.cs index 1969bcf1..d5a8a343 100644 --- a/Tests/GOLIBTest_5.cs +++ b/Tests/GOLIBTest_5.cs @@ -20,14 +20,14 @@ namespace test : base(1024, 600,"test5") {} - Container c; + GraphicObject c; List gl = new List(); List