mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-07 12:03:24 -04:00
Add ability to toggle off Owl Statue Markers on Map
This commit is contained in:
@@ -179,6 +179,7 @@ struct UserSettings {
|
||||
ConfigVar<bool> speedrunMode;
|
||||
ConfigVar<bool> liveSplitEnabled;
|
||||
ConfigVar<bool> recordingMode;
|
||||
ConfigVar<bool> removeQuestMapMarkers;
|
||||
} game;
|
||||
|
||||
struct {
|
||||
|
||||
@@ -931,6 +931,13 @@ bool renderingAmap_c::isDrawIconSingle2(dTres_c::data_s const* i_data, bool para
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
#if TARGET_PC
|
||||
if (dusk::getSettings().game.removeQuestMapMarkers &&
|
||||
dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[0x190]))
|
||||
{
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
if (((i_data->mNo == 255 || (i_data->mNo != 255 && !dComIfGs_isTbox(i_data->mNo))) &&
|
||||
(i_data->mSwBit == 255 ||
|
||||
(i_data->mSwBit != 255 && dComIfGs_isSwitch(i_data->mSwBit, i_data->mRoomNo)))) &&
|
||||
|
||||
@@ -69,6 +69,13 @@ bool renderingDmap_c::isDrawIconSingle2(dTres_c::data_s const* i_data, bool para
|
||||
JUT_ASSERT(1044, FALSE);
|
||||
break;
|
||||
case 5:
|
||||
#if TARGET_PC
|
||||
if (dusk::getSettings().game.removeQuestMapMarkers &&
|
||||
dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[0x190]))
|
||||
{
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
if ((i_data->mNo == 0xFF || (i_data->mNo != 0xFF && !dComIfGs_isTbox(i_data->mNo))) && (i_data->mSwBit == 0xFF || (i_data->mSwBit != 0xFF && dComIfGs_isSwitch(i_data->mSwBit, i_data->mRoomNo))) && param_1) {
|
||||
rt = true;
|
||||
}
|
||||
|
||||
@@ -2600,6 +2600,13 @@ void dMenu_Fmap_c::drawLightDropIcon() {
|
||||
}
|
||||
|
||||
void dMenu_Fmap_c::drawBatsumarkIcon() {
|
||||
#if TARGET_PC
|
||||
if (dusk::getSettings().game.removeQuestMapMarkers &&
|
||||
dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[0x190]))
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
drawIcon(5, 0x12);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,8 @@ UserSettings g_userSettings = {
|
||||
// Tools
|
||||
.speedrunMode {"game.speedrunMode", false},
|
||||
.liveSplitEnabled {"game.liveSplitEnabled", false},
|
||||
.recordingMode {"game.recordingMode", false}
|
||||
.recordingMode {"game.recordingMode", false},
|
||||
.removeQuestMapMarkers {"game.removeQuestMapMarkers", false}
|
||||
},
|
||||
|
||||
.backend = {
|
||||
@@ -202,6 +203,7 @@ void registerSettings() {
|
||||
Register(g_userSettings.game.speedrunMode);
|
||||
Register(g_userSettings.game.liveSplitEnabled);
|
||||
Register(g_userSettings.game.recordingMode);
|
||||
Register(g_userSettings.game.removeQuestMapMarkers);
|
||||
Register(g_userSettings.game.fastSpinner);
|
||||
Register(g_userSettings.game.infiniteHearts);
|
||||
Register(g_userSettings.game.infiniteArrows);
|
||||
|
||||
@@ -955,6 +955,8 @@ SettingsWindow::SettingsWindow(bool prelaunch) : mPrelaunch(prelaunch) {
|
||||
"Restores patched glitches from Wii USA 1.0, the first released version.");
|
||||
addOption("Enable Rotating Link Doll", getSettings().game.enableLinkDollRotation,
|
||||
"Enables rotating Link in the collection menu with the C-Stick.");
|
||||
addOption("Hide Owl Statue Markers", getSettings().game.removeQuestMapMarkers,
|
||||
"Removes completed Owl Statue markers from the map and Minimap.");
|
||||
|
||||
leftPane.add_section("Difficulty");
|
||||
leftPane.register_control(
|
||||
|
||||
Reference in New Issue
Block a user