mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-01-07 23:01:35 +02:00
Add discord invite as text box for easy copy paste.
This commit is contained in:
parent
e50c2d13f3
commit
33d3f11ef2
@ -22,7 +22,8 @@ SCENARIO_INFO_MSG = "Latest updates in this scenario version:\n"..
|
||||
"You can be on the main team or your own. All teams are friendly.\n"..
|
||||
"If you leave in the first 15 minutes, your base and character will be deleted!"
|
||||
|
||||
CONTACT_MSG = "Contact: SteamID:Oarc | oarcinae@gmail.com | discord.gg/trnpcen"
|
||||
CONTACT_MSG = "Contact: SteamID:Oarc | oarcinae@gmail.com | Discord:Oarc#8695"
|
||||
DISCORD_INV = "discord.gg/trnpcen"
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Module Enables
|
||||
|
@ -52,6 +52,9 @@ function CreateGameOptionsTab(tab_container, player)
|
||||
AddLabel(tab_container, "info_1", global.ocfg.welcome_msg, my_longer_label_style)
|
||||
AddLabel(tab_container, "info_2", global.ocfg.server_rules, my_longer_label_style)
|
||||
AddLabel(tab_container, "info_3", global.ocfg.server_contact, my_longer_label_style)
|
||||
tab_container.add{type="textfield",
|
||||
tooltip="Come join the discord (copy this invite)!",
|
||||
text=DISCORD_INV}
|
||||
AddSpacerLine(tab_container)
|
||||
|
||||
-- Enemy Settings:
|
||||
|
@ -191,8 +191,7 @@ end
|
||||
|
||||
-- Function creates a new tab.
|
||||
-- It adds whatever it wants to the provided scroll-pane.
|
||||
-- content_function takes a content holder GUI and player
|
||||
function AddOarcGuiTab(player, tab_name, content_function)
|
||||
function AddOarcGuiTab(player, tab_name)
|
||||
if (not DoesOarcGuiExist(player)) then
|
||||
CreateOarcGuiTabsPane(player)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user