mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 21:27:58 +03:00
Various menu fixes (#5321)
* input viewer + rang + draw + circledisp * clang
This commit is contained in:
parent
ee23d02921
commit
a247c06be8
3 changed files with 10 additions and 10 deletions
|
@ -584,7 +584,7 @@ void InputViewerSettingsWindow::DrawElement() {
|
|||
}
|
||||
// gInputViewer.Dpad
|
||||
CVarCheckbox("Show D-Pad Layers", CVAR_INPUT_VIEWER("Dpad"),
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(true));
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(false));
|
||||
if (useIndividualOutlines && CVarGetInteger(CVAR_INPUT_VIEWER("Dpad"), 0)) {
|
||||
ImGui::Indent();
|
||||
CVarCombobox("##DpadOutline", CVAR_INPUT_VIEWER("DpadOutlineMode"), buttonOutlineOptionsVerbose,
|
||||
|
@ -593,7 +593,7 @@ void InputViewerSettingsWindow::DrawElement() {
|
|||
}
|
||||
// gInputViewer.Mod1
|
||||
CVarCheckbox("Show Modifier Button 1 Layers", CVAR_INPUT_VIEWER("Mod1"),
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(true));
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(false));
|
||||
if (useIndividualOutlines && CVarGetInteger(CVAR_INPUT_VIEWER("Mod1"), 0)) {
|
||||
ImGui::Indent();
|
||||
CVarCombobox("##Mmod1Outline", CVAR_INPUT_VIEWER("Mod1OutlineMode"), buttonOutlineOptionsVerbose,
|
||||
|
@ -602,7 +602,7 @@ void InputViewerSettingsWindow::DrawElement() {
|
|||
}
|
||||
// gInputViewer.Mod2
|
||||
CVarCheckbox("Show Modifier Button 2 Layers", CVAR_INPUT_VIEWER("Mod2"),
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(true));
|
||||
CheckboxOptions().Color(THEME_COLOR).DefaultValue(false));
|
||||
if (useIndividualOutlines && CVarGetInteger(CVAR_INPUT_VIEWER("Mod2"), 0)) {
|
||||
ImGui::Indent();
|
||||
CVarCombobox("##Mod2Outline", CVAR_INPUT_VIEWER("Mod2OutlineMode"), buttonOutlineOptionsVerbose,
|
||||
|
@ -652,7 +652,7 @@ void InputViewerSettingsWindow::DrawElement() {
|
|||
"Right Stick Visibility", CVAR_INPUT_VIEWER("RightStick.VisibilityMode"), stickModeOptions,
|
||||
ComboboxOptions()
|
||||
.Color(THEME_COLOR)
|
||||
.DefaultIndex(STICK_MODE_ALWAYS_SHOWN)
|
||||
.DefaultIndex(STICK_MODE_ALWAYS_HIDDEN)
|
||||
.Tooltip(
|
||||
"Determines the conditions under which the moving layer of the right stick texture is visible."));
|
||||
|
||||
|
@ -661,7 +661,7 @@ void InputViewerSettingsWindow::DrawElement() {
|
|||
"Right Stick Outline/Background Visibility", CVAR_INPUT_VIEWER("RightStick.OutlineMode"), stickModeOptions,
|
||||
ComboboxOptions()
|
||||
.Color(THEME_COLOR)
|
||||
.DefaultIndex(STICK_MODE_ALWAYS_SHOWN)
|
||||
.DefaultIndex(STICK_MODE_ALWAYS_HIDDEN)
|
||||
.Tooltip(
|
||||
"Determines the conditions under which the right stick outline/background texture is visible."));
|
||||
|
||||
|
|
|
@ -1839,7 +1839,8 @@ void ItemTrackerSettingsWindow::DrawElement() {
|
|||
}
|
||||
if (CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.DungeonRewards"), SECTION_DISPLAY_MAIN_WINDOW) ==
|
||||
SECTION_DISPLAY_SEPARATE) {
|
||||
if (CVarCheckbox("Circle display", CVAR_TRACKER_ITEM("DungeonRewardsLayout"))) {
|
||||
if (CVarCheckbox("Circle display", CVAR_TRACKER_ITEM("DungeonRewardsLayout"),
|
||||
CheckboxOptions().DefaultValue(false).Color(THEME_COLOR))) {
|
||||
shouldUpdateVectors = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -562,7 +562,7 @@ void SohMenu::AddMenuEnhancements() {
|
|||
AddWidget(path, "Kokiri Draw Distance", WIDGET_CVAR_CHECKBOX)
|
||||
.CVar(CVAR_ENHANCEMENT("DisableKokiriDrawDistance"))
|
||||
.PreFunc(
|
||||
[](WidgetInfo& info) { info.isHidden = CVarGetInteger(CVAR_ENHANCEMENT("DisableDrawDistance"), 1) > 1; })
|
||||
[](WidgetInfo& info) { info.isHidden = CVarGetInteger(CVAR_ENHANCEMENT("DisableDrawDistance"), 1) <= 1; })
|
||||
.Options(CheckboxOptions().Tooltip(
|
||||
"The Kokiri are mystical beings that fade into view when approached. Enabling this will remove their "
|
||||
"draw distance."));
|
||||
|
@ -777,9 +777,8 @@ void SohMenu::AddMenuEnhancements() {
|
|||
.Options(CheckboxOptions().Tooltip(
|
||||
"Change aiming for the Boomerang from Third-Person to First-Person to see past Link's head."));
|
||||
AddWidget(path, "Aiming Reticle for Boomerang", WIDGET_CVAR_CHECKBOX)
|
||||
.CVar(CVAR_ENHANCEMENT("BoomerangFirstPerson"))
|
||||
.PreFunc(
|
||||
[](WidgetInfo& info) { info.isHidden = CVarGetInteger(CVAR_ENHANCEMENT("BoomerangFirstPerson"), 0) != 0; })
|
||||
.CVar(CVAR_ENHANCEMENT("BoomerangReticle"))
|
||||
.PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_ENHANCEMENT("BoomerangFirstPerson"), 0); })
|
||||
.Options(CheckboxOptions().Tooltip("Aiming with the Boomerang will display a reticle as with the Hookshot."));
|
||||
|
||||
AddWidget(path, "Magic Spells", WIDGET_SEPARATOR_TEXT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue