Is there some acceptable ui solutions?


#1

Hi everybody. I read the samples in the .sln and all ui is created directly in the c++ code. So is there more acceptable solution? All i know id store all ui components in a xml file and we just load the xml file and render it.
thanks very much.


#2

You can create ui in editor, save in xml and load it in runtime, sample in AngelScript

UIElement@ uiface = ui.LoadLayout(cache.GetFile("UI/done.xml"));
ui.root.AddChild(uiface);

#3

Thank you very much! It helps.