Exemple #1
0
 internal void Detach(GUIWidgets w)
 {
     if (widgets == w)
     {
         widgets = null;
         Close();
     }
 }
Exemple #2
0
        public override void Execute(SharedObjects shared)
        {
            int argc   = CountRemainingArgs(shared);
            int height = argc > 1 ? GetInt(PopValueAssert(shared)) : 0;
            int width  = GetInt(PopValueAssert(shared));

            AssertArgBottomAndConsume(shared);
            ReturnValue = new GUIWidgets(width, height, shared);
        }
Exemple #3
0
 internal void AttachTo(int width, int height, string title, SharedObjects sharedObj, GUIWidgets w)
 {
     WindowRect = new Rect((UnityEngine.Screen.width - width) / 2, (UnityEngine.Screen.height - height) / 2, width, height);
     TitleText  = title;
     widgets    = w;
     shared     = sharedObj;
     shared.UpdateHandler.AddObserver(this);
     shared.AddWindow(this);
 }
Exemple #4
0
 public override void Execute(SharedObjects shared)
 {
     AssertArgBottomAndConsume(shared);
     GUIWidgets.ClearAll(shared);
 }