Main Menu


Started by Soul, 03 May 2014, 16:26:12


Hey, i want use childwindow to my mapeditor but i don't know how i can add to childwindow other widgets, something like buttons and sliders, any1 can show me how use it?
thanks :)


When creating a button you pass its parent. So normally you have a line like this that will add the button to the gui.
tgui::Button::Ptr button(gui);

The only difference is that instead of the gui you now just pass the child window.
tgui::ChildWindow::Ptr child(gui);
tgui::Button::Ptr button(*child);


GEAT!, thanks so much :), now i can end my map editor :D