/* Copyright (c) 2002-2012 Croteam Ltd. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #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; }