883 lines
29 KiB
Ucode
883 lines
29 KiB
Ucode
class WeaponManagerMenu extends GUIPage transient;
|
|
|
|
var PlayerController pc;
|
|
var a_WeaponManager a_weaponManager;
|
|
var string colorG, colorR;
|
|
|
|
|
|
var automated BackgroundArea ba_Group1, ba_Group2, ba_Group3, ba_Group4,
|
|
ba_Group5, ba_Group6, ba_Group7, ba_Group8,
|
|
ba_Group9, ba_Presets;
|
|
|
|
var automated GUIListBox lb_Group1, lb_Group2, lb_Group3, lb_Group4,
|
|
lb_Group5, lb_Group6, lb_Group7, lb_Group8,
|
|
lb_Group9, lb_Presets;
|
|
|
|
var GUIList li_Group1, li_Group2, li_Group3, li_Group4,
|
|
li_Group5, li_Group6, li_Group7, li_Group8,
|
|
li_Group9, li_Presets;
|
|
|
|
var automated GUIButton b_VanillaReset, b_BasicCleaning, b_FullCleaning,
|
|
b_SavePreset, b_DeletePreset;
|
|
|
|
var automated moEditBox eb_PresetName;
|
|
|
|
var automated moCheckbox cb_UseVanillaManagement, cb_FastWeaponChanging;
|
|
|
|
var automated GUILabel l_Group1, l_Group2, l_Group3, l_Group4,
|
|
l_Group5, l_Group6, l_Group7, l_Group8,
|
|
l_Group9, l_Presets;
|
|
|
|
simulated function initComponent(GUIController MyController, GUIComponent MyOwner)
|
|
{
|
|
local HideMutInteraction tempHmi;
|
|
|
|
super.initComponent(MyController,MyOwner);
|
|
|
|
pc = playerOwner();
|
|
|
|
forEach AllObjects(class'HideMutInteraction', tempHmi)
|
|
{
|
|
break;
|
|
}
|
|
|
|
if(tempHmi.a_weaponManager == None)
|
|
{
|
|
tempHmi.a_weaponManager = pc.Spawn(class'a_WeaponManager');
|
|
tempHmi.a_weaponManager.kfpc = KFPlayerController(pc);
|
|
}
|
|
|
|
a_weaponManager = tempHmi.a_weaponManager;
|
|
|
|
li_Group1 = lb_Group1.List;
|
|
li_Group1.TextAlign = TXTA_Left;
|
|
li_Group1.bMultiSelect = True;
|
|
li_Group1.bDropSource = True;
|
|
li_Group1.bDropTarget = True;
|
|
li_Group1.OnDblClick = ListDblClick;
|
|
//li_Group1.bDrawSelectionBorder = True;
|
|
|
|
li_Group2 = lb_Group2.List;
|
|
li_Group2.TextAlign = TXTA_Left;
|
|
li_Group2.bMultiSelect = True;
|
|
li_Group2.bDropSource = True;
|
|
li_Group2.bDropTarget = True;
|
|
li_Group2.OnDblClick = ListDblClick;
|
|
|
|
li_Group3 = lb_Group3.List;
|
|
li_Group3.TextAlign = TXTA_Left;
|
|
li_Group3.bMultiSelect = True;
|
|
li_Group3.bDropSource = True;
|
|
li_Group3.bDropTarget = True;
|
|
li_Group3.OnDblClick = ListDblClick;
|
|
|
|
li_Group4 = lb_Group4.List;
|
|
li_Group4.TextAlign = TXTA_Left;
|
|
li_Group4.bMultiSelect = True;
|
|
li_Group4.bDropSource = True;
|
|
li_Group4.bDropTarget = True;
|
|
li_Group4.OnDblClick = ListDblClick;
|
|
|
|
li_Group5 = lb_Group5.List;
|
|
li_Group5.TextAlign = TXTA_Left;
|
|
li_Group5.bMultiSelect = True;
|
|
li_Group5.bDropSource = True;
|
|
li_Group5.bDropTarget = True;
|
|
li_Group5.OnDblClick = ListDblClick;
|
|
|
|
li_Group6 = lb_Group6.List;
|
|
li_Group6.TextAlign = TXTA_Left;
|
|
li_Group6.bMultiSelect = True;
|
|
li_Group6.bDropSource = True;
|
|
li_Group6.bDropTarget = True;
|
|
li_Group6.OnDblClick = ListDblClick;
|
|
|
|
li_Group7 = lb_Group7.List;
|
|
li_Group7.TextAlign = TXTA_Left;
|
|
li_Group7.bMultiSelect = True;
|
|
li_Group7.bDropSource = True;
|
|
li_Group7.bDropTarget = True;
|
|
li_Group7.OnDblClick = ListDblClick;
|
|
|
|
li_Group8 = lb_Group8.List;
|
|
li_Group8.TextAlign = TXTA_Left;
|
|
li_Group8.bMultiSelect = True;
|
|
li_Group8.bDropSource = True;
|
|
li_Group8.bDropTarget = True;
|
|
li_Group8.OnDblClick = ListDblClick;
|
|
|
|
li_Group9 = lb_Group9.List;
|
|
li_Group9.TextAlign = TXTA_Left;
|
|
li_Group9.bMultiSelect = True;
|
|
li_Group9.bDropSource = True;
|
|
li_Group9.bDropTarget = True;
|
|
li_Group9.OnDblClick = ListDblClick;
|
|
|
|
li_Presets = lb_Presets.List;
|
|
li_Presets.TextAlign = TXTA_Left;
|
|
li_Presets.bMultiSelect = True;
|
|
li_Presets.bDropSource = True;
|
|
li_Presets.bDropTarget = True;
|
|
li_Presets.OnDblClick = ListDblClick;
|
|
|
|
colorG=chr(27)$chr(1)$chr(240)$chr(1);
|
|
colorR=chr(27)$chr(240)$chr(1)$chr(1);
|
|
|
|
refreshLists();
|
|
refreshPresetNames();
|
|
}
|
|
|
|
event opened(GUIComponent sender)
|
|
{
|
|
// local int i;
|
|
// local string KeyName;
|
|
// local array<string> KeyNames;
|
|
local HideMutInteraction tempHmi;
|
|
|
|
super.opened(sender);
|
|
|
|
pc = playerOwner();
|
|
|
|
forEach AllObjects(class'HideMutInteraction', tempHmi)
|
|
{
|
|
break;
|
|
}
|
|
|
|
if(tempHmi.a_weaponManager == None)
|
|
{
|
|
tempHmi.a_weaponManager = pc.Spawn(class'a_WeaponManager');
|
|
}
|
|
tempHmi.a_weaponManager.kfpc = KFPlayerController(pc);
|
|
a_weaponManager = tempHmi.a_weaponManager;
|
|
|
|
refreshLists();
|
|
refreshPresetNames();
|
|
|
|
cb_UseVanillaManagement.SetComponentValue(a_weaponManager.bUseVanillaManagement, true);
|
|
cb_FastWeaponChanging.SetComponentValue(a_weaponManager.bFastWeaponChanging, true);
|
|
|
|
/*
|
|
//write in KeyNames all bind keys that onen this window to use 'closeWindowWithBind()' then
|
|
CloseKey.Remove(0, CloseKey.Length);
|
|
KeyName = PC.ConsoleCommand("BINDINGTOKEY hideMenu");
|
|
Split(KeyName, ",", KeyNames);
|
|
for ( i = 0; i < KeyNames.Length; i++ )
|
|
CloseKey[CloseKey.Length] = byte(PC.ConsoleCommand("KEYNUMBER"@KeyNames[i]));
|
|
*/
|
|
}
|
|
|
|
simulated function closed(GUIComponent sender, bool bCancelled)
|
|
{
|
|
eb_PresetName.SetComponentValue("");
|
|
super.closed(sender, bCancelled);
|
|
saveChanges();
|
|
}
|
|
|
|
simulated function refreshLists()
|
|
{
|
|
local int i;
|
|
local class<KFWeapon> tempWeaponClass;
|
|
|
|
li_Group1.clear();
|
|
li_Group2.clear();
|
|
li_Group3.clear();
|
|
li_Group4.clear();
|
|
li_Group5.clear();
|
|
li_Group6.clear();
|
|
li_Group7.clear();
|
|
li_Group8.clear();
|
|
li_Group9.clear();
|
|
|
|
for(i = 0; i < a_weaponManager.weaponGroup1.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup1[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group1.add(getColor(a_weaponManager.weaponGroup1[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup1[i]);
|
|
else
|
|
li_Group1.add(colorR$a_weaponManager.weaponGroup1[i],,a_weaponManager.weaponGroup1[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup2.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup2[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group2.add(getColor(a_weaponManager.weaponGroup2[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup2[i]);
|
|
else
|
|
li_Group2.add(colorR$a_weaponManager.weaponGroup2[i],,a_weaponManager.weaponGroup2[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup3.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup3[i], class'Class',true));
|
|
if(tempWeaponClass != None)
|
|
li_Group3.add(getColor(a_weaponManager.weaponGroup3[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup3[i]);
|
|
else
|
|
li_Group3.add(colorR$a_weaponManager.weaponGroup3[i],,a_weaponManager.weaponGroup3[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup4.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup4[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group4.add(getColor(a_weaponManager.weaponGroup4[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup4[i]);
|
|
else
|
|
li_Group4.add(colorR$a_weaponManager.weaponGroup4[i],,a_weaponManager.weaponGroup4[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup5.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup5[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group5.add(getColor(a_weaponManager.weaponGroup5[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup5[i]);
|
|
else
|
|
li_Group5.add(colorR$a_weaponManager.weaponGroup5[i],,a_weaponManager.weaponGroup5[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup6.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup6[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group6.add(getColor(a_weaponManager.weaponGroup6[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup6[i]);
|
|
else
|
|
li_Group6.add(colorR$a_weaponManager.weaponGroup6[i],,a_weaponManager.weaponGroup6[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup7.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup7[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group7.add(getColor(a_weaponManager.weaponGroup7[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup7[i]);
|
|
else
|
|
li_Group7.add(colorR$a_weaponManager.weaponGroup7[i],,a_weaponManager.weaponGroup7[i]);
|
|
}
|
|
for(i = 0; i < a_weaponManager.weaponGroup8.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup8[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group8.add(getColor(a_weaponManager.weaponGroup8[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup8[i]);
|
|
else
|
|
li_Group8.add(colorR$a_weaponManager.weaponGroup8[i],,a_weaponManager.weaponGroup8[i]);
|
|
}
|
|
a_weaponManager.updateUnusedWeapons();
|
|
for(i = 0; i < a_weaponManager.weaponGroup9.length; i++)
|
|
{
|
|
tempWeaponClass = class<KFWeapon>(DynamicLoadObject(a_weaponManager.weaponGroup9[i], class'Class', true));
|
|
if(tempWeaponClass != None)
|
|
li_Group9.add(getColor(a_weaponManager.weaponGroup9[i])$tempWeaponClass.default.itemName,,a_weaponManager.weaponGroup9[i]);
|
|
else
|
|
li_Group9.add(colorR$a_weaponManager.weaponGroup9[i],,a_weaponManager.weaponGroup9[i]);
|
|
}
|
|
}
|
|
|
|
simulated function refreshPresetNames()
|
|
{
|
|
local array<String> names;
|
|
local int i;
|
|
|
|
li_Presets.clear();
|
|
|
|
names = a_weaponManager.getAllPresetNames();
|
|
for ( i = 0; i < names.length; i++ )
|
|
li_Presets.add(names[i]);
|
|
}
|
|
|
|
simulated function string getColor(string weaponClass)
|
|
{
|
|
local Inventory inv;
|
|
|
|
if(pc.pawn == None)
|
|
return "";
|
|
|
|
for(inv = pc.pawn.inventory; inv != None; inv = inv.inventory)
|
|
{
|
|
if(string(inv.class) ~= weaponClass)
|
|
{
|
|
return colorG;
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
|
|
simulated function saveChanges()
|
|
{
|
|
local int i;
|
|
|
|
a_weaponManager.clearAllGroups();
|
|
|
|
for(i = 0; i < li_Group1.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup1[a_weaponManager.weaponGroup1.length] = li_Group1.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group2.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup2[a_weaponManager.weaponGroup2.length] = li_Group2.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group3.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup3[a_weaponManager.weaponGroup3.length] = li_Group3.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group4.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup4[a_weaponManager.weaponGroup4.length] = li_Group4.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group5.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup5[a_weaponManager.weaponGroup5.length] = li_Group5.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group6.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup6[a_weaponManager.weaponGroup6.length] = li_Group6.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group7.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup7[a_weaponManager.weaponGroup7.length] = li_Group7.elements[i].ExtraStrData;
|
|
}
|
|
for(i = 0; i < li_Group8.elements.length; i++)
|
|
{
|
|
a_weaponManager.weaponGroup8[a_weaponManager.weaponGroup8.length] = li_Group8.elements[i].ExtraStrData;
|
|
}
|
|
a_weaponManager.updateUnusedWeapons(); //weaponGroup9
|
|
|
|
a_weaponManager.saveWeaponList("CurrentWeaponList");
|
|
}
|
|
|
|
function checkboxUsed(GUIComponent sender) {
|
|
switch (sender) {
|
|
case cb_UseVanillaManagement:
|
|
a_weaponManager.bUseVanillaManagement = cb_UseVanillaManagement.isChecked();
|
|
a_weaponManager.SaveConfig();
|
|
break;
|
|
case cb_FastWeaponChanging:
|
|
a_weaponManager.bFastWeaponChanging = cb_FastWeaponChanging.isChecked();
|
|
a_weaponManager.SaveConfig();
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
simulated function bool buttonClicked(GUIComponent sender)
|
|
{
|
|
switch(sender)
|
|
{
|
|
case b_VanillaReset:
|
|
a_weaponManager.fullReset();
|
|
refreshLists();
|
|
break;
|
|
case b_BasicCleaning:
|
|
a_weaponManager.basicCleaning();
|
|
refreshLists();
|
|
break;
|
|
case b_FullCleaning:
|
|
a_weaponManager.fullCleaning();
|
|
refreshLists();
|
|
break;
|
|
case b_SavePreset:
|
|
addNewPreset();
|
|
break;
|
|
case b_DeletePreset:
|
|
a_weaponManager.deleteWeaponList(li_Presets.get());
|
|
li_Presets.removeItem(li_Presets.get());
|
|
eb_PresetName.SetComponentValue("");
|
|
break;
|
|
}
|
|
|
|
// ADDITION
|
|
return true;
|
|
}
|
|
|
|
|
|
function bool ListDblClick( GUIComponent C )
|
|
{
|
|
// local int i;
|
|
local class<KFWeapon> weaponToBuy;
|
|
|
|
if(C == li_Group1)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group1.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group2)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group2.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group3)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group3.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group4)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group4.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group5)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group5.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group6)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group6.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group7)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group7.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group8)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group8.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Group9)
|
|
{
|
|
weaponToBuy = class<KFWeapon>(DynamicLoadObject(li_Group9.getExtra(), class'Class', true));
|
|
KFPawn(pc.pawn).serverBuyWeapon(weaponToBuy, 0);
|
|
saveChanges();
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
if(C == li_Presets)
|
|
{
|
|
a_weaponManager.loadWeaponList(li_Presets.get());
|
|
refreshLists();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function addNewPreset()
|
|
{
|
|
if(len(eb_PresetName.getComponentValue()) == 0)
|
|
{
|
|
pc.clientMessage("Please, type at least 1 character of preset's name");
|
|
return;
|
|
}
|
|
if(inStr(eb_PresetName.getComponentValue(), " ") > 0)
|
|
{
|
|
pc.clientMessage("Don't use spaces at preset's name");
|
|
return;
|
|
}
|
|
|
|
saveChanges();
|
|
|
|
a_weaponManager.saveWeaponList(eb_PresetName.GetComponentValue());
|
|
li_Presets.add(eb_PresetName.GetComponentValue());
|
|
eb_PresetName.SetComponentValue("");
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group1
|
|
WinTop=0.100000
|
|
WinLeft=0.180000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group1=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group1'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group2
|
|
WinTop=0.100000
|
|
WinLeft=0.345000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group2=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group2'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group3
|
|
WinTop=0.100000
|
|
WinLeft=0.510000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group3=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group3'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group4
|
|
WinTop=0.100000
|
|
WinLeft=0.675000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group4=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group4'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group5
|
|
WinTop=0.100000
|
|
WinLeft=0.840000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group5=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group5'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group6
|
|
WinTop=0.450000
|
|
WinLeft=0.180000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group6=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group6'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group7
|
|
WinTop=0.450000
|
|
WinLeft=0.345000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group7=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group7'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group8
|
|
WinTop=0.450000
|
|
WinLeft=0.510000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Group8=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group8'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Group9
|
|
WinTop=0.100000
|
|
WinLeft=0.015000
|
|
WinWidth=0.150000
|
|
WinHeight=0.800000
|
|
End Object
|
|
ba_Group9=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Group9'
|
|
|
|
Begin Object Class=BackgroundArea Name=BackgroundArea_Presets
|
|
WinTop=0.450000
|
|
WinLeft=0.840000
|
|
WinWidth=0.150000
|
|
WinHeight=0.304000
|
|
End Object
|
|
ba_Presets=BackgroundArea'hidemut.WeaponManagerMenu.BackgroundArea_Presets'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group1
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group1.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.182000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group1=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group1'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group2
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group2.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.347000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group2=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group2'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group3
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group3.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.512000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group3=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group3'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group4
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group4.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.677000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group4=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group4'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group5
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group5.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.842000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group5=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group5'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group6
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group6.InternalOnCreateComponent
|
|
WinTop=0.452000
|
|
WinLeft=0.182000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group6=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group6'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group7
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group7.InternalOnCreateComponent
|
|
WinTop=0.452000
|
|
WinLeft=0.347000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group7=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group7'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group8
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group8.InternalOnCreateComponent
|
|
WinTop=0.452000
|
|
WinLeft=0.512000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Group8=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group8'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Group9
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Group9.InternalOnCreateComponent
|
|
WinTop=0.102000
|
|
WinLeft=0.017000
|
|
WinWidth=0.146000
|
|
WinHeight=0.796000
|
|
End Object
|
|
lb_Group9=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Group9'
|
|
|
|
Begin Object Class=GUIListBox Name=ListBox_Presets
|
|
bVisibleWhenEmpty=True
|
|
OnCreateComponent=ListBox_Presets.InternalOnCreateComponent
|
|
WinTop=0.452000
|
|
WinLeft=0.842000
|
|
WinWidth=0.146000
|
|
WinHeight=0.300000
|
|
End Object
|
|
lb_Presets=GUIListBox'hidemut.WeaponManagerMenu.ListBox_Presets'
|
|
|
|
Begin Object Class=GUIButton Name=VanillaResetButton
|
|
Caption="Full reset"
|
|
WinTop=0.450000
|
|
WinLeft=0.675000
|
|
WinWidth=0.150000
|
|
WinHeight=0.080000
|
|
OnClick=WeaponManagerMenu.ButtonClicked
|
|
OnKeyEvent=VanillaResetButton.InternalOnKeyEvent
|
|
End Object
|
|
b_VanillaReset=GUIButton'hidemut.WeaponManagerMenu.VanillaResetButton'
|
|
|
|
Begin Object Class=GUIButton Name=BasicCleaningButton
|
|
Caption="Basic cleaning"
|
|
WinTop=0.550000
|
|
WinLeft=0.675000
|
|
WinWidth=0.150000
|
|
WinHeight=0.080000
|
|
OnClick=WeaponManagerMenu.ButtonClicked
|
|
OnKeyEvent=BasicCleaningButton.InternalOnKeyEvent
|
|
End Object
|
|
b_BasicCleaning=GUIButton'hidemut.WeaponManagerMenu.BasicCleaningButton'
|
|
|
|
Begin Object Class=GUIButton Name=FullCleaningButton
|
|
Caption="Full cleaning"
|
|
WinTop=0.650000
|
|
WinLeft=0.675000
|
|
WinWidth=0.150000
|
|
WinHeight=0.080000
|
|
OnClick=WeaponManagerMenu.ButtonClicked
|
|
OnKeyEvent=FullCleaningButton.InternalOnKeyEvent
|
|
End Object
|
|
b_FullCleaning=GUIButton'hidemut.WeaponManagerMenu.FullCleaningButton'
|
|
|
|
Begin Object Class=GUIButton Name=SavePresetButton
|
|
Caption="Save"
|
|
WinTop=0.787000
|
|
WinLeft=0.840000
|
|
WinWidth=0.074000
|
|
WinHeight=0.050000
|
|
OnClick=WeaponManagerMenu.ButtonClicked
|
|
OnKeyEvent=SavePresetButton.InternalOnKeyEvent
|
|
End Object
|
|
b_SavePreset=GUIButton'hidemut.WeaponManagerMenu.SavePresetButton'
|
|
|
|
Begin Object Class=GUIButton Name=DeletePresetButton
|
|
Caption="Delete"
|
|
WinTop=0.787000
|
|
WinLeft=0.916000
|
|
WinWidth=0.073000
|
|
WinHeight=0.050000
|
|
OnClick=WeaponManagerMenu.ButtonClicked
|
|
OnKeyEvent=DeletePresetButton.InternalOnKeyEvent
|
|
End Object
|
|
b_DeletePreset=GUIButton'hidemut.WeaponManagerMenu.DeletePresetButton'
|
|
|
|
Begin Object Class=moEditBox Name=EditBoxPresetName
|
|
CaptionWidth=0.000000
|
|
OnCreateComponent=EditBoxPresetName.InternalOnCreateComponent
|
|
WinTop=0.754000
|
|
WinLeft=0.840000
|
|
WinWidth=0.150000
|
|
End Object
|
|
eb_PresetName=moEditBox'hidemut.WeaponManagerMenu.EditBoxPresetName'
|
|
|
|
Begin Object Class=moCheckBox Name=checkBox_UseVanillaManagement
|
|
Caption="Native system"
|
|
OnCreateComponent=checkBox_UseVanillaManagement.InternalOnCreateComponent
|
|
WinTop=0.020000
|
|
WinLeft=0.050000
|
|
WinWidth=0.100000
|
|
WinHeight=0.100000
|
|
OnChange=WeaponManagerMenu.checkboxUsed
|
|
End Object
|
|
cb_UseVanillaManagement=moCheckBox'hidemut.WeaponManagerMenu.checkBox_UseVanillaManagement'
|
|
|
|
Begin Object Class=moCheckBox Name=checkBox_FastWeaponChanging
|
|
Caption="Instaswitching"
|
|
OnCreateComponent=checkBox_FastWeaponChanging.InternalOnCreateComponent
|
|
WinTop=0.020000
|
|
WinLeft=0.250000
|
|
WinWidth=0.100000
|
|
WinHeight=0.100000
|
|
OnChange=WeaponManagerMenu.checkboxUsed
|
|
End Object
|
|
cb_FastWeaponChanging=moCheckBox'hidemut.WeaponManagerMenu.checkBox_FastWeaponChanging'
|
|
|
|
Begin Object Class=GUILabel Name=Group1Label
|
|
Caption="Group 1"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.180000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group1=GUILabel'hidemut.WeaponManagerMenu.Group1Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group2Label
|
|
Caption="Group 2"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.345000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group2=GUILabel'hidemut.WeaponManagerMenu.Group2Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group3Label
|
|
Caption="Group 3"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.512000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group3=GUILabel'hidemut.WeaponManagerMenu.Group3Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group4Label
|
|
Caption="Group 4"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.677000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group4=GUILabel'hidemut.WeaponManagerMenu.Group4Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group5Label
|
|
Caption="Group 5"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.842000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group5=GUILabel'hidemut.WeaponManagerMenu.Group5Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group6Label
|
|
Caption="Group 6"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.422000
|
|
WinLeft=0.180000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group6=GUILabel'hidemut.WeaponManagerMenu.Group6Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group7Label
|
|
Caption="Group 7"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.422000
|
|
WinLeft=0.345000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group7=GUILabel'hidemut.WeaponManagerMenu.Group7Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group8Label
|
|
Caption="Group 8"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.422000
|
|
WinLeft=0.510000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group8=GUILabel'hidemut.WeaponManagerMenu.Group8Label'
|
|
|
|
Begin Object Class=GUILabel Name=Group9Label
|
|
Caption="Group 9 [Unused weapons]"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.070000
|
|
WinLeft=0.015000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Group9=GUILabel'hidemut.WeaponManagerMenu.Group9Label'
|
|
|
|
Begin Object Class=GUILabel Name=PresetsLabel
|
|
Caption="Presets"
|
|
TextAlign=TXTA_Center
|
|
VertAlign=TXTA_Center
|
|
StyleName="TextLabel"
|
|
WinTop=0.422000
|
|
WinLeft=0.842000
|
|
WinWidth=0.150000
|
|
WinHeight=0.020000
|
|
End Object
|
|
l_Presets=GUILabel'hidemut.WeaponManagerMenu.PresetsLabel'
|
|
|
|
bRenderWorld=True
|
|
bRequire640x480=False
|
|
bPersistent=True
|
|
bAllowedAsLast=True
|
|
BackgroundRStyle=MSTY_Modulated
|
|
}
|