Skip to content

Commit b0d59e1

Browse files
committed
dsda: hide UI related internal messages
user will be changing those options from hawk side dialog so it's impossible to miss what you're changing (you can look at the dialog again if you're THAT sloppy) but since we're now initializing with default nonsync settings and changing them on the fly, those UI messages would be appearing all the time automap messages are left intact since they appear upon in-game button press worst case scenario, UI messages are moved to hawk side, but then why limit them to only whatever upstream reports and not report every change? which is never done anyway, so I doubt it'd come to this
1 parent eef983c commit b0d59e1

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

Assets/dll/dsda.wbx.zst

2.86 KB
Binary file not shown.

waterbox/dsda/BizhawkInterface.c

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,9 @@ AutomapButtons last_buttons = { 0 };
66

77
void render_updates(struct PackedRenderInfo *renderInfo)
88
{
9-
if (renderInfo->Gamma != dsda_IntConfig(dsda_config_usegamma))
10-
{
11-
dsda_UpdateIntConfig(dsda_config_usegamma, renderInfo->Gamma, true);
12-
dsda_AddMessage(usegamma == 0 ? GAMMALVL0 :
13-
usegamma == 1 ? GAMMALVL1 :
14-
usegamma == 2 ? GAMMALVL2 :
15-
usegamma == 3 ? GAMMALVL3 :
16-
GAMMALVL4);
17-
}
18-
19-
if (renderInfo->MapOverlay != dsda_IntConfig(dsda_config_automap_overlay))
20-
{
21-
dsda_UpdateIntConfig(dsda_config_automap_overlay, renderInfo->MapOverlay, true);
22-
dsda_AddMessage(automap_overlay == 0 ? AMSTR_OVERLAYOFF :
23-
automap_overlay == 1 ? AMSTR_OVERLAYON :
24-
"Overlay Mode Dark");
25-
}
26-
27-
if (renderInfo->ShowMessages != dsda_ShowMessages())
28-
dsda_UpdateIntConfig(dsda_config_show_messages, renderInfo->ShowMessages, true);
29-
30-
dsda_UpdateIntConfig(dsda_config_screenblocks, renderInfo->HeadsUpMode != HUD_VANILLA ? 11 : 10, true);
31-
dsda_UpdateIntConfig(dsda_config_hud_displayed, renderInfo->HeadsUpMode == HUD_NONE ? 0 : 1, true);
9+
dsda_UpdateIntConfig(dsda_config_usegamma, renderInfo->Gamma, true);
10+
dsda_UpdateIntConfig(dsda_config_automap_overlay, renderInfo->MapOverlay, true);
11+
dsda_UpdateIntConfig(dsda_config_show_messages, renderInfo->ShowMessages, true);
3212
dsda_UpdateIntConfig(dsda_config_sfx_volume, renderInfo->SfxVolume, true);
3313
dsda_UpdateIntConfig(dsda_config_music_volume, renderInfo->MusicVolume, true);
3414
dsda_UpdateIntConfig(dsda_config_hudadd_secretarea, renderInfo->ReportSecrets, true);
@@ -38,6 +18,8 @@ void render_updates(struct PackedRenderInfo *renderInfo)
3818
dsda_UpdateIntConfig(dsda_config_map_totals, renderInfo->MapTotals, true);
3919
dsda_UpdateIntConfig(dsda_config_map_time, renderInfo->MapTime, true);
4020
dsda_UpdateIntConfig(dsda_config_map_coordinates, renderInfo->MapCoordinates, true);
21+
dsda_UpdateIntConfig(dsda_config_screenblocks, renderInfo->HeadsUpMode != HUD_VANILLA ? 11 : 10, true);
22+
dsda_UpdateIntConfig(dsda_config_hud_displayed, renderInfo->HeadsUpMode == HUD_NONE ? 0 : 1, true);
4123
}
4224

4325
void automap_inputs(AutomapButtons buttons)

waterbox/dsda/core

0 commit comments

Comments
 (0)