Skip to content

Commit

Permalink
Basic shit for rcd ui
Browse files Browse the repository at this point in the history
  • Loading branch information
monster860 committed Jun 11, 2016
1 parent da65415 commit f227091
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/game/objects/items/weapons/RCD.dm
Expand Up @@ -86,6 +86,15 @@ RCD
src.spark_system.start()
return

/obj/item/weapon/rcd/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1, var/datum/topic_state/state = inventory_state)
data["mode"] = mode

ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)
if (!ui)
ui = new(user, src, ui_key, "rcd.tmpl", "[name]", 600, 400, state = state)
ui.set_initial_data(data)
ui.open()
ui.set_auto_update(1)

/obj/item/weapon/rcd/proc/activate()
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
Expand Down
Empty file added nano/templates/rcd.tmpl
Empty file.

0 comments on commit f227091

Please sign in to comment.