fix: preserve special menu item text flags (#1011)

* fix: preserve T4 special menu item text flags

* fix: preserve IW3 special menu item text flags

* refactor: define IW3 and T4 dynamic window flags

* chore: also apply WindowDefDynamicFlag changes to iw4 and iw5

---------

Co-authored-by: Jan Laupetin <[email protected]>
This commit is contained in:
moandJan Laupetin authored and GitHub committed 2026-09-20 21:20:54 +02:00
1 parent f16dd0cffd
commit 6ca37c43fa
12 files changed
+271 -18

No files matched your search

@@ -562,6 +562,16 @@ namespace
item->window.name = ConvertString(commonItem.m_name);
item->text = commonItem.m_text ? m_memory.Dup(commonItem.m_text->c_str()) : nullptr;
if (commonItem.m_text_save_game)
{
item->text = m_memory.Dup("savegameinfo");
item->itemFlags |= ITEM_FLAG_SAVE_GAME_INFO;
}
if (commonItem.m_text_cinematic_subtitle)
{
item->text = m_memory.Dup("cinematicsubtitle");
item->itemFlags |= ITEM_FLAG_CINEMATIC_SUBTITLE;
}
item->window.group = ConvertString(commonItem.m_group);
item->window.rectClient = ConvertRectDef(commonItem.m_rect);
item->window.style = commonItem.m_style;
@@ -566,6 +566,16 @@ namespace
item->window.name = ConvertString(commonItem.m_name);
item->text = commonItem.m_text ? m_memory.Dup(commonItem.m_text->c_str()) : nullptr;
if (commonItem.m_text_save_game)
{
item->text = m_memory.Dup("savegameinfo");
item->itemFlags |= ITEM_FLAG_SAVE_GAME_INFO;
}
if (commonItem.m_text_cinematic_subtitle)
{
item->text = m_memory.Dup("cinematicsubtitle");
item->itemFlags |= ITEM_FLAG_CINEMATIC_SUBTITLE;
}
item->window.group = ConvertString(commonItem.m_group);
item->window.rectClient = ConvertRectDef(commonItem.m_rect);
item->window.style = commonItem.m_style;