mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 19:51:59 +00:00
* Grep for space indentation * aa * Update species.dm * Update species.dm * Update maps.dm * Update examine.dm Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> Co-authored-by: Azarak <azarak10@gmail.com>
20 lines
503 B
Plaintext
20 lines
503 B
Plaintext
/*!
|
|
* Copyright (c) 2020 Aleksej Komarov
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/**
|
|
* 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
|