Scriptname aaaHitStopCustomMenu extends ActiveMagicEffect  


Message Property aaaHitStopCustomMainMenu auto
Message Property aaaHitStopCustomMenuHitStop auto
Message Property aaaHitStopCustomMenuShakeCamera auto
Message Property aaaHitStopCustomMenuBlur auto
Message Property aaaHitStopCustomMenuShakeController auto
Message Property aaaHitStopCustomMenuPowAttack auto

GlobalVariable Property aaaHitStopTime auto
GlobalVariable Property aaaHitStopCamStr auto
GlobalVariable Property aaaHitStopBlurStr auto
GlobalVariable Property aaaHitStopPowAttackTime auto
GlobalVariable Property aaaHitStopContStr auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
If(akCaster== Game.GetPlayer())	

	int chosenOption = aaaHitStopCustomMainMenu.Show()

	If(chosenOption==0)			;Hit Stop chosen
		chosenOption=-1
		chosenOption = aaaHitStopCustomMenuHitStop.Show()
		If(chosenOption==0)		;OFF
			aaaHitStopTime.SetValue(0)
		ElseIf(chosenOption==1)
			aaaHitStopTime.SetValue(0.02)
		ElseIf(chosenOption==2)		
			aaaHitStopTime.SetValue(0.04)
		ElseIf(chosenOption==3)		
			aaaHitStopTime.SetValue(0.06)
		ElseIf(chosenOption==4)		
			aaaHitStopTime.SetValue(0.08)
		ElseIf(chosenOption==5)		
			aaaHitStopTime.SetValue(0.10)
		ElseIf(chosenOption==6)		
			aaaHitStopTime.SetValue(0.12)
		ElseIf(chosenOption==7)		
			aaaHitStopTime.SetValue(0.14)
		EndIf

	ElseIf (chosenOption==1)		;Shake Camera
		chosenOption = aaaHitStopCustomMenuShakeCamera.Show()
		If (chosenOption==0)
			aaaHitStopCamStr.SetValue(0)
		ElseIf(chosenOption==1)
			aaaHitStopCamStr.SetValue(0.2)
		ElseIf(chosenOption==2)		
			aaaHitStopCamStr.SetValue(0.4)
		ElseIf(chosenOption==3)		
			aaaHitStopCamStr.SetValue(0.6)
		ElseIf(chosenOption==4)		
			aaaHitStopCamStr.SetValue(0.8)
		ElseIf(chosenOption==5)		
			aaaHitStopCamStr.SetValue(1.0)
		EndIf

	ElseIf (chosenOption==2)		;Blur
		chosenOption = aaaHitStopCustomMenuBlur.Show()
		If (chosenOption==0)
			aaaHitStopBlurStr.SetValue(0)
		ElseIf(chosenOption==1)
			aaaHitStopBlurStr.SetValue(0.2)
		ElseIf(chosenOption==2)		
			aaaHitStopBlurStr.SetValue(0.4)
		ElseIf(chosenOption==3)		
			aaaHitStopBlurStr.SetValue(0.6)
		ElseIf(chosenOption==4)		
			aaaHitStopBlurStr.SetValue(0.8)
		ElseIf(chosenOption==5)		
			aaaHitStopBlurStr.SetValue(1.0)
		EndIf

	ElseIf (chosenOption==3)		;Cont
		chosenOption = aaaHitStopCustomMenuShakeController.Show()
		If (chosenOption==0)
			aaaHitStopContStr.SetValue(0)
		ElseIf(chosenOption==1)
			aaaHitStopContStr.SetValue(0.2)
		ElseIf(chosenOption==2)		
			aaaHitStopContStr.SetValue(0.4)
		ElseIf(chosenOption==3)		
			aaaHitStopContStr.SetValue(0.6)
		ElseIf(chosenOption==4)		
			aaaHitStopContStr.SetValue(0.8)
		ElseIf(chosenOption==5)		
			aaaHitStopContStr.SetValue(1.0)
		EndIf

	ElseIf (chosenOption==4)		;Pow
		chosenOption = aaaHitStopCustomMenuPowAttack.Show()
		If(chosenOption==0)		
			aaaHitStopPowAttackTime.SetValue(0)
		ElseIf(chosenOption==1)
			aaaHitStopPowAttackTime.SetValue(0.02)
		ElseIf(chosenOption==2)		
			aaaHitStopPowAttackTime.SetValue(0.04)
		ElseIf(chosenOption==3)		
			aaaHitStopPowAttackTime.SetValue(0.06)
		ElseIf(chosenOption==4)		
			aaaHitStopPowAttackTime.SetValue(0.08)
		ElseIf(chosenOption==5)		
			aaaHitStopPowAttackTime.SetValue(0.10)
		ElseIf(chosenOption==6)		
			aaaHitStopPowAttackTime.SetValue(0.12)
		ElseIf(chosenOption==7)		
			aaaHitStopPowAttackTime.SetValue(0.14)
		EndIf
	EndIf
EndIf

EndEvent