Skip to content

Commit

Permalink
- Made a small change to the window UI. The forum and wiki buttons ar…
Browse files Browse the repository at this point in the history
…e 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.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3600 316c924e-a436-60f5-8080-3fe189b3f50e
  • Loading branch information
[email protected] committed May 17, 2012
1 parent b548223 commit 84abe8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions interface/interface.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
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
4 changes: 2 additions & 2 deletions interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ window "rpane"
lock = none
elem "forumb"
type = BUTTON
pos = 260,0
pos = 304,0
size = 60x16
anchor1 = none
anchor2 = none
Expand Down Expand Up @@ -1201,7 +1201,7 @@ window "rpane"
button-type = pushbutton
elem "wikib"
type = BUTTON
pos = 195,0
pos = 240,0
size = 60x16
anchor1 = none
anchor2 = none
Expand Down

0 comments on commit 84abe8c

Please sign in to comment.