Codechange: Turn ZoomLevel into enum class.
This commit is contained in:
@@ -260,9 +260,9 @@ cat = SC_EXPERT
|
||||
var = gui.zoom_min
|
||||
type = SLE_UINT8
|
||||
flags = SettingFlag::NotInSave, SettingFlag::NoNetworkSync, SettingFlag::GuiDropdown
|
||||
def = ZOOM_LVL_MIN
|
||||
min = ZOOM_LVL_MIN
|
||||
max = ZOOM_LVL_NORMAL
|
||||
def = to_underlying(ZoomLevel::Min)
|
||||
min = to_underlying(ZoomLevel::Min)
|
||||
max = to_underlying(ZoomLevel::Normal)
|
||||
str = STR_CONFIG_SETTING_ZOOM_MIN
|
||||
strhelp = STR_CONFIG_SETTING_ZOOM_MIN_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_ZOOM_LVL_MIN
|
||||
@@ -273,9 +273,9 @@ startup = true
|
||||
var = gui.zoom_max
|
||||
type = SLE_UINT8
|
||||
flags = SettingFlag::NotInSave, SettingFlag::NoNetworkSync, SettingFlag::GuiDropdown
|
||||
def = ZOOM_LVL_MAX
|
||||
min = ZOOM_LVL_OUT_2X
|
||||
max = ZOOM_LVL_MAX
|
||||
def = to_underlying(ZoomLevel::Max)
|
||||
min = to_underlying(ZoomLevel::Out2x)
|
||||
max = to_underlying(ZoomLevel::Max)
|
||||
str = STR_CONFIG_SETTING_ZOOM_MAX
|
||||
strhelp = STR_CONFIG_SETTING_ZOOM_MAX_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_ZOOM_LVL_OUT_2X
|
||||
@@ -286,9 +286,9 @@ startup = true
|
||||
var = gui.sprite_zoom_min
|
||||
type = SLE_UINT8
|
||||
flags = SettingFlag::NotInSave, SettingFlag::NoNetworkSync, SettingFlag::GuiDropdown
|
||||
def = ZOOM_LVL_MIN
|
||||
min = ZOOM_LVL_MIN
|
||||
max = ZOOM_LVL_NORMAL
|
||||
def = to_underlying(ZoomLevel::Min)
|
||||
min = to_underlying(ZoomLevel::Min)
|
||||
max = to_underlying(ZoomLevel::Normal)
|
||||
str = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN
|
||||
strhelp = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_SPRITE_ZOOM_LVL_MIN
|
||||
|
||||
Reference in New Issue
Block a user