; Yixuan

; Constants -------------------------
[Constants]
global $creditinfo = 0
global $active = 0
global persist $swapkey0 = 0
global persist $swapkey1 = 0
global $val
global $deltaSumm


[KeySwap1]
condition = $active
key = u
type = cycle
$swapkey0 = 0,1,2,3,4,5,6
$creditinfo = 0

[KeySwap2]
condition = $active
key = i
type = cycle
$swapkey1 = 0,1
$creditinfo = 0


[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideYixuanbodyBlend]
hash = 3e629c05
handling = skip
vb2 = ResourceYixuanbodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceYixuanbodyPosition
	draw = 46886, 0
pre $active = 1
endif

[TextureOverrideYixuanbodyTexcoord]
hash = 7af146a0
vb1 = ResourceYixuanbodyTexcoord

[TextureOverrideYixuanbodyVertexLimitRaise]
hash = f922d854
override_vertex_count = 46886
override_byte_stride = 40

[TextureOverrideYixuanhairBlend]
hash = d7eb400e
handling = skip
vb2 = ResourceYixuanhairBlend
if DRAW_TYPE == 1
	vb0 = ResourceYixuanhairPosition
	draw = 7667, 0
        pre $active = 1
endif

[TextureOverrideYixuanhairTexcoord]
hash = d4841137
vb1 = ResourceYixuanhairTexcoord

[TextureOverrideYixuanhairVertexLimitRaise]
hash = 36a68b27
override_vertex_count = 7667
override_byte_stride = 40

[TextureOverrideYixuancoatBlend]
hash = 0ff3af5a
handling = skip
vb2 = ResourceYixuancoatBlend
if DRAW_TYPE == 1
	vb0 = ResourceYixuancoatPosition
	draw = 11597, 0
        pre $active = 1
endif

[TextureOverrideYixuancoatTexcoord]
hash = 9f95d565
vb1 = ResourceYixuancoatTexcoord

[TextureOverrideYixuancoatVertexLimitRaise]
hash = 73599fbb
override_vertex_count = 11597
override_byte_stride = 40

[TextureOverrideYixuanfaceA]
hash = 8b067f99
if $swapkey1 == 0
	Resource\ZZMI\Diffuse = ref ResourceYixuanfaceADiffuse
elif $swapkey1 == 1
	Resource\ZZMI\Diffuse = ref ResourceYixuanfaceADiffuse2
endif
run = CommandList\ZZMI\SetTextures

[TextureOverrideYixuanbodyIB]
hash = 029c1f5a
handling = skip

[TextureOverrideYixuanbodyA]
hash = 029c1f5a
match_first_index = 0
ib = ResourceYixuanbodyAIB
Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceYixuanbodyANormalMap
Resource\ZZMI\LightMap = ref ResourceYixuanbodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceYixuanbodyAMaterialMap

if $swapkey0 == 0
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse
elif $swapkey0 == 1
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse2
elif $swapkey0 == 2
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse3
elif $swapkey0 == 3
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse4
	Resource\ZZMI\MaterialMap = ref ResourceYixuanbodyAMaterialMap2
	Resource\ZZMI\LightMap = ref ResourceYixuanbodyALightMap2
	Resource\ZZMI\NormalMap = ref ResourceYixuanbodyANormalMap2
elif $swapkey0 == 4
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse5
	Resource\ZZMI\MaterialMap = ref ResourceYixuanbodyAMaterialMap3
	Resource\ZZMI\LightMap = ref ResourceYixuanbodyALightMap3
	Resource\ZZMI\NormalMap = ref ResourceYixuanbodyANormalMap3
elif $swapkey0 == 5
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse6
	Resource\ZZMI\MaterialMap = ref ResourceYixuanbodyAMaterialMap3
	Resource\ZZMI\LightMap = ref ResourceYixuanbodyALightMap3
	Resource\ZZMI\NormalMap = ref ResourceYixuanbodyANormalMap3
elif $swapkey0 == 6
	Resource\ZZMI\Diffuse = ref ResourceYixuanbodyADiffuse7
	Resource\ZZMI\MaterialMap = ref ResourceYixuanbodyAMaterialMap4
	Resource\ZZMI\LightMap = ref ResourceYixuanbodyALightMap4
	Resource\ZZMI\NormalMap = ref ResourceYixuanbodyANormalMap4
endif

run = CommandList\ZZMI\SetTextures
; bodyA (46886)
drawindexed = 232707, 0, 0

[TextureOverrideYixuanhairIB]
hash = ac8e9ee3
handling = skip

[TextureOverrideYixuanhairA]
hash = ac8e9ee3
match_first_index = 0
ib = ResourceYixuanhairAIB
Resource\ZZMI\Diffuse = ref ResourceYixuanhairADiffuse
Resource\ZZMI\NormalMap = ref ResourceYixuanhairANormalMap
Resource\ZZMI\LightMap = ref ResourceYixuanhairALightMap
Resource\ZZMI\MaterialMap = ref ResourceYixuanhairAMaterialMap
run = CommandList\ZZMI\SetTextures
; hairA (6361)
drawindexed = 21810, 0, 0

[TextureOverrideYixuanhairB]
hash = ac8e9ee3
match_first_index = 21816
ib = ResourceYixuanhairBIB
; hairB (1306)
drawindexed = 4476, 0, 0

[TextureOverrideYixuancoatIB]
hash = 8c2fc05e
handling = skip

[TextureOverrideYixuancoatA]
hash = 8c2fc05e
match_first_index = 0
ib = ResourceYixuancoatAIB
Resource\ZZMI\Diffuse = ref ResourceYixuancoatADiffuse
Resource\ZZMI\NormalMap = ref ResourceYixuancoatANormalMap
Resource\ZZMI\LightMap = ref ResourceYixuancoatALightMap
Resource\ZZMI\MaterialMap = ref ResourceYixuancoatAMaterialMap

if $swapkey0 == 5
	Resource\ZZMI\Diffuse = ref ResourceYixuancoatADiffuse2
	Resource\ZZMI\LightMap = ref ResourceYixuancoatALightMap2
	Resource\ZZMI\MaterialMap = ref ResourceYixuancoatAMaterialMap2
elif $swapkey0 == 6
	Resource\ZZMI\Diffuse = ref ResourceYixuancoatADiffuse3
	Resource\ZZMI\LightMap = ref ResourceYixuancoatALightMap3
	Resource\ZZMI\MaterialMap = ref ResourceYixuancoatAMaterialMap3
endif

run = CommandList\ZZMI\SetTextures
; coatA (11597)
drawindexed = 52917, 0, 0


; CommandList -----------------------
[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
		pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
		pre run = CustomShader\ShaderFixes\help.ini\FormatText
		pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
		$creditinfo = 1
endif


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

[ResourceYixuanfacePosition]
type = Buffer
stride = 40
filename = YixuanfacePosition.buf

[ResourceYixuanfaceBlend]
type = Buffer
stride = 32
filename = YixuanfaceBlend.buf

[ResourceYixuanfaceTexcoord]
type = Buffer
stride = 36
filename = YixuanfaceTexcoord.buf

[ResourceYixuanfaceAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanfaceA.ib

[ResourceYixuanfaceBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanfaceB.ib

[ResourceYixuanfaceCIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanfaceC.ib

[ResourceYixuanbodyPosition]
type = Buffer
stride = 40
filename = YixuanbodyPosition.buf

[ResourceYixuanbodyBlend]
type = Buffer
stride = 32
filename = YixuanbodyBlend.buf

[ResourceYixuanbodyTexcoord]
type = Buffer
stride = 20
filename = YixuanbodyTexcoord.buf

[ResourceYixuanbodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanbodyA.ib

[ResourceYixuanhairPosition]
type = Buffer
stride = 40
filename = YixuanhairPosition.buf

[ResourceYixuanhairBlend]
type = Buffer
stride = 32
filename = YixuanhairBlend.buf

[ResourceYixuanhairTexcoord]
type = Buffer
stride = 20
filename = YixuanhairTexcoord.buf

[ResourceYixuanhairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanhairA.ib

[ResourceYixuanhairBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuanhairB.ib

[ResourceYixuancoatPosition]
type = Buffer
stride = 40
filename = YixuancoatPosition.buf

[ResourceYixuancoatBlend]
type = Buffer
stride = 32
filename = YixuancoatBlend.buf

[ResourceYixuancoatTexcoord]
type = Buffer
stride = 24
filename = YixuancoatTexcoord.buf

[ResourceYixuancoatAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YixuancoatA.ib

[ResourceYixuanfaceADiffuse]
filename = YixuanfaceADiffuse.dds

[ResourceYixuanfaceADiffuse2]
filename = YixuanfaceADiffuse2.dds




[ResourceYixuanbodyADiffuse]
filename = YixuanbodyADiffuse.dds

[ResourceYixuanbodyADiffuse2]
filename = YixuanbodyADiffuse2.dds

[ResourceYixuanbodyADiffuse3]
filename = YixuanbodyADiffuse3.dds

[ResourceYixuanbodyADiffuse4]
filename = YixuanbodyADiffuse4.dds

[ResourceYixuanbodyADiffuse5]
filename = YixuanbodyADiffuse5.dds

[ResourceYixuanbodyADiffuse6]
filename = YixuanbodyADiffuse6.dds

[ResourceYixuanbodyADiffuse7]
filename = YixuanbodyADiffuse7.dds




[ResourceYixuanbodyANormalMap]
filename = YixuanbodyANormalMap.jpg

[ResourceYixuanbodyANormalMap2]
filename = YixuanbodyANormalMap2.jpg

[ResourceYixuanbodyANormalMap3]
filename = YixuanbodyANormalMap3.jpg

[ResourceYixuanbodyANormalMap4]
filename = YixuanbodyANormalMap4.jpg



[ResourceYixuanbodyALightMap]
filename = YixuanbodyALightMap.dds

[ResourceYixuanbodyALightMap2]
filename = YixuanbodyALightMap2.dds

[ResourceYixuanbodyALightMap3]
filename = YixuanbodyALightMap3.dds

[ResourceYixuanbodyALightMap4]
filename = YixuanbodyALightMap4.dds



[ResourceYixuanbodyAMaterialMap]
filename = YixuanbodyAMaterialMap.dds

[ResourceYixuanbodyAMaterialMap2]
filename = YixuanbodyAMaterialMap2.dds

[ResourceYixuanbodyAMaterialMap3]
filename = YixuanbodyAMaterialMap3.dds

[ResourceYixuanbodyAMaterialMap4]
filename = YixuanbodyAMaterialMap4.dds


[ResourceYixuanhairADiffuse]
filename = YixuanhairADiffuse.dds

[ResourceYixuanhairALightMap]
filename = YixuanhairALightMap.dds

[ResourceYixuanhairAMaterialMap]
filename = YixuanhairAMaterialMap.dds


[ResourceYixuancoatADiffuse]
filename = YixuancoatADiffuse.dds

[ResourceYixuancoatADiffuse2]
filename = YixuancoatADiffuse2.dds

[ResourceYixuancoatADiffuse3]
filename = YixuancoatADiffuse3.dds



[ResourceYixuancoatALightMap]
filename = YixuancoatALightMap.dds

[ResourceYixuancoatALightMap2]
filename = YixuancoatALightMap2.dds

[ResourceYixuancoatALightMap3]
filename = YixuancoatALightMap3.dds



[ResourceYixuancoatAMaterialMap]
filename = YixuancoatAMaterialMap.dds

[ResourceYixuancoatAMaterialMap2]
filename = YixuancoatAMaterialMap2.dds

[ResourceYixuancoatAMaterialMap3]
filename = YixuancoatAMaterialMap3.dds


[ResourceYixuancoatANormalMap]
filename = YixuancoatANormalMap.jpg


[ResourceCreditInfo]
type = Buffer
data = "Created by Zentrik_BIT"


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