From 4768bab71cdb8cd1d0089f2dbc1905e607adea32 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Wed, 28 Sep 2011 18:58:53 +0000 Subject: [PATCH] View vars and game panel spawning updated: - You can now edit variables for clients. You however can't mass-edit them. - Common variables are displayed on top of the view variables menu. Screenshot shows examples of mobs, objects and datums. Screenthot: http://www.kamletos.si/view_var_lost_count1.PNG - Fixed the problem where long type paths ruined everything forever in view vars. Screenshot: http://www.kamletos.si/view_var_lost_count2.PNG - Added an option to the spawn object/mob/turf screens which lets you pick whether you want the item to spawn under your mob or in the object you have marked. You can only spawn stuff in objects of type /atom. Screenshot: http://www.kamletos.si/spawn_objects.PNG git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2280 316c924e-a436-60f5-8080-3fe189b3f50e --- code/datums/datumvars.dm | 76 +++++++++++++++++++++++++++++++------ code/modules/admin/admin.dm | 76 +++++++++++++++++++++++++------------ icons/create_object.html | 11 +++++- 3 files changed, 125 insertions(+), 38 deletions(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index a082f63197..db0992f535 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -20,6 +20,15 @@ client if (A.icon) body += debug_variable("icon", new/icon(A.icon, A.icon_state, A.dir), 0) #endif + + var/icon/sprite + + if(istype(D,/atom)) + var/atom/AT = D + if(AT.icon && AT.icon_state) + sprite = new /icon(AT.icon, AT.icon_state) + usr << browse_rsc(sprite, "view_vars_sprite.png") + title = "[D] (\ref[D]) = [D.type]" body += {"