Im trying to use the editor to create a basic UI: a window with some buttons inside, but I have a few doubts about the process. First, I cant load the layout, I tried this:
[code]XMLFile* style = cache->GetResource(“UI/DefaultStyle.xml”);
XMLFile* UIlayout = cache->GetResource(“UI/DNT.xml”);
uiRoot = GetSubsystem<UI>()->LoadLayout(UIlayout, style);[/code]
But the ui elements are never displayed. I know th UI is working because I add a text in the code and I can see it, but the elements that were supposed to be loaded from XML file are not visible. Obviously, Im missing something here, but cant find what in the sample (which doesnt covers loading layouts) or docs.