Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 |
// ============================================================================ // JBGUIPanelConfigArenaLockdown - original by _Lynx // Copyright 2006 by Jrubzjeknf <rrvanolst@hotmail.com> // $Id: JBGUIPanelConfigArenaLockdown.uc,v 1.5 2007-04-01 09:33:34 jrubzjeknf Exp $ // // Addon's GUI. // ============================================================================ class JBGUIPanelConfigArenaLockdown extends JBGUIPanelConfig; //============================================================================= // Constants //============================================================================= const CONTROL_CROSSBASE_SPAWNING = 0; const CONTROL_SELECTION_METHOD = 1; //============================================================================= // Variables //============================================================================= var private bool bInitialized; // used to prevent executing SaveINISettings() during initialization var automated moCheckbox ch_CrossBaseSpawning; var automated moComboBox co_SelectionMethod; var localized string str_FIFO; var localized string str_Random; //============================================================================= // InitComponent // // Sets the values for co_RestartPlayers dropdown box and loads the // configurable values. //============================================================================= function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(MyController, MyOwner); ch_CrossBaseSpawning = moCheckBox(Controls[CONTROL_CROSSBASE_SPAWNING]); co_SelectionMethod = moComboBox(Controls[CONTROL_SELECTION_METHOD]); co_SelectionMethod.AddItem(str_FIFO); co_SelectionMethod.AddItem(str_Random); LoadINISettings(); } //============================================================================= // LoadINISettings // // Loads the values of all config GUI controls. //============================================================================= function LoadINISettings() { bInitialized = False; ch_CrossBaseSpawning.Checked(class'JBAddonArenaLockdown'.default.bCrossBaseSpawning); co_SelectionMethod.SetIndex (class'JBAddonArenaLockdown'.default.SelectionMethod); bInitialized = True; } //============================================================================= // SaveINISettings // // Called when a value of a control changed. // Saves the values of all config GUI controls. //============================================================================= function SaveINISettings(GUIComponent Sender) { if ( !bInitialized ) return; class'JBAddonArenaLockdown'.default.bCrossBaseSpawning = ch_CrossBaseSpawning.IsChecked(); class'JBAddonArenaLockdown'.default.SelectionMethod = co_SelectionMethod.GetIndex(); class'JBAddonArenaLockdown'.static.StaticSaveConfig(); } //============================================================================= // ResetConfiguration // // Resets the configurable properties to their default values. //============================================================================= function ResetConfiguration() { class'JBAddonArenaLockdown'.static.ResetConfig(); LoadINISettings(); } //============================================================================= // Default properties //============================================================================= defaultproperties { str_FIFO = "Queue" str_Random = "Random" Begin Object Class=moCheckBox Name=CrossBaseSpawningCheckBox CaptionWidth=0.8 Caption="Random base spawning" Hint="Players can be spawned in their enemy's base, so that basecamping is discouraged." WinTop =0.015000 WinLeft =0.000000 WinWidth =1.000000 WinHeight=0.100000 TabOrder=1 OnChange=SaveINISettings End Object ch_CrossBaseSpawning=moCheckBox'JBAddonArenaLockdown.JBGUIPanelConfigArenaLockdown.CrossBaseSpawningCheckBox'. Begin Object Class=moComboBox Name=SelectionMethodComboBox bReadOnly=True CaptionWidth=0.48 Caption="Selection method" Hint="Choose how the arena players will be picked from their jail." WinTop =0.215000 WinLeft =0.000000 WinWidth =1.000000 WinHeight =0.100000 TabOrder=2 OnChange=SaveINISettings End Object co_SelectionMethod=moComboBox'JBAddonArenaLockdown.JBGUIPanelConfigArenaLockdown.SelectionMethodComboBox' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |