mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Squashed commit of the following:
commit bd470fd0276e83fa1516cc1b966308165d081b1b Author: Verkister <superverkelian@hotmail.com> Date: Tue Apr 10 20:45:00 2018 +0300 Update painter_vr.dm commit 12e39bcec9b717d477a64aca0f8dfe917917986b Author: Verkister <superverkelian@hotmail.com> Date: Mon Apr 9 09:34:50 2018 +0300 Update painter_vr.dm
This commit is contained in:
@@ -70,8 +70,9 @@
|
||||
dat += "<A href='?src=\ref[src];clear=1'>Remove paintjob.</A><BR><BR>"
|
||||
dat += "<A href='?src=\ref[src];eject=1'>Eject item.</A><BR><BR>"
|
||||
|
||||
user << browse(dat, "window=colormate")
|
||||
onclose(user, "colormate")
|
||||
var/datum/browser/menu = new(user, "colormate","Color Mate Control Panel", 400, 600, src)
|
||||
menu.set_content(dat)
|
||||
menu.open()
|
||||
return
|
||||
|
||||
/obj/machinery/gear_painter/Topic(href, href_list)
|
||||
@@ -81,6 +82,9 @@
|
||||
usr.set_machine(src)
|
||||
add_fingerprint(usr)
|
||||
|
||||
if(href_list["close"])
|
||||
return
|
||||
|
||||
if(href_list["select"])
|
||||
var/newcolor = input(usr, "Choose a color.", "", activecolor) as color|null
|
||||
if(newcolor)
|
||||
@@ -98,7 +102,7 @@
|
||||
|
||||
if(href_list["eject"])
|
||||
for(var/atom/movable/O in processing)
|
||||
O.loc = src.loc
|
||||
O.forceMove(drop_location())
|
||||
processing.Cut()
|
||||
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user