Application: add menu entries for the new folders.

This commit is contained in:
Guillaume Jacquemin 2024-03-09 18:36:53 +01:00
parent efc3fe0dc7
commit 0b46403ede
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -66,6 +66,28 @@ Application::drawMainMenu() {
openUri(Utility::Path::toNativeSeparators(conf().directories().staging)); openUri(Utility::Path::toNativeSeparators(conf().directories().staging));
} }
if(ImGui::BeginMenu(ICON_FA_BOXES " Armoury")) {
if(ImGui::MenuItem(ICON_FA_SHIELD_ALT " Armour parts", nullptr, false,
Utility::Path::exists(conf().directories().armours)))
{
openUri(Utility::Path::toNativeSeparators(conf().directories().armours));
}
if(ImGui::MenuItem(ICON_FA_ROCKET " Weapons", nullptr, false,
Utility::Path::exists(conf().directories().weapons)))
{
openUri(Utility::Path::toNativeSeparators(conf().directories().weapons));
}
if(ImGui::MenuItem(ICON_FA_PALETTE " Custom styles", nullptr, false,
Utility::Path::exists(conf().directories().styles)))
{
openUri(Utility::Path::toNativeSeparators(conf().directories().styles));
}
ImGui::EndMenu();
}
ImGui::EndMenu(); ImGui::EndMenu();
} }