forked from NebulaSS13/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreen_robot_modules.dm
More file actions
34 lines (29 loc) · 895 Bytes
/
screen_robot_modules.dm
File metadata and controls
34 lines (29 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/obj/screen/robot/modules_background
name = "module"
icon_state = "block"
icon = 'icons/mob/screen/styles/robot/modules_background.dmi'
/obj/screen/robot/module
dir = SOUTHWEST
icon = 'icons/mob/screen/styles/robot/modules_inventory.dmi'
var/module_index
/obj/screen/robot/module/handle_click(mob/user, params)
if(isrobot(user) && !isnull(module_index))
var/mob/living/silicon/robot/robot = user
robot.toggle_module(module_index)
return TRUE
return ..()
/obj/screen/robot/module/one
name = "module1"
icon_state = "inv1"
screen_loc = ui_inv1
module_index = 1
/obj/screen/robot/module/two
name = "module2"
icon_state = "inv2"
screen_loc = ui_inv2
module_index = 2
/obj/screen/robot/module/three
name = "module3"
icon_state = "inv3"
screen_loc = ui_inv3
module_index = 3