[KeyToggleMap]
condition = $active == 1
key = X
type = cycle
$map = 0,1

[ResourceImageToRender]
filename = menu.png

[Constants]
global $x = 750
global $y = 900
global $z = 0.6
global $w = 0.1
global $active
global $map


[Present]
post $active = 0
if $map == 1 && $active == 1
ps-t100 = ResourceImageToRender
run = CustomShaderDraw
endif


[CustomShaderDraw]
hs = null
ds = null
gs = null
cs = null
vs = Draw_2D.hlsl
ps = Draw_2D.hlsl
x87 = $x/res_width
y87 = $y/res_height
z87 = $z
w87 = $w
blend = ADD SRC_ALPHA INV_SRC_ALPHA
cull = none
topology = triangle_strip
o0 = set_viewport bb
Draw = 4,0
clear = ps-t100


[TextureOverrideToggleMenu]
hash = df489315
$active = 1
 
