This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 502502/ datum / strip_menu/ ui_host( mob / user)
503503 return owner
504504
505- / datum / strip_menu/ ui_status( mob / user, datum / ui_state/ state)
506- . = .. ()
507-
508- if (isliving(user))
509- var /mob /living/living_user = user
510-
511- if (
512- . == UI_UPDATE \
513- && user. stat == CONSCIOUS \
514- && living_user. body_position == LYING_DOWN \
515- && user. Adjacent(owner)
516- )
517- return UI_INTERACTIVE
505+ / datum / strip_menu/ ui_state( mob / user)
506+ return GLOB . strip_state
518507
519508// / Creates an assoc list of keys to /datum/strippable_item
520509/ proc / create_strippable_list(types)
Original file line number Diff line number Diff line change 1+ GLOBAL_DATUM_INIT (strip_state, / datum / ui_state/ strip_state, new )
2+
3+ // / Carbons and cyborgs can strip mobs, other living can view but not strip
4+ / datum / ui_state/ strip_state/ can_use_topic(src_object, mob / user)
5+ if (iscarbon(user) || iscyborg(user))
6+ if (! user. Adjacent(src_object))
7+ return UI_DISABLED
8+ return UI_INTERACTIVE
9+ if (isliving(user))
10+ if (! user. Adjacent(src_object))
11+ return UI_DISABLED
12+ return UI_UPDATE
13+ return UI_CLOSE
Original file line number Diff line number Diff line change 39263926#include "code\modules\tgui\states\physical.dm"
39273927#include "code\modules\tgui\states\pilot.dm"
39283928#include "code\modules\tgui\states\self.dm"
3929+ #include "code\modules\tgui\states\strip.dm"
39293930#include "code\modules\tgui\states\zlevel.dm"
39303931#include "code\modules\tgui_input\alert.dm"
39313932#include "code\modules\tgui_input\checkboxes.dm"
You can’t perform that action at this time.
0 commit comments