Skip to content

Commit

Permalink
Remove faction gui lobby server button
Browse files Browse the repository at this point in the history
Resolves #11
I chose to simply remove the button instead of adding a new system to sync the correct address to connect to. Players can instead rely on server_select to join the lobby server for now.
  • Loading branch information
Danielv123 committed Apr 13, 2024
1 parent f6e4325 commit ca161e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions module/faction/gui/faction_server_status/draw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@ local function draw_faction_server_status(player)
type = "flow",
direction = "vertical",
name = "gridworld_faction_server_status",
{
type = "button",
caption = "Join lobby server",
style = "green_button",
actions = {
on_click = {
location = "faction_server_status",
action = "join_lobby_server",
},
},
},
{
type = "label",
caption = "Server name: "..clusterio_api.get_instance_name(),
Expand Down
3 changes: 0 additions & 3 deletions module/faction/gui/faction_server_status/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ local function on_gui_click(_, action, player)
if action.action == "close" then
player.gui.left.clear()
end
if action.action == "join_lobby_server" then
player.connect_to_server({address = "localhost:10000", name = "Lobby server"}) -- TODO: Use correct lobby address here
end
if action.action == "claim_server" then
-- Open claim dialog
local faction = get_player_faction(player)
Expand Down

0 comments on commit ca161e8

Please sign in to comment.