//=============================================================================
// NaliWPickMenuPage.
//=============================================================================
class NaliWPickMenuPage expands UMenuPageWindow;

var UWindowCheckBox NeoUDam, NeoInvis, NeoV, NeoM, NeoSH;

function AfterCreate()
{
    Super.AfterCreate();

    DesiredWidth = 220;
    DesiredHeight = 200;
}

function Created()
{
	NeoUDam = UWindowCheckBox(CreateControl(class'UWindowCheckBox', 10, 10, 270, 1));
	NeoUDam.SetText("Enable Neo X UDamage");
	NeoUDam.bChecked = class'NWMutator'.default.enable_NeoXUDamage;

	NeoInvis = UWindowCheckBox(CreateControl(class'UWindowCheckBox', 10, 45, 270, 1));
	NeoInvis.SetText("Enable Neo X Invisibility");
	NeoInvis.bChecked = class'NWMutator'.default.enable_NeoXInvis;

	NeoV = UWindowCheckBox(CreateControl(class'UWindowCheckBox', 10, 80, 270, 1));
	NeoV.SetText("Enable Neo X Vials");
	NeoV.bChecked = class'NWMutator'.default.enable_NeoXVial;

	NeoM = UWindowCheckBox(CreateControl(class'UWindowCheckBox', 10, 115, 270, 1));
	NeoM.SetText("Enable Neo X Medicine Boxes");
	NeoM.bChecked = class'NWMutator'.default.enable_NeoXMed;

	NeoSH = UWindowCheckBox(CreateControl(class'UWindowCheckBox', 10, 150, 270, 1));
	NeoSH.SetText("Enable Neo X Super Health");
	NeoSH.bChecked = class'NWMutator'.default.enable_NeoXSHealth;
}



function Notify(UWindowDialogControl C, byte E)
{

	switch(E) {
		case DE_Change: // the message sent by sliders and checkboxes
			switch(C) 
			{

				case NeoUDam:
					class'NWMutator'.default.enable_NeoXUDamage = NeoUDam.bChecked;
					class'NWMutator'.static.StaticSaveConfig();
					break;
				case NeoInvis:
					class'NWMutator'.default.enable_NeoXInvis = NeoInvis.bChecked;
					class'NWMutator'.static.StaticSaveConfig();
					break;
				case NeoV:
					class'NWMutator'.default.enable_NeoXVial = NeoV.bChecked;
					class'NWMutator'.static.StaticSaveConfig();
					break;
				case NeoM:
					class'NWMutator'.default.enable_NeoXMed = NeoM.bChecked;
					class'NWMutator'.static.StaticSaveConfig();
					break;
				case NeoSH:
					class'NWMutator'.default.enable_NeoXSHealth = NeoSH.bChecked;
					class'NWMutator'.static.StaticSaveConfig();
					break;

			}				
		break;
	}
}


