Codechange: make WindowPosition a scoped enum

This commit is contained in:
Rubidium
2026-04-25 17:15:18 +02:00
committed by rubidium42
parent a2e99c9cfa
commit 99c8a637b4
63 changed files with 283 additions and 173 deletions
+4 -2
View File
@@ -961,15 +961,17 @@ static constexpr std::initializer_list<NWidgetPart> _nested_story_book_widgets =
EndContainer(),
};
/** Window definition for the story book window. */
static WindowDesc _story_book_desc(
WDP_AUTO, "view_story", 400, 300,
WindowPosition::Automatic, "view_story", 400, 300,
WC_STORY_BOOK, WC_NONE,
{},
_nested_story_book_widgets
);
/** Window definition for the game script window. */
static WindowDesc _story_book_gs_desc(
WDP_CENTER, "view_story_gs", 400, 300,
WindowPosition::Center, "view_story_gs", 400, 300,
WC_STORY_BOOK, WC_NONE,
{},
_nested_story_book_widgets