I saw there is a function "RemoveWidget" and I don't know how to call it properly. Can someone make an example to see how to use it?
And a side note: someone need to add more tutorials.
And a side note: someone need to add more tutorials.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
void Editor::Open_dir(tgui::Gui& Editor_gui)
{
tgui::ListView::Ptr file_listview = tgui::ListView::create();
std::string path = "Maps";
for(const std::filesystem::directory_entry& files : std::filesystem::directory_iterator(path))
{
file_listview->addItem(files.path().c_str());
file_listview->connect("pressed", Open_file /*, ...*/);
}
}