Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions exp_legacy/module/config/links.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- Links to the community, shown in the readme and the join message
-- @config Links

return {
discord = "https://discord.explosivegaming.nl",
website = "https://www.explosivegaming.nl",
patreon = "https://www.patreon.com/ExpGaming",
status = "https://status.explosivegaming.nl",
github = "https://github.com/explosivegaming/ExpCluster",
}
7 changes: 0 additions & 7 deletions exp_legacy/module/locale/en/addons.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[links]
discord=https://discord.explosivegaming.nl
website=https://www.explosivegaming.nl
status=https://status.explosivegaming.nl
github=https://github.com/explosivegaming/ExpCluster
patreon=https://www.patreon.com/ExpGaming

[info]
players-online=There are __1__ players online
total-map-time=This map has been on for __1__
Expand Down
7 changes: 0 additions & 7 deletions exp_legacy/module/locale/zh-CN/addons.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[links]
discord=https://discord.explosivegaming.nl
website=https://www.explosivegaming.nl
status=https://status.explosivegaming.nl
github=https://github.com/explosivegaming/ExpCluster
patreon=https://www.patreon.com/ExpGaming

[info]
players-online=現在有 __1__ 人在線
total-map-time=地圖時間為 __1__
Expand Down
7 changes: 0 additions & 7 deletions exp_legacy/module/locale/zh-TW/addons.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[links]
discord=https://discord.explosivegaming.nl
website=https://www.explosivegaming.nl
status=https://status.explosivegaming.nl
github=https://github.com/explosivegaming/ExpCluster
patreon=https://www.patreon.com/ExpGaming

[info]
players-online=現在有 __1__ 人在線
total-map-time=地圖時間為 __1__
Expand Down
3 changes: 2 additions & 1 deletion exp_legacy/module/modules/data/greetings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- @data Greetings

local config = require("modules.exp_legacy.config.join_messages") --- @dep config.join_messages
local links = require("modules.exp_legacy.config.links")
local Commands = require("modules/exp_commands")

--- Stores the join message that the player have
Expand All @@ -18,7 +19,7 @@ CustomMessages:on_load(function(player_name, player_message)
if custom_message then
game.print(custom_message, { color = player.color })
else
player.print{ "join-message.greet", { "links.discord" } }
player.print{ "join-message.greet", links.discord }
end
end)

Expand Down
3 changes: 2 additions & 1 deletion exp_scenario/module/gui/readme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ local Roles = require("modules/exp_roles")
local Commands = require("modules/exp_commands")
local PlayerData = require("modules.exp_legacy.expcore.player_data")
local External = require("modules.exp_legacy.expcore.external")
local links = require("modules.exp_legacy.config.links")

local format_number = require("util").format_number
local format_time = ExpUtil.format_time_factory_locale{ format = "long", days = true, hours = true, minutes = true }
Expand Down Expand Up @@ -336,7 +337,7 @@ define_tab(
local external_links = Elements.title_table(scroll_pane, 235, { "exp-gui_readme.servers-external" }, 2)
for _, key in ipairs{ "discord", "website", "patreon", "status", "github" } do
Gui.elements.centered_label(external_links, 110, key:gsub("^%l", string.upper))
Gui.elements.centered_label(external_links, 460, { "links." .. key }, { "exp-gui_readme.servers-open-in-browser" })
Gui.elements.centered_label(external_links, 460, links[key], { "exp-gui_readme.servers-open-in-browser" })
end

return container
Expand Down
14 changes: 7 additions & 7 deletions exp_scenario/module/locale/en.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ format=[AC] __1__: __2__
description=Automaticly select enemy target with artillery.
invalid-area=The selected area is not valid.
enter=Entered artillery selection mode.
exit=Existed artillery selection mode.
exit=Exited artillery selection mode.

[exp-commands_bot-queue]
description=Get / Set the construction bot queue limits.
Expand Down Expand Up @@ -103,8 +103,8 @@ lower-role=You must have a higher role than the target.
[exp-commands_lawnmower]
description=Clean up biter corpse, decoratives and nuclear hole.
arg-range=Range to clean up.
enter=Entered selection mode, select the area to fill with water.
exit=Exited selection mode.
enter=Entered lawnmower selection mode, select the area to clean up.
exit=Exited lawnmower selection mode.
complete=__1__ tiles were handled.

[exp-commands_locate]
Expand Down Expand Up @@ -158,8 +158,8 @@ machine-count=And you will need __1__ machines (with the same speed as this one)

[exp-commands_repair]
description=Repairs entities on your force around you.
enter=Entered selection mode, select the area.
exit=Exited selection mode.
enter=Entered repair selection mode, select the area to repair.
exit=Exited repair selection mode.
# Intentional space left on the two lines below so they can be joined together.
response-revive=__1__ entities were revived.
response-heal=__1__ entities were healed.
Expand Down Expand Up @@ -223,8 +223,8 @@ description-blueprints-surface=Clear all blueprints on the current surface.
arg-surface=Surface to clear on, default all.
items=__1__ cleared all items on the ground of __2__.
blueprints=__1__ cleared all blueprints on __2__.
enter=Entered selection mode, select the area.
exit=Exited selection mode.
enter=Entered blueprint selection mode, select the area to clear blueprints from.
exit=Exited blueprint selection mode.
complete=__1__ blueprint ghost were removed.

[exp-commands_trains]
Expand Down
Loading