server browser is now default menu page

This commit is contained in:
Alfred Eriksson 2008-10-01 18:40:09 +00:00
parent 7ebdb8d4d7
commit bddc6ec6cc
3 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -45,7 +45,7 @@ class MENUS : public COMPONENT
enum
{
PAGE_NEWS=0,
PAGE_NEWS=1,
PAGE_GAME,
PAGE_SERVER_INFO,
PAGE_CALLVOTE,

View file

@ -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)