From 9d9c4c39cac695368d7df2c2152872317f761832 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Tue, 1 Mar 2022 21:56:21 +0200 Subject: [PATCH] open server list easier --- src/client/component/server_list.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/client/component/server_list.cpp b/src/client/component/server_list.cpp index 76c68058..bbf55a86 100644 --- a/src/client/component/server_list.cpp +++ b/src/client/component/server_list.cpp @@ -12,6 +12,7 @@ #include #include "console.hpp" +#include "command.hpp" namespace server_list { @@ -372,7 +373,15 @@ namespace server_list if (!game::environment::is_mp()) return; localized_strings::override("PLATFORM_SYSTEM_LINK_TITLE", "SERVER LIST"); + localized_strings::override("MENU_NUMPLAYERS", "Players"); + // small command until ui scripting + command::add("openServerList", []() + { + refresh_server_list(); + command::execute("lui_open menu_systemlink_join\n"); + }); + // hook LUI_OpenMenu to refresh server list for system link menu lui_open_menu_hook.create(game::LUI_OpenMenu, lui_open_menu_stub);