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

[Constants]
global $active = 0
global persist $neck = 0
global persist $shoe = 0
global persist $skirt = 0
global persist $jacket = 0
global persist $cloth = 0

[KeyNeck]
condition = $active == 1
key = NO_ALT NO_SHIFT VK_UP
type = cycle
$neck = 0,1

[KeyShoe]
condition = $active == 1
key = NO_ALT NO_SHIFT VK_DOWN
type = cycle
$shoe = 0,1,2

[KeySkirt]
condition = $active == 1
key = ALT NO_SHIFT VK_DOWN
type = cycle
$skirt = 0,1,2,3

[KeyJacket]
condition = $active == 1
key = NO_ALT NO_SHIFT VK_RIGHT
type = cycle
$jacket = 0,1,2,3

[KeyCloth]
condition = $active == 1
key = NO_ALT NO_SHIFT VK_LEFT
type = cycle
$cloth = 0,1

[Present]
post $active = 0

; Belle

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

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

[TextureOverrideBelleBodyBlend]
hash = 3ee01622
handling = skip
vb2 = ResourceBelleBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceBelleBodyPosition
	draw = 17428, 0
endif
$active = 1
 
[TextureOverrideBelleBodyTexcoord]
hash = 40a897ab
vb1 = ResourceBelleBodyTexcoord

[TextureOverrideBelleBodyVertexLimitRaise]
hash = bea2b94e
override_vertex_count = 17428
override_byte_stride = 40

[TextureOverrideBelleLegBlend]
hash = b4cd8580
handling = skip
vb2 = ResourceBelleLegBlend
if DRAW_TYPE == 1
	vb0 = ResourceBelleLegPosition
	draw = 14608, 0
endif

[TextureOverrideBelleLegTexcoord]
hash = e317bb99
vb1 = ResourceBelleLegTexcoord

[TextureOverrideBelleLegVertexLimitRaise]
hash = 7217e342
override_vertex_count = 14608
override_byte_stride = 40

[TextureOverrideBelleBodyIB]
hash = c2b4ce3a
handling = skip

[TextureOverrideBelleBodyA]
hash = c2b4ce3a
match_first_index = 0
ib = ResourceBelleBodyAIB
Resource\ZZMI\Diffuse = ref ResourceBelleBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceBelleBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceBelleBodyAMaterialMap
run = CommandList\ZZMI\SetTextures
$active = 1

if $skirt == 3
	; Bangboo (236)
	drawindexed = 978, 0, 0
	; BangbooBelt (280)
	drawindexed = 738, 978, 0
endif



if $jacket == 2 || $jacket == 3
	; Jacket (2591)
	drawindexed = 10047, 1818, 0
	; Chestbadge (24)
	drawindexed = 102, 1716, 0
endif

if $cloth == 0
	; NDTorso (9569)
	drawindexed = 51105, 11865, 0
endif

if $cloth == 1
	; ND_ShirtOn (3427)
	drawindexed = 17109, 62970, 0
endif

if $neck == 1
	; Necklace (202)
	drawindexed = 558, 80079, 0
endif

if $skirt == 1 || $skirt == 2 || $skirt == 3
	; SkirtWithBelt (743)
	drawindexed = 3063, 80637, 0
endif

if $jacket == 1 || $jacket == 3
	; WristRing (342)
	drawindexed = 936, 83700, 0
 
endif

[TextureOverrideBelleBodyB]
hash = c2b4ce3a
match_first_index = 31275
ib = ResourceBelleBodyBIB
Resource\ZZMI\Diffuse = ref ResourceBelleBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceBelleBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceBelleBodyAMaterialMap
run = CommandList\ZZMI\SetTextures

; EarAcc (14)
drawindexed = 36, 0, 0

[TextureOverrideBelleLegIB]
hash = e6afd8d1
handling = skip

[TextureOverrideBelleLegA]
hash = e6afd8d1
match_first_index = 0
ib = ResourceBelleLegAIB
Resource\ZZMI\Diffuse = ref ResourceBelleBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceBelleBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceBelleBodyAMaterialMap
run = CommandList\ZZMI\SetTextures

if $skirt == 2 || $skirt == 3
	; Acc (1186)
	drawindexed = 3660, 0, 0
endif

; NDLegs (4037)
drawindexed = 20100, 3660, 0

if $shoe == 0
	; S_Barefoot (3190)
	drawindexed = 15270, 23760, 0
endif

if $shoe == 1
	; S_Barefoot.Tiptoe (3190)
	drawindexed = 15270, 39030, 0
endif

if $shoe == 2
	; S_Shoes (3005)
	drawindexed = 12324, 54300, 0
endif

[ResourceBelleBodyPosition]
type = Buffer
stride = 40
filename = BelleBodyPosition.buf

[ResourceBelleBodyBlend]
type = Buffer
stride = 32
filename = BelleBodyBlend.buf

[ResourceBelleBodyTexcoord]
type = Buffer
stride = 24
filename = BelleBodyTexcoord.buf

[ResourceBelleBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleBodyA.ib

[ResourceBelleBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleBodyB.ib

[ResourceBelleLegPosition]
type = Buffer
stride = 40
filename = BelleLegPosition.buf

[ResourceBelleLegBlend]
type = Buffer
stride = 32
filename = BelleLegBlend.buf

[ResourceBelleLegTexcoord]
type = Buffer
stride = 20
filename = BelleLegTexcoord.buf

[ResourceBelleLegAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleLegA.ib

[ResourceBelleBodyADiffuse]
filename = BelleBodyADiffuse.dds

[ResourceBelleBodyANormalMap]
filename = BelleBodyANormalMap.jpg

[ResourceBelleBodyALightMap]
filename = BelleBodyALightMap.dds

[ResourceBelleBodyAMaterialMap]
filename = BelleBodyAMaterialMap.dds

[ResourceBelleBodyBDiffuse]
filename = BelleBodyBDiffuse.dds

[ResourceBelleBodyBLightMap]
filename = BelleBodyBLightMap.dds

[ResourceBelleBodyBMaterialMap]
filename = BelleBodyBMaterialMap.dds

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