; Citlali


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

[Constants]
global persist $top = 0
global persist $skirt = 0
global persist $dress = 0
global persist $arm = 0
global persist $socks = 0
global persist $panty = 0
global persist $bra = 0
global persist $crown = 0
global persist $neck = 0
global $active

[Keydress]
condition = $active == 1
key = -
type = cycle
$dress = 0,1

[Keytop]
condition = $active == 1
key = VK_NUMPAD9
type = cycle
$top = 0,1

[Keyskirt]
condition = $active == 1
key = VK_NUMPAD8
type = cycle
$skirt = 0,1

[Keyarm]
condition = $active == 1
key = VK_NUMPAD7
type = cycle
$arm = 0,1

[Keypanty]
condition = $active == 1
key = VK_NUMPAD6
type = cycle
$panty = 0,1

[Keybra]
condition = $active == 1
key = VK_NUMPAD5
type = cycle
$bra = 0,1

[Keysocks]
condition = $active == 1
key = VK_NUMPAD4
type = cycle
$socks = 0,1

[Keyneck]
condition = $active == 1
key = VK_NUMPAD3
type = cycle
$neck = 0,1

[Keycrown]
condition = $active == 1
key = VK_NUMPAD2
type = cycle
$crown = 0,1

[Present]
post $active = 0

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

[TextureOverrideCitlaliPosition]
hash = 362dc30c
vb0 = ResourceCitlaliPosition
$active = 1

[TextureOverrideCitlaliBlend]
hash = 3e939d2e
vb1 = ResourceCitlaliBlend
handling = skip
draw = 121682,0 

[TextureOverrideCitlaliTexcoord]
hash = 3421fed9
vb1 = ResourceCitlaliTexcoord

[TextureOverrideCitlaliVertexLimitRaise]
hash = eec92f64
override_vertex_count = 121682
override_byte_stride = 92

[TextureOverrideCitlaliIB]
hash = f81f893c
handling = skip

[TextureOverrideCitlaliHead]
hash = f81f893c
match_first_index = 0
ib = ResourceCitlaliHeadIB
ps-t0 = ResourceCitlaliHeadNormalMap
ps-t1 = ResourceCitlaliHeadDiffuse
ps-t2 = ResourceCitlaliHeadLightMap
run = CommandList\global\ORFix\ORFix
; CitlaliHead
	if $dress == 1 && $bra == 0
	; bra (3744)
	drawindexed = 16572, 0, 0
endif
	; hair (5710)
	drawindexed = 21039, 16572, 0
	if $dress == 1 && $panty == 0
	; panty (571)
	drawindexed = 2394, 37611, 0
endif
	if $dress == 1 && $socks == 0
	; socks (2986)
	drawindexed = 16524, 40005, 0
endif

[TextureOverrideCitlaliBody]
hash = f81f893c
match_first_index = 27393
ib = ResourceCitlaliBodyIB
ps-t0 = ResourceCitlaliBodyNormalMap
ps-t1 = ResourceCitlaliBodyDiffuse
ps-t2 = ResourceCitlaliBodyLightMap
run = CommandList\global\ORFix\ORFix
; CitlaliBody
	if $dress == 1 && $arm == 0 && $socks == 0
	; base_dress2 (12725)
	drawindexed = 70086, 0, 0
endif
	if $dress == 1 && $arm == 1 && $socks == 0
	; base_noarm (19666)
	drawindexed = 106362, 70086, 0
endif
	if $dress == 1 && $arm == 1 && $socks == 1
	; base_noarmsocks (23743)
	drawindexed = 128610, 176448, 0
endif
	if $dress == 1 && $arm == 0 && $socks == 1
	; base_nosocks (16804)
	drawindexed = 92124, 305058, 0
endif
	if $crown == 0
	; crown (1340)
	drawindexed = 3528, 397182, 0
endif
	if $dress == 0
	; dress (15274)
	drawindexed = 51864, 400710, 0
endif
	if $dress == 1 && $top == 0
	; dress2 (1182)
	drawindexed = 3894, 452574, 0
endif
	if $dress == 1 && $arm == 0
	; dress2_arm (4769)
	drawindexed = 15396, 456468, 0
	; ribbon (480)
	drawindexed = 1680, 505308, 0
endif
	if $dress == 1 && $skirt == 0
	; dress2_back (5236)
	drawindexed = 17508, 471864, 0
endif
	if $dress == 1 && $neck == 0
	; dress2_neck (1173)
	drawindexed = 3402, 489372, 0
endif
	; eye (255)
	drawindexed = 864, 492774, 0
	; hairac (78)
	drawindexed = 132, 493638, 0
	; hairac2 (332)
	drawindexed = 864, 493770, 0
	if $dress == 0
	; leg (2900)
	drawindexed = 9480, 494634, 0
endif
	if $dress == 0
	; neck (282)
	drawindexed = 1194, 504114, 0
endif
	if $dress == 0
	; ribbon (480)
	drawindexed = 1680, 505308, 0
endif
	if $socks == 0
	; sh1 (1218)
	drawindexed = 3558, 506988, 0
	; sh2 (1214)
	drawindexed = 3558, 510546, 0
endif

[TextureOverrideCitlaliFaceHeadDiffuse]
hash = 9fb78572
this = ResourceCitlaliFaceHeadDiffuse


[TextureOverrideCitlaliNatlanFxHeadDiffuse]
hash = 601a55c8
this = ResourceCitlaliNatlanFxHeadDiffuse



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

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

[ResourceCitlaliPosition]
type = Buffer
stride = 40
filename = CitlaliPosition.buf

[ResourceCitlaliBlend]
type = Buffer
stride = 32
filename = CitlaliBlend.buf

[ResourceCitlaliTexcoord]
type = Buffer
stride = 20
filename = CitlaliTexcoord.buf

[ResourceCitlaliHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CitlaliHead.ib

[ResourceCitlaliBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CitlaliBody.ib

[ResourceCitlaliHeadNormalMap]
filename = CitlaliHeadNormalMap.dds

[ResourceCitlaliHeadDiffuse]
filename = CitlaliHeadDiffuse.dds

[ResourceCitlaliHeadLightMap]
filename = CitlaliHeadLightMap.dds

[ResourceCitlaliBodyNormalMap]
filename = CitlaliBodyNormalMap.dds

[ResourceCitlaliBodyDiffuse]
filename = CitlaliBodyDiffuse.dds

[ResourceCitlaliBodyLightMap]
filename = CitlaliBodyLightMap.dds

[ResourceCitlaliFaceHeadDiffuse]
filename = CitlaliFaceHeadDiffuse.dds

[ResourceCitlaliNatlanFxHeadDiffuse]
filename = CitlaliNatlanFxHeadDiffuse.dds



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