From 8194c3ca61d9afca394cef5bfdf6e8da010a56ca Mon Sep 17 00:00:00 2001 From: Mark9013100 Date: Fri, 22 Jan 2016 20:27:58 -0500 Subject: [PATCH] Adds action buttons for hard-hats and goggles --- code/modules/clothing/glasses/glasses.dm | 6 +++++- code/modules/clothing/head/hardhat.dm | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index 0ba28aa3cc..b159ef314e 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -54,6 +54,7 @@ icon_state = "purple" item_state = "glasses" toggleable = 1 + action_button_name = "Toggle Goggles" /obj/item/clothing/glasses/science/New() ..() @@ -67,6 +68,7 @@ origin_tech = list(TECH_MAGNET = 2) darkness_view = 7 toggleable = 1 + action_button_name = "Toggle Goggles" see_invisible = SEE_INVISIBLE_NOLIGHTING off_state = "denight" @@ -95,6 +97,7 @@ item_state = "glasses" origin_tech = list(TECH_MAGNET = 3, TECH_ENGINEERING = 3) toggleable = 1 + action_button_name = "Toggle Goggles" vision_flags = SEE_OBJS /obj/item/clothing/glasses/regular @@ -104,7 +107,7 @@ item_state = "glasses" prescription = 1 body_parts_covered = 0 - + /obj/item/clothing/glasses/regular/scanners name = "Scanning Goggles" desc = "A very oddly shaped pair of goggles with bits of wire poking out the sides. A soft humming sound emanates from it." @@ -223,6 +226,7 @@ item_state = "glasses" origin_tech = list(TECH_MAGNET = 3) toggleable = 1 + action_button_name = "Toggle Goggles" vision_flags = SEE_MOBS emp_act(severity) diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm index d344d3b34c..970e202bae 100644 --- a/code/modules/clothing/head/hardhat.dm +++ b/code/modules/clothing/head/hardhat.dm @@ -7,6 +7,7 @@ armor = list(melee = 30, bullet = 5, laser = 20,energy = 10, bomb = 20, bio = 10, rad = 20) flags_inv = 0 siemens_coefficient = 0.9 + action_button_name = "Toggle Head-light" /obj/item/clothing/head/hardhat/orange icon_state = "hardhat0_orange"