fix examine_block to boxed_message

This commit is contained in:
lessthanthree
2025-02-22 18:58:49 -08:00
parent 7ad09602b5
commit 98cd4e28a4
9 changed files with 19 additions and 19 deletions
@@ -94,7 +94,7 @@ MUTANT_SYNTH_CHASSIS, \
write_preference(preference, colors)
continue
to_chat(parent, examine_block(span_greentext("Preference migration successful! You may safely interact with the preferences menu.")))
to_chat(parent, custom_boxed_message("green_box", span_greentext("Preference migration successful! You may safely interact with the preferences menu.")))
tgui_prefs_migration = TRUE
skyrat_data["tgui_prefs_migration"] = tgui_prefs_migration
@@ -80,7 +80,7 @@
tgui_prefs_migration = save_data["tgui_prefs_migration"]
if(!tgui_prefs_migration && save_data.len) // If save_data is empty, this is definitely a new character
to_chat(parent, examine_block(span_redtext("PREFERENCE MIGRATION BEGINNING.\
to_chat(parent, custom_boxed_message("red_box", span_bolddanger("PREFERENCE MIGRATION BEGINNING.\
\nDO NOT INTERACT WITH YOUR PREFERENCES UNTIL THIS PROCESS HAS BEEN COMPLETED.\
\nDO NOT DISCONNECT UNTIL THIS PROCESS HAS BEEN COMPLETED.\
")))
@@ -96,7 +96,7 @@
/// Brings a savefile up to date with modular preferences. Called if savefile_needs_update_skyrat() returned a value higher than 0
/datum/preferences/proc/update_character_skyrat(current_version, list/save_data)
to_chat(parent, examine_block(span_redtext("Updating preference values, if you don't see the second half of this message, ahelp immediately!")))
to_chat(parent, custom_boxed_message("red_box", span_bolddanger("Updating preference values, if you don't see the second half of this message, ahelp immediately!")))
if(current_version < VERSION_GENITAL_TOGGLES)
// removed genital toggles, with the new choiced prefs paths as assoc
var/static/list/old_toggles
@@ -264,11 +264,11 @@
if(current_version < VERSION_LOADOUT_PRESETS)
write_preference(GLOB.preference_entries[/datum/preference/loadout], list("Default" = save_data["loadout_list"])) // So easy. I wish the synth refactor was this easy.
to_chat(parent, examine_block(span_greentext("Updated preferences!")))
to_chat(parent, custom_boxed_message("green_box", span_greentext("Updated preferences!")))
/datum/preferences/proc/check_migration()
if(!tgui_prefs_migration)
to_chat(parent, examine_block(span_redtext("CRITICAL FAILURE IN PREFERENCE MIGRATION, REPORT THIS IMMEDIATELY.")))
to_chat(parent, custom_boxed_message("red_box", span_redtext("CRITICAL FAILURE IN PREFERENCE MIGRATION, REPORT THIS IMMEDIATELY.")))
message_admins("PREFERENCE MIGRATION: [ADMIN_LOOKUPFLW(parent)] has failed the process for migrating PREFERENCES. Check runtimes.")