Embedded Examine Info (#17863)

* Initial

* Formatting tweaks

* she be themin on my drop til
til im

summary:before

* Convert multilingual to pref

Tested, seems to work. not 200% sure cuz I never use it
This commit is contained in:
eghughguhhhhhh
2025-06-17 22:52:25 -07:00
committed by GitHub
parent 0637041f66
commit 195112b1ef
15 changed files with 310 additions and 64 deletions
-3
View File
@@ -120,9 +120,6 @@ var/list/preferences_datums = list()
var/lastnews // Hash of last seen lobby news content.
var/lastlorenews //ID of last seen lore news article.
var/examine_text_mode = 0 // Just examine text, include usage (description_info), switch to examine panel.
var/multilingual_mode = 0 // Default behaviour, delimiter-key-space, delimiter-key-delimiter, off
// THIS IS NOT SAVED
// WE JUST HAVE NOWHERE ELSE TO STORE IT
var/list/action_button_screen_locs
@@ -61,3 +61,25 @@
savefile_key = "PAIN_FREQUENCY"
default_value = FALSE
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/choiced/examine_mode
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "EXAMINE_MODE"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/choiced/examine_mode/init_possible_values()
return list(EXAMINE_MODE_SLIM,EXAMINE_MODE_VERBOSE,EXAMINE_MODE_SWITCH_TO_PANEL)
/datum/preference/choiced/examine_mode/create_default_value()
return EXAMINE_MODE_VERBOSE
/datum/preference/choiced/multilingual_mode
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_identifier = PREFERENCE_PLAYER
savefile_key = "MULTI_LANGUAGE_YAP_MODE"
/datum/preference/choiced/multilingual_mode/init_possible_values()
return list(MULTILINGUAL_DEFAULT,MULTILINGUAL_SPACE,MULTILINGUAL_DOUBLE_DELIMITER, MULTILINGUAL_OFF)
/datum/preference/choiced/multilingual_mode/create_default_value()
return MULTILINGUAL_DEFAULT
@@ -13,38 +13,3 @@
to_chat(src,"You will [(prefs.be_special & role_flag) ? "now" : "no longer"] be considered for [role] events (where possible).")
feedback_add_details("admin_verb","TBeSpecial") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
// Not attached to a pref datum because those are strict binary toggles
/client/verb/toggle_examine_mode()
set name = "Toggle Examine Mode"
set category = "Preferences.Game"
set desc = "Toggle the additional behaviour of examining things."
prefs.examine_text_mode++
prefs.examine_text_mode %= EXAMINE_MODE_MAX // This cycles through them because if you're already specifically being routed to the examine panel, you probably don't need to have the extra text printed to chat
switch(prefs.examine_text_mode) // ... And I only wanted to add one verb
if(EXAMINE_MODE_DEFAULT)
to_chat(src, span_filter_system("Examining things will only output the base examine text, and you will not be redirected to the examine panel automatically."))
if(EXAMINE_MODE_INCLUDE_USAGE)
to_chat(src, span_filter_system("Examining things will also print any extra usage information normally included in the examine panel to the chat."))
if(EXAMINE_MODE_SWITCH_TO_PANEL)
to_chat(src, span_filter_system("Examining things will direct you to the examine panel, where you can view extended information about the thing."))
/client/verb/toggle_multilingual_mode()
set name = "Toggle Multilingual Mode"
set category = "Preferences.Character"
set desc = "Toggle the behaviour of multilingual speech parsing."
prefs.multilingual_mode++
prefs.multilingual_mode %= MULTILINGUAL_MODE_MAX // Cycles through the various options
switch(prefs.multilingual_mode)
if(MULTILINGUAL_DEFAULT)
to_chat(src, span_filter_system("Multilingual parsing will only check for the delimiter-key combination (,0galcom-2tradeband)."))
if(MULTILINGUAL_SPACE)
to_chat(src, span_filter_system("Multilingual parsing will enforce a space after the delimiter-key combination (,0 galcom -2still galcom). The extra space will be consumed by the pattern-matching."))
if(MULTILINGUAL_DOUBLE_DELIMITER)
to_chat(src, span_filter_system("Multilingual parsing will enforce the a language delimiter after the delimiter-key combination (,0,galcom -2 still galcom). The extra delimiter will be consumed by the pattern-matching."))
if(MULTILINGUAL_OFF)
to_chat(src, span_filter_system("Multilingual parsing is now disabled. Entire messages will be in the language specified at the start of the message."))