Skip to content

Commit

Permalink
Allows dynamic name change in game window title
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasuobes committed Jan 10, 2017
1 parent 87393c1 commit e2b2163
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/hub.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
//#define HUB_ENABLED 1
hub = "Exadv1.spacestation13"
name = "Space Station 13"
name = "Space Station 13 - Baystation 12"
#ifdef HUB_ENABLED
hub_password = "kMZy3U5jJHSiBQjr"
#else
Expand Down
5 changes: 5 additions & 0 deletions code/world.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#define WORLD_ICON_SIZE 32

/var/server_name = "Baystation 12"

/var/game_id = null
/hook/global_init/proc/generate_gameid()
if(game_id != null)
Expand Down Expand Up @@ -76,6 +78,9 @@

#define RECOMMENDED_VERSION 510
/world/New()
//set window title
name = "[server_name] - [using_map.full_name]"

//logs
var/date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day")
href_logfile = file("data/logs/[date_string] hrefs.htm")
Expand Down
1 change: 0 additions & 1 deletion interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,6 @@ window "mainwindow"
right-click = false
saved-params = "pos;size;is-minimized;is-maximized"
on-size = ""
title = "Space Station 13"
titlebar = true
statusbar = true
can-close = true
Expand Down

0 comments on commit e2b2163

Please sign in to comment.