// ==================================================================== // Class: xVoting.MapVoteMapListConfigPage // // this page allows modification of the DefaultMapListLoader // configuration variables that could not be // // Written by Bruce Bickar // (c) 2003, Epic Games, Inc. All Rights Reserved // ==================================================================== class MapVoteMapListConfigPage extends GUICustomPropertyPage DependsOn(VotingHandler); var automated GUIButton b_Return; var automated moCheckBox ch_UseMapList; var automated moEditBox ed_MapListPrefix; var automated MultiSelectListBox lb_MapList; var localized string sbCaption; var array GameTypes; // autosave var bool bChanged; //------------------------------------------------------------------------------------------------ function InitComponent(GUIController MyController, GUIComponent MyOwner) { local int i; Super.Initcomponent(MyController, MyOwner); // load game types class'CacheManager'.static.GetGameTypeList(GameTypes); ch_UseMapList.SetComponentValue(string(class'xVoting.DefaultMapListLoader'.default.bUseMapList)); if( class'xVoting.DefaultMapListLoader'.default.bUseMapList ) { DisableComponent(ed_MapListPrefix); EnableComponent(lb_MapList); } else { EnableComponent(ed_MapListPrefix); DisableComponent(lb_MapList); } ed_MapListPrefix.SetComponentValue(class'xVoting.DefaultMapListLoader'.default.MapNamePrefixes); LoadMapLists(); for(i=0; i MapListArray; if( bChanged ) { SelectedMapLists = lb_MapList.List.GetExtra(); Split(SelectedMapLists, ",", MapListArray); class'xVoting.DefaultMapListLoader'.default.MapListTypeList.Length = MapListArray.Length; for(i=0; i