open server list easier
This commit is contained in:
parent
d83bf1d4fc
commit
78dd80c7fb
@ -12,6 +12,7 @@
|
|||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
|
|
||||||
#include "console.hpp"
|
#include "console.hpp"
|
||||||
|
#include "command.hpp"
|
||||||
|
|
||||||
namespace server_list
|
namespace server_list
|
||||||
{
|
{
|
||||||
@ -372,7 +373,15 @@ namespace server_list
|
|||||||
if (!game::environment::is_mp()) return;
|
if (!game::environment::is_mp()) return;
|
||||||
|
|
||||||
localized_strings::override("PLATFORM_SYSTEM_LINK_TITLE", "SERVER LIST");
|
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
|
// hook LUI_OpenMenu to refresh server list for system link menu
|
||||||
lui_open_menu_hook.create(game::LUI_OpenMenu, lui_open_menu_stub);
|
lui_open_menu_hook.create(game::LUI_OpenMenu, lui_open_menu_stub);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user