mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
POLARIS: Icon download helper
This commit is contained in:
@@ -817,6 +817,11 @@ proc // Creates a single icon from a given /atom or /image. Only the first argu
|
|||||||
qdel(west)
|
qdel(west)
|
||||||
return full
|
return full
|
||||||
|
|
||||||
|
/proc/downloadImage(atom/A, dir)
|
||||||
|
var/icon/this_icon = getFlatIcon(A,defdir=dir||A.dir,always_use_defdir=1)
|
||||||
|
|
||||||
|
usr << ftp(this_icon,"[A.name].png")
|
||||||
|
|
||||||
/mob/proc/AddCamoOverlay(atom/A)//A is the atom which we are using as the overlay.
|
/mob/proc/AddCamoOverlay(atom/A)//A is the atom which we are using as the overlay.
|
||||||
var/icon/opacity_icon = new(A.icon, A.icon_state)//Don't really care for overlays/underlays.
|
var/icon/opacity_icon = new(A.icon, A.icon_state)//Don't really care for overlays/underlays.
|
||||||
//Now we need to culculate overlays+underlays and add them together to form an image for a mask.
|
//Now we need to culculate overlays+underlays and add them together to form an image for a mask.
|
||||||
|
|||||||
@@ -378,10 +378,15 @@
|
|||||||
qdel(adminmob)
|
qdel(adminmob)
|
||||||
feedback_add_details("admin_verb","ADC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
feedback_add_details("admin_verb","ADC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
|
|
||||||
|
/client/proc/take_picture(var/atom/A in world)
|
||||||
|
set name = "Save PNG"
|
||||||
|
set category = "Debug"
|
||||||
|
set desc = "Opens a dialog to save a PNG of any object in the game."
|
||||||
|
|
||||||
|
if(!check_rights(R_DEBUG))
|
||||||
|
return
|
||||||
|
|
||||||
|
downloadImage(A)
|
||||||
|
|
||||||
|
|
||||||
/client/proc/cmd_admin_areatest()
|
/client/proc/cmd_admin_areatest()
|
||||||
set category = "Mapping"
|
set category = "Mapping"
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ var/list/debug_verbs = list (
|
|||||||
,/client/proc/atmos_toggle_debug
|
,/client/proc/atmos_toggle_debug
|
||||||
,/client/proc/spawn_tanktransferbomb
|
,/client/proc/spawn_tanktransferbomb
|
||||||
,/client/proc/debug_process_scheduler
|
,/client/proc/debug_process_scheduler
|
||||||
|
,/client/proc/take_picture
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user