AddOptionMenu "OptionsMenu"
{
	SubMenu "$MFX_TITLE", "MFXOptionsMenu"
}
AddOptionMenu "OptionsMenuSimple"
{
	SubMenu "$MFX_TITLE", "MFXOptionsMenu"
}

OptionValue "MFXGrainBlend"
{
	0, "$MFX_BLENDMODE1"
	1, "$MFX_BLENDMODE2"
	2, "$MFX_BLENDMODE3"
	3, "$MFX_BLENDMODE4"
}

OptionValue "MFXTonemap"
{
	0, "$TXT_NO"
	1, "$MFX_TMAP1"
	2, "$MFX_TMAP2"
	3, "$MFX_TMAP3"
}

OptionValue "MFXVigShape"
{
	0, "$MFX_VIGSHAPE1"
	1, "$MFX_VIGSHAPE2"
	2, "$MFX_VIGSHAPE3"
}

OptionValue "MFXVigMode"
{
	0, "$MFX_VIGMODE1"
	1, "$MFX_VIGMODE2"
	2, "$MFX_VIGMODE3"
}

OptionValue "MFXScaleMode"
{
	0, "$MFX_SCLMODE1"
	1, "$MFX_SCLMODE2"
	2, "$MFX_SCLMODE3"
	3, "$MFX_SCLMODE4"
}

OptionValue "MFXPalette"
{
	0, "$MFX_PALETTE1"
	1, "$MFX_PALETTE2"
	2, "$MFX_PALETTE3"
	3, "$MFX_PALETTE4"
	4, "$MFX_PALETTE5"
	5, "$MFX_PALETTE6"
	6, "$MFX_PALETTE7"
	7, "$MFX_PALETTE8"
	8, "$MFX_PALETTE9"
	9, "$MFX_PALETTE10"
	10, "$MFX_PALETTE11"
	11, "$MFX_PALETTE12"
	12, "$MFX_PALETTE13"
	13, "$MFX_PALETTE14"
	14, "$MFX_PALETTE15"
	15, "$MFX_PALETTE16"
	16, "$MFX_PALETTE17"
	17, "$MFX_PALETTE18"
	18, "$MFX_PALETTE19"
	19, "$MFX_PALETTE20"
	20, "$MFX_PALETTE21"
	21, "$MFX_PALETTE22"
	22, "$MFX_PALETTE23"
	23, "$MFX_PALETTE24"
	24, "$MFX_PALETTE25"
	25, "$MFX_PALETTE26"
	26, "$MFX_PALETTE27"
	27, "$MFX_PALETTE28"
	28, "$MFX_PALETTE29"
	29, "$MFX_PALETTE30"
	30, "$MFX_PALETTE31"
	31, "$MFX_PALETTE32"
	32, "$MFX_PALETTE33"
	33, "$MFX_PALETTE34"
	34, "$MFX_PALETTE35"
	35, "$MFX_PALETTE36"
	36, "$MFX_PALETTE37"
	37, "$MFX_PALETTE38"
	38, "$MFX_PALETTE39"
	39, "$MFX_PALETTE40"
	40, "$MFX_PALETTE41"
	41, "$MFX_PALETTE42"
	42, "$MFX_PALETTE43"
	43, "$MFX_PALETTE44"
	44, "$MFX_PALETTE45"
	45, "$MFX_PALETTE46"
	46, "$MFX_PALETTE47"
	47, "$MFX_PALETTE48"
	48, "$MFX_PALETTE49"
	49, "$MFX_PALETTE50"
	50, "$MFX_PALETTE51"
	51, "$MFX_PALETTE52"
	52, "$MFX_PALETTE53"
	53, "$MFX_PALETTE54"
	54, "$MFX_PALETTE55"
	55, "$MFX_PALETTE56"
	56, "$MFX_PALETTE57"
	57, "$MFX_PALETTE58"
	58, "$MFX_PALETTE59"
	59, "$MFX_PALETTE60"
	60, "$MFX_PALETTE61"
	61, "$MFX_PALETTE62"
	62, "$MFX_PALETTE63"
	63, "$MFX_PALETTE64"
}

OptionValue "MFXDither"
{
	-1, "$MFX_DITHER0"
	0, "$MFX_DITHER1"
	1, "$MFX_DITHER2"
	2, "$MFX_DITHER3"
	3, "$MFX_DITHER4"
	4, "$MFX_DITHER5"
}

OptionValue "MFXLUT"
{
	0, "$MFX_LUT1"
	1, "$MFX_LUT2"
	2, "$MFX_LUT3"
	3, "$MFX_LUT4"
	4, "$MFX_LUT5"
	5, "$MFX_LUT6"
	6, "$MFX_LUT7"
	7, "$MFX_LUT8"
	8, "$MFX_LUT9"
	9, "$MFX_LUT10"
	10, "$MFX_LUT11"
	11, "$MFX_LUT12"
	12, "$MFX_LUT13"
	13, "$MFX_LUT14"
	14, "$MFX_LUT15"
	15, "$MFX_LUT16"
	16, "$MFX_LUT17"
	17, "$MFX_LUT18"
	18, "$MFX_LUT19"
	19, "$MFX_LUT20"
	20, "$MFX_LUT21"
	21, "$MFX_LUT22"
	22, "$MFX_LUT23"
	23, "$MFX_LUT24"
	24, "$MFX_LUT25"
	25, "$MFX_LUT26"
	26, "$MFX_LUT27"
	27, "$MFX_LUT28"
	28, "$MFX_LUT29"
	29, "$MFX_LUT30"
	30, "$MFX_LUT31"
	31, "$MFX_LUT32"
}

OptionMenu "MFXOptionsMenu"
{
	Class MFXOptionMenu
	Title "$MFX_TITLE"
	MFXPresetList "$MFX_PRESETNUM", "mfx_presetslot"
	TextField "$MFX_PRESETNAME", "mfx_presetname"
	SafeCommand "$MFX_LOADPRESET", "event loadmfxpreset"
	SafeCommand "$MFX_SAVEPRESET", "event savemfxpreset"
	StaticText " "
	Option "$MFX_GLOBAL", "mfx_enabled", "YesNo"
	StaticText " "
	StaticText "$MFX_LUMASHARPEN", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_lsharpenable", "YesNo"
	MFXSlider "$MFX_LSHARPRADIUS", "mfx_lsharpradius", 0, 1, 0.01, 2
	MFXSlider "$MFX_LSHARPTRESHOLD", "mfx_lsharpclamp", 0, 1, 0.01, 2
	MFXSlider "$MFX_LSHARPSTRENGTH", "mfx_lsharpblend", 0, 10, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 8"
	StaticText " "
	StaticText "$MFX_GRAIN", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_ne", "YesNo"
	MFXSlider "$MFX_NI", "mfx_ni", 0, 1, 0.01, 2
	MFXSlider "$MFX_NF", "mfx_nf", -10, 10, 0.01, 2
	MFXSlider "$MFX_NS", "mfx_ns", -1, 1, 0.01, 2
	MFXSlider "$MFX_NP", "mfx_np", 0, 8, 0.01, 2
	MFXSlider "$MFX_NM1_R", "mfx_nm1_r", 0, 10, 0.01, 2
	MFXSlider "$MFX_NM1_G", "mfx_nm1_g", 0, 10, 0.01, 2
	MFXSlider "$MFX_NM1_B", "mfx_nm1_b", 0, 10, 0.01, 2
	MFXSlider "$MFX_NK", "mfx_nk", 0, 1, 0.01, 2
	MFXSlider "$MFX_NM2_R", "mfx_nm2_r", 0, 10, 0.01, 2
	MFXSlider "$MFX_NM2_G", "mfx_nm2_g", 0, 10, 0.01, 2
	MFXSlider "$MFX_NM2_B", "mfx_nm2_b", 0, 10, 0.01, 2
	Option "$MFX_NB", "mfx_nb", "MFXGrainBlend"
	MFXSlider "$MFX_BNP", "mfx_bnp", 0, 10, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 0"
	StaticText " "
	StaticText "$MFX_DIRT", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_dirtenable", "YesNo"
	MFXSlider "$MFX_DIRTMC", "mfx_dirtmc", 1, 8, 0.01, 2
	MFXSlider "$MFX_DIRTCFACTOR", "mfx_dirtcfactor", 0, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 1"
	StaticText " "
	StaticText "$MFX_TMAP", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_tenable", "MFXTonemap"
	MFXSlider "$MFX_TEXPOSURE", "mfx_texposure", 0, 10, 0.01, 2
	MFXSlider "$MFX_TBLEND", "mfx_tblend", 0, 1, 0.01, 2
	MFXSlider "$MFX_UNA", "mfx_una", 0, 10, 0.01, 2
	MFXSlider "$MFX_UNB", "mfx_unb", 0, 10, 0.01, 2
	MFXSlider "$MFX_UNC", "mfx_unc", 0, 10, 0.01, 2
	MFXSlider "$MFX_UND", "mfx_und", 0, 10, 0.01, 2
	MFXSlider "$MFX_UNE", "mfx_une", 0, 10, 0.01, 2
	MFXSlider "$MFX_UNF", "mfx_unf", 0, 10, 0.01, 2
	MFXSlider "$MFX_UNW", "mfx_unw", 0, 10, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 12"
	StaticText " "
	StaticText "$MFX_GRADE", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_gradeenable", "YesNo"
	MFXSlider "$MFX_GRADEMUL_R", "mfx_grademul_r", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEMUL_G", "mfx_grademul_g", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEMUL_B", "mfx_grademul_b", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEPOW_R", "mfx_gradepow_r", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEPOW_G", "mfx_gradepow_g", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEPOW_B", "mfx_gradepow_b", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADECOL_R", "mfx_gradecol_r", -1, 1, 0.01, 2
	MFXSlider "$MFX_GRADECOL_G", "mfx_gradecol_g", -1, 1, 0.01, 2
	MFXSlider "$MFX_GRADECOL_B", "mfx_gradecol_b", -1, 1, 0.01, 2
	MFXSlider "$MFX_GRADECOLFACT", "mfx_gradecolfact", -1, 1, 0.01, 2
	MFXSlider "$MFX_GRADESATMUL", "mfx_gradesatmul", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADESATPOW", "mfx_gradesatpow", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEVALMUL", "mfx_gradevalmul", 0, 2, 0.01, 2
	MFXSlider "$MFX_GRADEVALPOW", "mfx_gradevalpow", 0, 2, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 2"
	StaticText " "
	StaticText "$MFX_LUTGRADE", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_lutenable", "YesNo"
	Option "$MFX_LUTTEX", "mfx_lutindex", "MFXLUT"
	MFXSlider "$MFX_LUTBLEND", "mfx_lutblend", 0, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 9"
	StaticText " "
	StaticText "$MFX_TECHNICOLOR", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_techenable", "YesNo"
	MFXSlider "$MFX_TECHBLEND", "mfx_techblend", 0, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 10"
	StaticText " "
	StaticText "$MFX_CMAT", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_cmatenable", "YesNo"
	MFXSlider "$MFX_CMAT_RR", "mfx_cmat_rr", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_RG", "mfx_cmat_rg", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_RB", "mfx_cmat_rb", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_GR", "mfx_cmat_gr", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_GG", "mfx_cmat_gg", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_GB", "mfx_cmat_gb", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_BR", "mfx_cmat_br", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_BG", "mfx_cmat_bg", -2, 2, 0.01, 2
	MFXSlider "$MFX_CMAT_BB", "mfx_cmat_bb", -2, 2, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 3"
	StaticText " "
	StaticText "$MFX_HUESAT", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_hsenable", "YesNo"
	MFXSlider "$MFX_HSOVER", "mfx_hsover", 0, 0.5, 0.01, 2
	MFXSlider "$MFX_HSHUE_A", "mfx_hshue_a", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_A", "mfx_hssat_a", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_A", "mfx_hsval_a", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_R", "mfx_hshue_r", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_R", "mfx_hssat_r", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_R", "mfx_hsval_r", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_Y", "mfx_hshue_y", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_Y", "mfx_hssat_y", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_Y", "mfx_hsval_y", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_G", "mfx_hshue_g", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_G", "mfx_hssat_g", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_G", "mfx_hsval_g", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_C", "mfx_hshue_c", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_C", "mfx_hssat_c", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_C", "mfx_hsval_c", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_B", "mfx_hshue_b", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_B", "mfx_hssat_b", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_B", "mfx_hsval_b", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSHUE_M", "mfx_hshue_m", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSSAT_M", "mfx_hssat_m", -1, 1, 0.01, 2
	MFXSlider "$MFX_HSVAL_M", "mfx_hsval_m", -1, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 4"
	StaticText " "
	StaticText "$MFX_BSS", 1
	StaticText " "
	StaticText "$MFX_BSS_1", "Brown"
	StaticText "$MFX_BSS_2", "Brown"
	StaticText " "
	Option "$MFX_BSSBLURENABLE", "mfx_bssblurenable", "YesNo"
	MFXSlider "$MFX_BSSBLURRADIUS", "mfx_bssblurradius", 0, 1, 0.01, 2
	Option "$MFX_BSSSHARPENABLE", "mfx_bsssharpenable", "YesNo"
	MFXSlider "$MFX_BSSSHARPRADIUS", "mfx_bsssharpradius", 0, 1, 0.01, 2
	MFXSlider "$MFX_BSSSHARPAMOUNT", "mfx_bsssharpamount", 0, 8, 0.01, 2
	Option "$MFX_BSSSHIFTENABLE", "mfx_bssshiftenable", "YesNo"
	MFXSlider "$MFX_BSSSHIFTRADIUS", "mfx_bssshiftradius", 0, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 5"
	StaticText " "
	StaticText "$MFX_VIGBBLUR", 1
	StaticText " "
	Option "$MFX_VIGENABLE", "mfx_vigenable", "YesNo"
	MFXSlider "$MFX_VIGCOLOR_R", "mfx_vigcolor_r", -1, 1, 0.01, 2
	MFXSlider "$MFX_VIGCOLOR_G", "mfx_vigcolor_g", -1, 1, 0.01, 2
	MFXSlider "$MFX_VIGCOLOR_B", "mfx_vigcolor_b", -1, 1, 0.01, 2
	MFXSlider "$MFX_VIGPOW", "mfx_vigpow", 0, 16, 0.01, 2
	MFXSlider "$MFX_VIGMUL", "mfx_vigmul", 0, 2, 0.01, 2
	MFXSlider "$MFX_VIGBUMP", "mfx_vigbump", -1, 1, 0.01, 2
	Option "$MFX_VIGSHAPE", "mfx_vigshape", "MFXVigShape"
	Option "$MFX_VIGMODE", "mfx_vigmode", "MFXVigMode"
	Option "$MFX_BBLURENABLE", "mfx_bblurenable", "YesNo"
	MFXSlider "$MFX_BBLURPOW", "mfx_bblurpow", 0, 16, 0.01, 2
	MFXSlider "$MFX_BBLURMUL", "mfx_bblurmul", 0, 2, 0.01, 2
	MFXSlider "$MFX_BBLURBUMP", "mfx_bblurbump", -1, 1, 0.01, 2
	MFXSlider "$MFX_BBLURRADIUS", "mfx_bblurradius", 0, 4, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 6"
	StaticText " "
	StaticText "$MFX_PAINT", 1
	StaticText " "
	Option "$MFX_ENABLE", "mfx_paintenable", "YesNo"
	SafeCommand "$MFX_RESET", "event resetmfxvars 11"
	StaticText " "
	StaticText "$MFX_RETROFX", 1
	StaticText " "
	Option "$MFX_RETROENABLE", "mfx_retroenable", "YesNo"
	Option "$MFX_RETROSCALEMODE", "mfx_retroscalemode", "MFXScaleMode"
	TextField "$MFX_BRESX", "mfx_bres_x"
	TextField "$MFX_BRESY", "mfx_bres_y"
	MFXSlider "$MFX_BSCLX", "mfx_bscl_x", 0, 1, 0.01, 2
	MFXSlider "$MFX_BSCLY", "mfx_bscl_y", 0, 1, 0.01, 2
	Option "$MFX_PALENABLE", "mfx_palenable", "YesNo"
	Option "$MFX_PALNUM", "mfx_palnum", "MFXPalette"
	MFXSlider "$MFX_PALSAT", "mfx_palsat", 0, 2, 0.01, 2
	MFXSlider "$MFX_PALPOW", "mfx_palpow", 0, 2, 0.01, 2
	Option "$MFX_PALNAIVE", "mfx_palnaive", "YesNo"
	Option "$MFX_PALDITHER", "mfx_paldither", "MFXDither"
	MFXSlider "$MFX_PALDEPTH", "mfx_paldepth", 1, 16, 1, 0
	MFXSlider "$MFX_PALSPREAD", "mfx_palspread", 0, 1, 0.01, 2
	SafeCommand "$MFX_RESET", "event resetmfxvars 7"
}
