mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
server browser is now default menu page
This commit is contained in:
parent
7ebdb8d4d7
commit
bddc6ec6cc
|
@ -666,6 +666,12 @@ int MENUS::render()
|
|||
ui_hsplit_t(&screen, 26.0f, &tab_bar, &main_view);
|
||||
ui_vmargin(&tab_bar, 20.0f, &tab_bar);
|
||||
render_menubar(tab_bar);
|
||||
|
||||
if(config.ui_page < PAGE_NEWS || config.ui_page > PAGE_SETTINGS)
|
||||
{
|
||||
client_serverbrowse_refresh(BROWSETYPE_INTERNET);
|
||||
config.ui_page = PAGE_INTERNET;
|
||||
}
|
||||
|
||||
// render current page
|
||||
if(client_state() != CLIENTSTATE_OFFLINE)
|
||||
|
|
|
@ -45,7 +45,7 @@ class MENUS : public COMPONENT
|
|||
|
||||
enum
|
||||
{
|
||||
PAGE_NEWS=0,
|
||||
PAGE_NEWS=1,
|
||||
PAGE_GAME,
|
||||
PAGE_SERVER_INFO,
|
||||
PAGE_CALLVOTE,
|
||||
|
|
|
@ -38,7 +38,7 @@ MACRO_CONFIG_INT(dbg_firedelay, 0, 0, 1)
|
|||
MACRO_CONFIG_INT(dbg_flow, 0, 0, 1)
|
||||
MACRO_CONFIG_INT(dbg_tuning, 0, 0, 1)
|
||||
|
||||
MACRO_CONFIG_INT(ui_page, 3, 0, 5)
|
||||
MACRO_CONFIG_INT(ui_page, 5, 0, 9)
|
||||
MACRO_CONFIG_STR(ui_server_address, 128, "localhost:8303")
|
||||
MACRO_CONFIG_INT(ui_scale, 100, 1, 100000)
|
||||
|
||||
|
|
Loading…
Reference in a new issue