internal void Detach(GUIWidgets w) { if (widgets == w) { widgets = null; Close(); } }
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); }
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); }
public override void Execute(SharedObjects shared) { AssertArgBottomAndConsume(shared); GUIWidgets.ClearAll(shared); }