Files
CHOMPStation2/interface/interface.dm
Erthilo 5cbe037881 TG: - Made a small change to the window UI. The forum and wiki buttons are moved a
little to the right to create some whitespace between the browser+info and
wiki+forum buttons, since the browser+info buttons tend to get used more. In
addition I added a message that gets displayed when someone clicks the button
when the wiki and forum addresses are not configured in the files. The last
change is a confirmation message which shows up when you click the wiki and
forum buttons. This is because people often clicked the wiki button in error,
which then opened up a browser, took focus away from the game and all that unfun
stuff.
Revision: r3600
Author: 	 baloh.matevz
2012-05-17 22:14:10 +01:00

23 lines
643 B
Plaintext

/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
src << "\red The wiki URL is not set in the server configuration."
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
src << "\red The forum URL is not set in the server configuration."
return