/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/tgui/states/contained.dm
17 строк
400 B
DamianX
tgui 4 (#30535)
07 сен 2021, 18:15
Не верифицирован
07 сен 2021, 18:15
9fc6406
Код
Авторство
О чём код?
/*! * Copyright (c) 2020 Aleksej Komarov * SPDX-License-Identifier: MIT */ /** * tgui state: contained_state * * Checks that the user is inside the src_object. */ var/datum/ui_state/contained_state/contained_state = new /datum/ui_state/contained_state/can_use_topic(atom/src_object, mob/user) if(!src_object.contains(user)) return UI_CLOSE return user.shared_ui_interaction(src_object)