Skip to content

Commit

Permalink
Update screen_objects.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Oct 23, 2024
1 parent d969552 commit 77acf88
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions code/_onclick/hud/screen_objects/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,7 @@
///The tag used by this hand, used for activate_hand()
var/hand_tag = ""

/atom/movable/screen/inventory/hand/left
name = "l_hand"
icon_state = "hand_l"
screen_loc = ui_lhand
hand_tag = "l"

/atom/movable/screen/inventory/hand/left/update_overlays()
/atom/movable/screen/inventory/hand/right/update_overlays()
. = ..()
if(!hud?.mymob?.hand)
return
Expand All @@ -117,25 +111,24 @@
var/mob/living/carbon/C = usr
C.activate_hand(hand_tag)

/atom/movable/screen/inventory/hand/left
name = "l_hand"
icon_state = "hand_l"
screen_loc = ui_lhand
hand_tag = "l"

/atom/movable/screen/inventory/hand/right
name = "r_hand"
icon_state = "hand_r"
screen_loc = ui_rhand
hand_tag = "r"

/atom/movable/screen/inventory/hand/right/update_overlays()
. = ..()
if(!hud?.mymob || hud.mymob.hand)
return
. += "hand_active"

/atom/movable/screen/close
name = "close"
layer = ABOVE_HUD_LAYER
plane = ABOVE_HUD_PLANE
icon_state = "backpack_close"


/atom/movable/screen/close/Click()
if(istype(master, /obj/item/storage))
var/obj/item/storage/S = master
Expand Down

0 comments on commit 77acf88

Please sign in to comment.