     uiFileSelector.path = initialPath;
     uiFileSelector.SetButtonTexts(ok, cancel);
     uiFileSelector.SetFilters(filters, initialFilter);
+    uiFileSelector.window.vars["Popup"] = "FileSelector";
 
     CenterDialog(uiFileSelector.window);
 }

    Array<UIElement@> children = ui.root.GetChildren();
    for (uint i = 0; i < children.length; ++i)
    {
        if (children[i].type != textType)
            children[i].opacity = opacity;
    }
}

    {
        Menu@ viewMenu = CreateMenu("View");
        Window@ viewPopup = viewMenu.popup;
        viewPopup.vars["Popup"] = "View";
        viewPopup.AddChild(CreateMenuItem("Hierarchy", 'H', QUAL_CTRL));
        viewPopup.AddChild(CreateMenuItem("Attribute inspector", 'I', QUAL_CTRL));
        viewPopup.AddChild(CreateMenuItem("Editor settings"));
        viewPopup.AddChild(CreateMenuItem("Editor preferences"));
        AdjustAccelIndent(viewPopup);
