OptionValue "RBTargetMode"
{
	0, "Target"
	1, "Move"
	2, "Both"
}

OptionValue "RBMode"
{
	0, "Static"
	1, "Run away"
	2, "Follow"
	3, "Wander"
}

OptionValue "RBBarrelMode"
{
	0, "Static"
	1, "Run away"
	2, "Follow"
	3, "Wander"
	4, "Hostile"
	5, "Friendly"
}

OptionValue "RBShootable"
{
	0, "Yes"
	1, "No"
	2, "Only transformed"
}

OptionValue "RBTransformEffect"
{
	0, "Smoke"
	1, "Teleportation fog"
	2, "Respawn fog"
	3, "None"
}

OptionValue "RBTime"
{
	5, "5 seconds"
	10, "10 seconds"
	30, "30 seconds"
	60, "1 minute"
	300, "5 minutes"
	600, "10 minutes"
	3600, "1 hour"
	36000, "10 hours"
}

OptionValue "RBBFGMode"
{
	0, "Ranged"
	1, "Melee"
}

OptionMenu "RBOptions"
{
	Title "Run For It! options"
	StaticText " "
	
	StaticText "Custom controls", 1
	Control "Set runball target", "+user1"
	Control "Clear runball target", "+user4"
	Control "Freeze/unfreeze runballs", "+user2"
	Control "Destroy all runballs", "+user3"
	StaticText " "
	
	StaticText "Control options", 1
	Option "Keep player target", rb_keepplayertarget, "YesNo"
	Option "Target button mode", rb_targetmode, "RBTargetMode"
	Option "Show runball hud", rb_showhud, "YesNo"
	StaticText " "
	
	StaticText "Sound options", 1
	Slider "Runball hud sound volume", rb_hudsoundvolume, 0.0, 1.0, 0.1
	Slider "Footstep sound volume", rb_footsoundvolume, 0.0, 1.0, 0.1
	Slider "Transform sound volume", rb_transformsoundvolume, 0.0, 1.0, 0.1
	StaticText " "
	
	StaticText "Common options", 1
	Slider "Number of effect particles", rb_particlenum, 0.0, 2.0, 0.1
	Option "Transformation effect", rb_transformeffect, "RBTransformEffect"
	Option "Thrust objects when damaged", rb_itemthrust, "YesNo"
	StaticText " "
	
	StaticText "Player running projectiles options", 1
	Option "BFG attack type", rb_bfgmode, "RBBFGMode"
	Option "Target items", rb_targetitems, "YesNo"
	Option "Target barrels", rb_targetbarrels, "YesNo"
	Option "Target decorations", rb_targetdecorations, "YesNo"
	Slider "Speed", rb_playerspeed, 0.0, 1.0, 0.05
	Option "Lifetime", rb_playertime, "RBTime"
	StaticText " "
	
	StaticText "Monster running projectiles options", 1
	Slider "Speed", rb_monsterspeed, 0.0, 1.0, 0.05
	Option "Lifetime", rb_monstertime, "RBTime"
	StaticText " "
	
	StaticText "Item options", 1
	Option "Mode", rb_itemmode, "RBMode"
	Option "Keys are always static", rb_statickeys, "YesNo"
	Option "Shootable", rb_itemshootable, "RBShootable"
	Slider "Speed", rb_itemspeed, 0.0, 1.0, 0.05
	
	StaticText "Barrel options", 1
	Option "Mode", rb_barrelmode, "RBBarrelMode"
	Slider "Speed", rb_barrelspeed, 0.0, 1.0, 0.05
	StaticText " "
	
	StaticText "Decoration options", 1
	Option "Mode", rb_decorationmode, "RBMode"
	Option "Objects can walk through when dead", rb_decorationsnonsolid, "YesNo"
	Option "Don't transform corpses", rb_staticcorpses, "YesNo"
	Option "Don't transform hanging decorations", rb_statichangingdecorations, "YesNo"
	Option "Pull up hanging decorations", rb_pulluphangingdecorations, "YesNo"
	Option "Shootable", rb_decorationshootable, "RBShootable"
	Slider "Speed", rb_decorationspeed, 0.0, 1.0, 0.05
}

LISTMENU "MainMenu"
{
	StaticPatch 94, 2, "M_DOOM"
	Position 97, 72
	IfOption(ReadThis)
	{
		Position 97, 64
	}
	
	PatchItem "M_NGAME", "n", "PlayerclassMenu"
	ifOption(SwapMenu)
	{
		PatchItem "M_LOADG", "l", "LoadGameMenu"
		PatchItem "M_SAVEG", "s", "SaveGameMenu"
		Linespacing 18
		PatchItem "M_OPTION","o", "OptionsMenu"
	}
	else
	{
		PatchItem "M_OPTION","o", "OptionsMenu"
		PatchItem "M_LOADG", "l", "LoadGameMenu"
		Linespacing 18
		PatchItem "M_SAVEG", "s", "SaveGameMenu"
	}
	
	Linespacing 13
	TextItem "Run For It! Options", "", "RBOptions"
	
	ifOption(ReadThis)
	{
		PatchItem "M_RDTHIS","r", "ReadThisMenu"
	}
	PatchItem "M_QUITG", "q", "QuitMenu"
}