| 73 | inline const std::string Str_Enabled(bool enabled = false) { return g_GameFlow->GetString(enabled ? STRING_ENABLED : STRING_DISABLED); } |
| 74 | inline const std::string Str_LoadSave(bool save = false) { return g_GameFlow->GetString(save ? STRING_SAVE_GAME : STRING_LOAD_GAME); } |
| 75 | inline const std::string Str_MenuOptionLoopingMode(MenuOptionLoopingMode loopingMode) |
| 76 | { |
| 77 | switch (loopingMode) |
| 78 | { |
| 79 | default: |
| 80 | case MenuOptionLoopingMode::AllMenus: |
| 81 | return g_GameFlow->GetString(STRING_MENU_OPT_LOOP_ALL_MENUS); |
| 82 | |
| 83 | case MenuOptionLoopingMode::SaveLoadOnly: |
| 84 | return g_GameFlow->GetString(STRING_MENU_OPT_LOOP_SAVE_LOAD_ONLY); |
| 85 | |
| 86 | case MenuOptionLoopingMode::Disabled: |
| 87 | return g_GameFlow->GetString(STRING_MENU_OPT_LOOP_DISABLED); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // These bars are only used in menus. |
| 92 | TEN::Renderer::RendererHudBar* g_MusicVolumeBar = nullptr; |