mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-07 02:40:30 -05:00
[Enhancement] Preserve minimap toggle state between areas (#3906)
* Add enhancement to preserve minimap toggle state between areas * add map toggle enhancement to presets
This commit is contained in:
parent
a7b8c1dbca
commit
e68b281b18
@ -331,6 +331,7 @@ const std::vector<const char*> cheatCvars = {
|
|||||||
"gCosmetics.Link_HeadScale.Value",
|
"gCosmetics.Link_HeadScale.Value",
|
||||||
"gCosmetics.Link_SwordScale.Changed",
|
"gCosmetics.Link_SwordScale.Changed",
|
||||||
"gCosmetics.Link_SwordScale.Value",
|
"gCosmetics.Link_SwordScale.Value",
|
||||||
|
"gEnhancements.RememberMapToggleState",
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<const char*> randomizerCvars = {
|
const std::vector<const char*> randomizerCvars = {
|
||||||
|
@ -988,6 +988,8 @@ void DrawEnhancementsMenu() {
|
|||||||
UIWidgets::Tooltip("Disables the voice audio when Navi calls you");
|
UIWidgets::Tooltip("Disables the voice audio when Navi calls you");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Disable Hot/Underwater Warning Text", "gDisableTunicWarningText", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Disable Hot/Underwater Warning Text", "gDisableTunicWarningText", true, false);
|
||||||
UIWidgets::Tooltip("Disables warning text when you don't have on the Goron/Zora Tunic in Hot/Underwater conditions.");
|
UIWidgets::Tooltip("Disables warning text when you don't have on the Goron/Zora Tunic in Hot/Underwater conditions.");
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("Remember Minimap State Between Areas", "gEnhancements.RememberMapToggleState");
|
||||||
|
UIWidgets::Tooltip("Preserves the minimap visibility state when going between areas rather than defaulting it to \"on\" when going through loading zones.");
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,9 @@ void Regs_InitDataImpl(void) {
|
|||||||
WREG(28) = 0;
|
WREG(28) = 0;
|
||||||
R_OW_MINIMAP_X = 238;
|
R_OW_MINIMAP_X = 238;
|
||||||
R_OW_MINIMAP_Y = 164;
|
R_OW_MINIMAP_Y = 164;
|
||||||
R_MINIMAP_DISABLED = CVarGetInteger("gMinimalUI", 0);
|
if (!CVarGetInteger("gEnhancements.RememberMapToggleState", 0)) {
|
||||||
|
R_MINIMAP_DISABLED = CVarGetInteger("gMinimalUI", 0);
|
||||||
|
}
|
||||||
WREG(32) = 122;
|
WREG(32) = 122;
|
||||||
WREG(33) = 60;
|
WREG(33) = 60;
|
||||||
WREG(35) = 0;
|
WREG(35) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user