1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-12 10:13:58 +02:00

Fixing desync issue due to local var issue.

This commit is contained in:
Oarcinae 2017-01-05 21:17:58 -05:00
parent c92c97a6ed
commit 796f33c557
3 changed files with 5 additions and 2 deletions

View File

@ -108,6 +108,9 @@ script.on_init(function(event)
if ENABLE_BLUEPRINT_STRING then if ENABLE_BLUEPRINT_STRING then
bps_init() bps_init()
end end
global.welcome_msg = WELCOME_MSG
global.welcome_msg_title = WELCOME_MSG_TITLE
end) end)

2
locale

@ -1 +1 @@
Subproject commit e95ef4631ec6a12003b8f2f5ddc15275d260e627 Subproject commit 5874af6484a19c757ef488c75a618aac57f1d936

View File

@ -29,7 +29,7 @@ function DisplayWelcomeTextGui(player)
player.gui.center.add{name = "welcome_msg", player.gui.center.add{name = "welcome_msg",
type = "frame", type = "frame",
direction = "vertical", direction = "vertical",
caption=WELCOME_MSG_TITLE} caption=global.welcome_msg_title}
local wGui = player.gui.center.welcome_msg local wGui = player.gui.center.welcome_msg
wGui.style.maximal_width = SPAWN_GUI_MAX_WIDTH wGui.style.maximal_width = SPAWN_GUI_MAX_WIDTH