；此MOD由Slap設計與製作
；This mod was designed and created by Slap.
；Discord：https://discord.gg/dKBcYSn7Xf
；Fanbox：https://slapmod.fanbox.cc/
；patreon：https://www.patreon.com/c/slapmod

; nuomu

; Constants -------------------------

[Constants]
global $active0 = 0

global persist $swapvar_fg = -1
global persist $swapvar_rd = 0
global persist $swapvar_tjq = 0
global $draw_nuomubodya_sy = 1
global $draw_nuomubodya_rd = 1
global $draw_nuomubodya_yb = 1
global $draw_nuomubodya_qz = 1
global $draw_nuomubodya_st0 = 1
global $draw_nuomubodya_st1 = 1
global $draw_nuomubodyb = 1
global $draw_nuomubodyc = 1

[Present]
post $active0 = 0


; Overrides -------------------------

[KeySwapFG]
condition = $active0 == 1
key = DOWN
type = cycle
$swapvar_fg = -1, 0, 1, 2, 3, 4, 5, 6, 7

[KeySwapRD]
condition = $active0 == 1
key = UP
type = cycle
$swapvar_rd = -1, 0

[KeySwapTJQ]
condition = $active0 == 1
key = LEFT
type = cycle
$swapvar_tjq = -1, 0

[TextureOverridenuomubodyBlend]
hash = b10a84f3
handling = skip
vb2 = ResourcenuomubodyBlend
if DRAW_TYPE == 1
	vb0 = ResourcenuomubodyPosition
	draw = 77993, 0
endif

[TextureOverridenuomubodyTexcoord]
hash = 52235615
vb1 = ResourcenuomubodyTexcoord
$active0 = 1

[TextureOverridenuomubodyVertexLimitRaise]
hash = ab21b245
override_vertex_count = 77993
override_byte_stride = 40

[TextureOverridenuomubodyIB]
hash = 773f390c
handling = skip

[TextureOverridenuomubodyA]
hash = 773f390c
match_first_index = 0
ib = ResourcenuomubodyAIB
run = CommandListProcessToggles
Resource\ZZMI\Diffuse = ref Resourcems1
Resource\ZZMI\NormalMap = ref Resourcefx1
Resource\ZZMI\LightMap = ref Resourcegz1
Resource\ZZMI\MaterialMap = ref Resourcegg1
run = CommandList\ZZMI\SetTextures
run = CommandListLocalSlotFixStaticNuomubodyaR1E1
if $draw_nuomubodya_sy
                    
	drawindexed = 49536, 0, 0
                    
endif
if $draw_nuomubodya_rd
                    
	drawindexed = 12117, 49536, 0
                    
endif
if $draw_nuomubodya_yb
                    
	drawindexed = 30540, 61653, 0
                    
endif
if $draw_nuomubodya_qz
                    
	drawindexed = 15756, 92193, 0
                    
endif
if $draw_nuomubodya_st0
                    
	drawindexed = 140652, 107949, 0
                    
endif
if $draw_nuomubodya_st1
                    
	drawindexed = 153090, 248601, 0
                    
endif

[TextureOverridenuomubodyB]
hash = 773f390c
match_first_index = 55002
ib = ResourcenuomubodyBIB
run = CommandListProcessToggles
if $draw_nuomubodyb
                    
	drawindexed = 2964, 0, 0
                    
endif

[TextureOverridenuomubodyC]
hash = 773f390c
match_first_index = 57966
ib = ResourcenuomubodyCIB
run = CommandListProcessToggles
if $draw_nuomubodyc
                    
	drawindexed = 2964, 0, 0
                    
endif




; CommandList -----------------------

[CommandListProcessToggles]
$draw_nuomubodya_sy = ($swapvar_fg == -1) || ($swapvar_fg == 0) || ($swapvar_fg == 2) || ($swapvar_fg == 3) || ($swapvar_fg == 5)
$draw_nuomubodya_rd = ($swapvar_rd == 0)
$draw_nuomubodya_yb = ($swapvar_fg == -1) || ($swapvar_fg == 0) || ($swapvar_fg == 1) || ($swapvar_fg == 6)
$draw_nuomubodya_qz = ($swapvar_fg == -1) || ($swapvar_fg == 0) || ($swapvar_fg == 1) || ($swapvar_fg == 2) || ($swapvar_fg == 5) || ($swapvar_fg == 6)
$draw_nuomubodya_st0 = ($swapvar_fg == -1) || ($swapvar_fg == 1) || ($swapvar_fg == 2) || ($swapvar_fg == 3) || ($swapvar_fg == 4)
$draw_nuomubodya_st1 = ($swapvar_fg == 0) || ($swapvar_fg == 5) || ($swapvar_fg == 6) || ($swapvar_fg == 7)
$draw_nuomubodyb = ($swapvar_tjq == 0)
$draw_nuomubodyc = ($swapvar_tjq == 0)

[CommandListLocalSlotFixStaticNuomubodyaR1E1]
x142 = ps-t2
x143 = ps-t3
x144 = ps-t4
x145 = ps-t5
x146 = ps-t6
x147 = ps-t7
x148 = ps-t8
x149 = ps-t9
x150 = ps-t10
x151 = ps-t11
x152 = ps-t12
x153 = ps-t13
if x144 == 5353.1 || (x144 == 5353.0 && x145 == 5353.1)
else if x144 == -0.000000
else if x143 == 5353.0 && (x144 == 3535.006 || x144 == 3535.003 || x144 == 3535.005 || x144 == 5353.3) && x146 == 5353.1
else if (x143 == 3535.006 || x143 == 3535.005 || x143 == 3535.205 || x143 == 3535.306) && (x144 == 3535.006 || x144 == 3535.005 || x144 == 3535.205 || x144 == 3535.306)
else if 1 && 1 && 1
else if 1 && 1 && (x145 == 5353.0)
else if 0
endif
if x147 == 3535.003 || x147 == 3535.102 || x147 == 3535.305
	ps-t7 = Resourcetx1
endif
if x148 == 3535.003 || x148 == 3535.102 || x148 == 3535.305
	ps-t8 = Resourcetx1
endif
if x149 == 3535.003 || x149 == 3535.102 || x149 == 3535.305
	ps-t9 = Resourcetx1
endif
if x150 == 3535.003 || x150 == 3535.102 || x150 == 3535.305
	ps-t10 = Resourcetx1
endif
if x151 == 3535.003 || x151 == 3535.102 || x151 == 3535.305
	ps-t11 = Resourcetx1
endif
if x152 == 3535.003 || x152 == 3535.102 || x152 == 3535.305
	ps-t12 = Resourcetx1
endif
if x153 == 3535.003 || x153 == 3535.102 || x153 == 3535.305
	ps-t13 = Resourcetx1
endif
x142 = 0
x143 = 0
x144 = 0
x145 = 0
x146 = 0
x147 = 0
x148 = 0
x149 = 0
x150 = 0
x151 = 0
x152 = 0
x153 = 0


; Resources -------------------------

[ResourcenuomubodyPosition]
type = Buffer
stride = 40
filename = nuomubodyPosition.buf

[ResourcenuomubodyBlend]
type = Buffer
stride = 32
filename = nuomubodyBlend.buf

[ResourcenuomubodyTexcoord]
type = Buffer
stride = 24
filename = nuomubodyTexcoord.buf

[ResourcenuomubodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = nuomubodyA.ib

[ResourcenuomubodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = nuomubodyB.ib

[ResourcenuomubodyCIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = nuomubodyC.ib

[Resourcems1]
filename = A1.dds

[Resourcefx1]
filename = B1.dds

[Resourcegz1]
filename = C1.dds

[Resourcegg1]
filename = D1.dds

[Resourcetx1]
filename = E1.dds





; .ini generated by XXMI (XX-Model-Importer) v1.8.1
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues

；此MOD由Slap設計與製作
；This mod was designed and created by Slap.
；Discord：https://discord.gg/dKBcYSn7Xf
；Fanbox：https://slapmod.fanbox.cc/
；patreon：https://www.patreon.com/c/slapmod
