public static iWindowAttribute Add(string title, iWindow win, bool visible = true, bool canDock = true, bool register2menu = true) { uint uuid = s_uuid++; WindowAttribute attr = new WindowAttribute(); attr.window = win; attr.UUID = uuid; attr.title = title; attr.visible = visible; attr.canDock = canDock; attr.register2menu = register2menu; pool.Add(uuid, attr); if (visible) { ShowWindow(uuid); } else { CloseWindow(uuid); } win.Init(); return(attr); }
void OnMenuGUI_WindowsView() { foreach (var attr in WindowManager.GetAllWindowAttributes()) { iWindow window = attr.window; bool visible = attr.visible; if (attr.register2menu && ImGui.MenuItem(attr.title, "", ref visible)) { if (visible != attr.visible) { if (visible) { WindowManager.ShowWindow(attr.UUID); } else { WindowManager.CloseWindow(attr.UUID); } } } } }
public ScrollableWindow(iWindow windowReference) : base(windowReference) { }
public DecoratedWindow(iWindow windowRefernce) { privateWindowRefernce = windowRefernce; }