mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 13:32:17 +00:00
* Ghosts now have a language menu 🆑 coiax add: Ghosts can now modify their own understood languages with the language menu. /🆑 - Language menu is now on /atom/movable, and can be opened by any atom with the `open_language_menu` proc. - Used for testing, and simulating what various station members hear. * Language holders, I * Language holder, II * Dos line endings * MIND LANGUAGES * Fixes some mobs not having language holders in their minds * Shadow languages * How did you lose the holder? * Mob level IC->Open Language Menu verb * Gives draconic to silicons * Lazy breeki * Use of pre-initialized global lists for languages * Fixes bugs with lazy holders
15 lines
427 B
Plaintext
15 lines
427 B
Plaintext
/**
|
|
* tgui state: language_menu_state
|
|
*/
|
|
|
|
GLOBAL_DATUM_INIT(language_menu_state, /datum/ui_state/language_menu, new)
|
|
|
|
/datum/ui_state/language_menu/can_use_topic(src_object, mob/user)
|
|
. = UI_CLOSE
|
|
if(check_rights_for(user.client, R_ADMIN))
|
|
. = UI_INTERACTIVE
|
|
else if(istype(src_object, /datum/language_menu))
|
|
var/datum/language_menu/LM = src_object
|
|
if(LM.language_holder.get_atom() == user)
|
|
. = UI_INTERACTIVE
|