/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */ #include "StdH.h" #include #include "MenuPrinting.h" #include "MServers.h" CTString _strServerFilter[7]; CMGButton mgServerColumn[7]; CMGEdit mgServerFilter[7]; void CServersMenu::Initialize_t(void) { gm_mgTitle.mg_boxOnScreen = BoxTitle(); gm_mgTitle.mg_strText = TRANS("CHOOSE SERVER"); gm_lhGadgets.AddTail(gm_mgTitle.mg_lnNode); gm_mgList.mg_boxOnScreen = FLOATaabbox2D(FLOAT2D(0, 0), FLOAT2D(1, 1)); gm_mgList.mg_pmgLeft = &gm_mgList; // make sure it can get focus gm_mgList.mg_bEnabled = TRUE; gm_lhGadgets.AddTail(gm_mgList.mg_lnNode); ASSERT(ARRAYCOUNT(mgServerColumn) == ARRAYCOUNT(mgServerFilter)); for (INDEX i = 0; i=2)"); mgServerFilter[4].mg_strTip = TRANS("filter by game (ie. coop)"); mgServerFilter[5].mg_strTip = TRANS("filter by mod"); mgServerFilter[6].mg_strTip = TRANS("filter by version"); } void CServersMenu::StartMenu(void) { extern void RefreshServerList(void); RefreshServerList(); CGameMenu::StartMenu(); } void CServersMenu::Think(void) { if (!_pNetwork->ga_bEnumerationChange) { return; } _pNetwork->ga_bEnumerationChange = FALSE; }