Ui styles default back to midnight

This commit is contained in:
skoglol
2019-10-25 17:09:32 +02:00
parent ac20a47ff9
commit 0de1546927
2 changed files with 3 additions and 3 deletions

View File

@@ -5,14 +5,14 @@
*/ */
// The default UI style is the first one in the list // The default UI style is the first one in the list
GLOBAL_LIST_INIT(available_ui_styles, sortList(list( GLOBAL_LIST_INIT(available_ui_styles, list(
"Midnight" = 'icons/mob/screen_midnight.dmi', "Midnight" = 'icons/mob/screen_midnight.dmi',
"Retro" = 'icons/mob/screen_retro.dmi', "Retro" = 'icons/mob/screen_retro.dmi',
"Plasmafire" = 'icons/mob/screen_plasmafire.dmi', "Plasmafire" = 'icons/mob/screen_plasmafire.dmi',
"Slimecore" = 'icons/mob/screen_slimecore.dmi', "Slimecore" = 'icons/mob/screen_slimecore.dmi',
"Operative" = 'icons/mob/screen_operative.dmi', "Operative" = 'icons/mob/screen_operative.dmi',
"Clockwork" = 'icons/mob/screen_clockwork.dmi' "Clockwork" = 'icons/mob/screen_clockwork.dmi'
))) ))
/proc/ui_style2icon(ui_style) /proc/ui_style2icon(ui_style)
return GLOB.available_ui_styles[ui_style] || GLOB.available_ui_styles[GLOB.available_ui_styles[1]] return GLOB.available_ui_styles[ui_style] || GLOB.available_ui_styles[GLOB.available_ui_styles[1]]

View File

@@ -1401,7 +1401,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
clientfps = desiredfps clientfps = desiredfps
parent.fps = desiredfps parent.fps = desiredfps
if("ui") if("ui")
var/pickedui = input(user, "Choose your UI style.", "Character Preference", UI_style) as null|anything in GLOB.available_ui_styles var/pickedui = input(user, "Choose your UI style.", "Character Preference", UI_style) as null|anything in sortList(GLOB.available_ui_styles)
if(pickedui) if(pickedui)
UI_style = pickedui UI_style = pickedui
if (parent && parent.mob && parent.mob.hud_used) if (parent && parent.mob && parent.mob.hud_used)