Files
vgstation13/interface/interface.dm
clusterfack d925bcd785 Proc for generating map renders (#10302)
* Proc for generating map renders

I mean what else is there to say, it doesn't make it into one large icon unfortunately but someone could do that. Or you could use the goon method to display.

* This is useful as well

* Modifications

1. Changed getflaticon to show more directional sprites
2. Changed getflaticon to properly order the rednering of underlays -> sprite -> overlays
3. Changed maprender to use a transparent icon instead of a full alpha white one
4. Changed maprender proc to use a better sorting method stolen from getflaticon
5. Changed maprender to eliminate spaces in the outputted folder paths
6. Changed maprender to properly name the maprenders so they are ordered correctly

* Small fix

* Update map link

* Fix some more directional objects, fix multitile objects
2016-06-03 11:37:00 +01:00

131 lines
3.4 KiB
Plaintext

//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
/client/verb/MapRender()
set name = "MapRender"
set desc = "Shows a high scale rendering of the current map in your browser."
set hidden = 1
if(!config.renders_url || config.renders_url == "")
to_chat(src, "<span class='danger'>The Map Renders url has not been set in the server configuration.</span>")
return
if(alert("This will open the map render(s) in your browser. Are you sure?",,"Yes","No")=="No")
return
var/mapname = replacetext(map.nameLong, " ", "")
src << link("[config.renders_url]/images/maps/[mapname]")
/client/verb/wiki()
set name = "wiki"
set desc = "Visit the wiki."
set hidden = 1
if( config.wikiurl )
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.wikiurl)
else
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")
return
/client/verb/forum()
set name = "forum"
set desc = "Visit the forum."
set hidden = 1
if( config.forumurl )
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.forumurl)
else
to_chat(src, "<span class='danger'>The forum URL is not set in the server configuration.</span>")
return
#define RULES_FILE "config/rules.html"
/client/verb/rules()
set name = "Rules"
set desc = "Show Server Rules."
set hidden = 1
src << browse(file(RULES_FILE), "window=rules;size=480x320")
#undef RULES_FILE
/client/verb/hotkeys_help()
set name = "hotkeys-help"
set category = "OOC"
var/hotkey_mode = {"<font color='purple'>
Hotkey-Mode: (hotkey-mode must be on)
\tTAB = toggle hotkey-mode
\ta = left
\ts = down
\td = right
\tw = up
\tq = drop
\te = equip
\tr = throw
\tm = me
\tt = say
\to = OOC
\tx = swap-hand
\tz = activate held object (or y)
\tf = cycle-intents-left
\tg = cycle-intents-right
\t1 = help-intent
\t2 = disarm-intent
\t3 = grab-intent
\t4 = harm-intent
\t5 = kick
\t6 = bite
</font>"}
var/other = {"<font color='purple'>
Any-Mode: (hotkey doesn't need to be on)
\tCtrl+a = left
\tCtrl+s = down
\tCtrl+d = right
\tCtrl+w = up
\tCtrl+q = drop
\tCtrl+e = equip
\tCtrl+r = throw
\tCtrl+x = swap-hand
\tCtrl+z = activate held object (or Ctrl+y)
\tCtrl+f = cycle-intents-left
\tCtrl+g = cycle-intents-right
\tCtrl+1 = help-intent
\tCtrl+2 = disarm-intent
\tCtrl+3 = grab-intent
\tCtrl+4 = harm-intent
\tCtrl+5 = kick
\tCtrl+6 = bite
\tDEL = pull
\tINS = cycle-intents-right
\tHOME = drop
\tPGUP = swap-hand
\tPGDN = activate held object
\tEND = throw
For an exhaustive list please visit http://ss13.moe/wiki/index.php/Shortcuts
</font>"}
var/admin = {"<font color='purple'>
Admin:
\tF5 = Aghost (admin-ghost)
\tF6 = player-panel-new
\tF7 = admin-pm
\tF8 = Invisimin
</font>"}
to_chat(src, hotkey_mode)
to_chat(src, other)
if(holder)
to_chat(src, admin)
// Needed to circumvent a bug where .winset does not work when used on the window.on-size event in skins.
// Used by /datum/html_interface/nanotrasen (code/modules/html_interface/nanotrasen/nanotrasen.dm)
/client/verb/_swinset(var/x as text)
set name = ".swinset"
set hidden = 1
winset(src, null, x)
/client/verb/roundendinfo()
set name = "RoundEndInformation"
set desc = "Open the Round End Information window."
set hidden = 1
src << browse(round_end_info, "window=roundstats;size=1000x600")