Codechange: Set storage type of widget enums to WidgetID.

This commit is contained in:
Peter Nelson
2023-12-29 21:15:25 +00:00
committed by Peter Nelson
parent a0dfb76e34
commit 268e512fb8
60 changed files with 120 additions and 120 deletions

View File

@@ -11,7 +11,7 @@
#define WIDGETS_SETTINGS_WIDGET_H
/** Widgets of the #GameOptionsWindow class. */
enum GameOptionsWidgets {
enum GameOptionsWidgets : WidgetID {
WID_GO_TAB_GENERAL, ///< General tab.
WID_GO_TAB_GRAPHICS, ///< Graphics tab.
WID_GO_TAB_SOUND, ///< Sound tab.
@@ -54,7 +54,7 @@ enum GameOptionsWidgets {
};
/** Widgets of the #GameSettingsWindow class. */
enum GameSettingsWidgets {
enum GameSettingsWidgets : WidgetID {
WID_GS_FILTER, ///< Text filter.
WID_GS_OPTIONSPANEL, ///< Panel widget containing the option lists.
WID_GS_SCROLLBAR, ///< Scrollbar.
@@ -71,7 +71,7 @@ enum GameSettingsWidgets {
};
/** Widgets of the #CustomCurrencyWindow class. */
enum CustomCurrencyWidgets {
enum CustomCurrencyWidgets : WidgetID {
WID_CC_RATE_DOWN, ///< Down button.
WID_CC_RATE_UP, ///< Up button.
WID_CC_RATE, ///< Rate of currency.