; Yidhari

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

[Constants]
global persist $swapvar = 0
global $ActiveCharacter = 0

[KeySwap]
condition = $ActiveCharacter == 1
key = h
type = cycle
$swapvar = 0,1,2,3,4

[Present]
post $ActiveCharacter = 0

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

[TextureOverrideYidhariBodyBlend]
hash = eff05950
handling = skip
if $swapvar == 0
vb2 = ResourceYidhariBodyBlend.0
if DRAW_TYPE == 1
	vb0 = ResourceYidhariBodyPosition.0
	draw = 37991, 0
endif
else if $swapvar == 1
vb2 = ResourceYidhariBodyBlend.1
if DRAW_TYPE == 1
	vb0 = ResourceYidhariBodyPosition.1
	draw = 37991, 0
endif
else if $swapvar == 2
vb2 = ResourceYidhariBodyBlend.2
if DRAW_TYPE == 1
	vb0 = ResourceYidhariBodyPosition.2
	draw = 37991, 0
endif
else if $swapvar == 3
vb2 = ResourceYidhariBodyBlend.3
if DRAW_TYPE == 1
	vb0 = ResourceYidhariBodyPosition.3
	draw = 37991, 0
endif
else if $swapvar == 4
vb2 = ResourceYidhariBodyBlend.4
if DRAW_TYPE == 1
	vb0 = ResourceYidhariBodyPosition.4
	draw = 37991, 0
endif
endif
$ActiveCharacter = 1


[TextureOverrideYidhariBodyTexcoord]
hash = 2abc67fb
if $swapvar == 0
vb1 = ResourceYidhariBodyTexcoord.0
else if $swapvar == 1
vb1 = ResourceYidhariBodyTexcoord.1
else if $swapvar == 2
vb1 = ResourceYidhariBodyTexcoord.2
else if $swapvar == 3
vb1 = ResourceYidhariBodyTexcoord.3
else if $swapvar == 4
vb1 = ResourceYidhariBodyTexcoord.4
endif


[TextureOverrideYidhariBodyVertexLimitRaise]
hash = 471aa92a
override_vertex_count = 37991
override_byte_stride = 40


[TextureOverrideYidhariBodyIB]
hash = 12251f42
handling = skip

[TextureOverrideYidhariBodyA]
hash = 12251f42
match_first_index = 0
if $swapvar == 0
ib = ResourceYidhariBodyAIB.0
else if $swapvar == 1
ib = ResourceYidhariBodyAIB.1
else if $swapvar == 2
ib = ResourceYidhariBodyAIB.2
else if $swapvar == 3
ib = ResourceYidhariBodyAIB.3
else if $swapvar == 4
ib = ResourceYidhariBodyAIB.4
endif
Resource\ZZMI\Diffuse = ref ResourceYidhariBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceYidhariBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceYidhariBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceYidhariBodyAMaterialMap
run = CommandList\ZZMI\SetTextures
; YidhariBodyA-vb0=74f07fc5.txt.012 (34728)
drawindexed = auto


[TextureOverrideYidhariGadgetA]
hash = 1c164f7f
match_first_index = 0
if $swapvar == 0

else if $swapvar == 1

else if $swapvar == 2

else if $swapvar == 3

else if $swapvar == 4
ib = null
endif


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


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

[ResourceYidhariBodyPosition.0]
type = Buffer
stride = 40
filename = Full/YidhariBodyPosition.buf

[ResourceYidhariBodyBlend.0]
type = Buffer
stride = 32
filename = Full/YidhariBodyBlend.buf

[ResourceYidhariBodyTexcoord.0]
type = Buffer
stride = 20
filename = Full/YidhariBodyTexcoord.buf

[ResourceYidhariBodyAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Full/YidhariBodyA.ib



[ResourceYidhariBodyPosition.1]
type = Buffer
stride = 40
filename = Bot/YidhariBodyPosition.buf

[ResourceYidhariBodyBlend.1]
type = Buffer
stride = 32
filename = Bot/YidhariBodyBlend.buf

[ResourceYidhariBodyTexcoord.1]
type = Buffer
stride = 20
filename = Bot/YidhariBodyTexcoord.buf

[ResourceYidhariBodyAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Bot/YidhariBodyA.ib


[ResourceYidhariBodyPosition.2]
type = Buffer
stride = 40
filename = Top/YidhariBodyPosition.buf

[ResourceYidhariBodyBlend.2]
type = Buffer
stride = 32
filename = Top/YidhariBodyBlend.buf

[ResourceYidhariBodyTexcoord.2]
type = Buffer
stride = 20
filename = Top/YidhariBodyTexcoord.buf

[ResourceYidhariBodyAIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Top/YidhariBodyA.ib



[ResourceYidhariBodyPosition.3]
type = Buffer
stride = 40
filename = Half/YidhariBodyPosition.buf

[ResourceYidhariBodyBlend.3]
type = Buffer
stride = 32
filename = Half/YidhariBodyBlend.buf

[ResourceYidhariBodyTexcoord.3]
type = Buffer
stride = 20
filename = Half/YidhariBodyTexcoord.buf

[ResourceYidhariBodyAIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Half/YidhariBodyA.ib




[ResourceYidhariBodyPosition.4]
type = Buffer
stride = 40
filename = Nude/YidhariBodyPosition.buf

[ResourceYidhariBodyBlend.4]
type = Buffer
stride = 32
filename = Nude/YidhariBodyBlend.buf

[ResourceYidhariBodyTexcoord.4]
type = Buffer
stride = 20
filename = Nude/YidhariBodyTexcoord.buf

[ResourceYidhariBodyAIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Nude/YidhariBodyA.ib

[ResourceYidhariBodyADiffuse]
filename = YidhariBodyADiffuse.dds

[ResourceYidhariBodyANormalMap]
filename = YidhariBodyANormalMap.jpg

[ResourceYidhariBodyALightMap]
filename = YidhariBodyALightMap.dds

[ResourceYidhariBodyAMaterialMap]
filename = YidhariBodyAMaterialMap.dds


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