18 if (GetManager().FindMenuByPreset(preset))
return null;
19 return GetManager().OpenDialog(preset);
28 if (GetManager().FindMenuByPreset(preset))
return null;
29 return GetManager().OpenMenu(preset);
37 GetManager().CloseMenu(
this);
44 protected void DeleteAllChildWidgets(Widget parentWidget)
46 while (parentWidget.GetChildren())
48 delete parentWidget.GetChildren();
59 Widget GetWidgetByName(
string widgetName)
62 if (!root)
return null;
64 WorkspaceWidget workspace =
GetGame().GetWorkspace();
65 if (!workspace)
return null;
67 return root.FindAnyWidget(widgetName);