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
This commit is contained in:
feos 2025-05-25 00:16:12 +03:00
parent eef983cc2c
commit b0d59e15d8
3 changed files with 6 additions and 24 deletions

Binary file not shown.

View File

@ -6,29 +6,9 @@ AutomapButtons last_buttons = { 0 };
void render_updates(struct PackedRenderInfo *renderInfo)
{
if (renderInfo->Gamma != dsda_IntConfig(dsda_config_usegamma))
{
dsda_UpdateIntConfig(dsda_config_usegamma, renderInfo->Gamma, true);
dsda_AddMessage(usegamma == 0 ? GAMMALVL0 :
usegamma == 1 ? GAMMALVL1 :
usegamma == 2 ? GAMMALVL2 :
usegamma == 3 ? GAMMALVL3 :
GAMMALVL4);
}
if (renderInfo->MapOverlay != dsda_IntConfig(dsda_config_automap_overlay))
{
dsda_UpdateIntConfig(dsda_config_automap_overlay, renderInfo->MapOverlay, true);
dsda_AddMessage(automap_overlay == 0 ? AMSTR_OVERLAYOFF :
automap_overlay == 1 ? AMSTR_OVERLAYON :
"Overlay Mode Dark");
}
if (renderInfo->ShowMessages != dsda_ShowMessages())
dsda_UpdateIntConfig(dsda_config_show_messages, renderInfo->ShowMessages, true);
dsda_UpdateIntConfig(dsda_config_screenblocks, renderInfo->HeadsUpMode != HUD_VANILLA ? 11 : 10, true);
dsda_UpdateIntConfig(dsda_config_hud_displayed, renderInfo->HeadsUpMode == HUD_NONE ? 0 : 1, true);
dsda_UpdateIntConfig(dsda_config_usegamma, renderInfo->Gamma, true);
dsda_UpdateIntConfig(dsda_config_automap_overlay, renderInfo->MapOverlay, true);
dsda_UpdateIntConfig(dsda_config_show_messages, renderInfo->ShowMessages, true);
dsda_UpdateIntConfig(dsda_config_sfx_volume, renderInfo->SfxVolume, true);
dsda_UpdateIntConfig(dsda_config_music_volume, renderInfo->MusicVolume, true);
dsda_UpdateIntConfig(dsda_config_hudadd_secretarea, renderInfo->ReportSecrets, true);
@ -38,6 +18,8 @@ void render_updates(struct PackedRenderInfo *renderInfo)
dsda_UpdateIntConfig(dsda_config_map_totals, renderInfo->MapTotals, true);
dsda_UpdateIntConfig(dsda_config_map_time, renderInfo->MapTime, true);
dsda_UpdateIntConfig(dsda_config_map_coordinates, renderInfo->MapCoordinates, true);
dsda_UpdateIntConfig(dsda_config_screenblocks, renderInfo->HeadsUpMode != HUD_VANILLA ? 11 : 10, true);
dsda_UpdateIntConfig(dsda_config_hud_displayed, renderInfo->HeadsUpMode == HUD_NONE ? 0 : 1, true);
}
void automap_inputs(AutomapButtons buttons)

@ -1 +1 @@
Subproject commit aedab0b2825646f06f85a9d13b4c67e231baa5dc
Subproject commit 44fcb8a3cb7025ec54b80217ca6e6d71607ab914