emitter debug fix, lua binding

This commit is contained in:
Turánszki János
2024-03-18 09:07:31 +01:00
parent 2d36aaad75
commit bef7cef6f8
7 changed files with 49 additions and 18 deletions
+15 -15
View File
@@ -177,6 +177,21 @@ void ContentBrowserWindow::RefreshContent()
RemoveWidget(&x);
}
if (!editor->recentFilenames.empty())
{
wi::gui::Button& button = folderButtons[SELECTION_RECENT];
button.Create("Recently Used");
button.SetLocalizationEnabled(false);
button.SetSize(XMFLOAT2(wid, hei));
button.OnClick([this](wi::gui::EventArgs args) {
SetSelection(SELECTION_RECENT);
});
AddWidget(&button, wi::gui::Window::AttachmentOptions::NONE);
if (current_selection == SELECTION_COUNT)
{
current_selection = SELECTION_RECENT;
}
}
if (wi::helper::DirectoryExists(content_folder + "scripts"))
{
wi::gui::Button& button = folderButtons[SELECTION_SCRIPTS];
@@ -207,21 +222,6 @@ void ContentBrowserWindow::RefreshContent()
current_selection = SELECTION_MODELS;
}
}
if (!editor->recentFilenames.empty())
{
wi::gui::Button& button = folderButtons[SELECTION_RECENT];
button.Create("Recently Used");
button.SetLocalizationEnabled(false);
button.SetSize(XMFLOAT2(wid, hei));
button.OnClick([this](wi::gui::EventArgs args) {
SetSelection(SELECTION_RECENT);
});
AddWidget(&button, wi::gui::Window::AttachmentOptions::NONE);
if (current_selection == SELECTION_COUNT)
{
current_selection = SELECTION_RECENT;
}
}
if (current_selection != SELECTION_COUNT)
{