Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/HarbourMasters/Shipwright
Browse files Browse the repository at this point in the history
…into rando-custom-messages
  • Loading branch information
leggettc18 committed Jul 14, 2022
2 parents 0ae5c4c + b2b7cf2 commit 8739951
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libultraship/libultraship/ImGuiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,10 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::Separator();

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Audio")) {
EnhancementSliderFloat("Master Volume: %d %%", "##Master_Vol", "gGameMasterVolume", 0.0f, 1.0f, "", 1.0f, true);

Expand All @@ -747,6 +751,8 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Controller"))
{
EnhancementCheckbox("Use Controller Navigation", "gControlNav");
Expand Down Expand Up @@ -775,6 +781,8 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Graphics"))
{
EnhancementSliderFloat("Internal Resolution: %d %%", "##IMul", "gInternalResolution", 0.5f, 2.0f, "", 1.0f, true);
Expand Down Expand Up @@ -823,13 +831,17 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Languages")) {
EnhancementRadioButton("English", "gLanguages", 0);
EnhancementRadioButton("German", "gLanguages", 1);
EnhancementRadioButton("French", "gLanguages", 2);
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Enhancements"))
{
if (ImGui::BeginMenu("Gameplay"))
Expand Down Expand Up @@ -1154,6 +1166,8 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Cheats"))
{
if (ImGui::BeginMenu("Infinite...")) {
Expand Down Expand Up @@ -1191,6 +1205,8 @@ namespace SohImGui {
ImGui::EndMenu();
}

ImGui::SetCursorPosY(0.0f);

if (ImGui::BeginMenu("Developer Tools"))
{
EnhancementCheckbox("OoT Debug Mode", "gDebugEnabled");
Expand All @@ -1211,6 +1227,7 @@ namespace SohImGui {
}

for (const auto& category : windowCategories) {
ImGui::SetCursorPosY(0.0f);
if (ImGui::BeginMenu(category.first.c_str())) {
for (const std::string& name : category.second) {
std::string varName(name);
Expand Down

0 comments on commit 8739951

Please sign in to comment.