; Arlecchino

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

[Constants]
global persist $dress1 = 0
global persist $head1 = 0
global persist $top1 = 0
global persist $skt1 = 0
global persist $makeup = 0
global $active

[KeySwapdress1]
key = NO_ALT VK_RIGHT
condition = $active == 1
type = cycle
$dress1 = 0,1

[KeySwaphead1]
key = NO_ALT VK_UP
condition = $active == 1
type = cycle
$head1 = 0,1,2,3,4,5,6,7,8,9,10

[KeySwaptop1]
key = NO_ALT VK_LEFT
condition = $active == 1
type = cycle
$top1 = 0,1,2

[KeySwapskt1]
key = NO_ALT VK_DOWN
condition = $active == 1
type = cycle
$skt1 = 0,1,2,3

[KeySwapmakeup]
key = /
condition = $active == 1
type = cycle
$makeup = 0,1,2,3

[Present]
post $active = 0

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

[TextureOverrideArlecchinoPosition]
hash = 6895f405
vb0 = ResourceArlecchinoPosition
$active = 1

[TextureOverrideArlecchinoBlend]
hash = e211de60
handling = skip
vb1 = ResourceArlecchinoBlend
draw = 208709, 0

[TextureOverrideArlecchinoTexcoord]
hash = 8b17a419
vb1 = ResourceArlecchinoTexcoord

[TextureOverrideArlecchinoVertexLimitRaise]
hash = 44e3487a
override_vertex_count = 208709
override_byte_stride = 40

[TextureOverrideArlecchinoIB]
hash = e811d2a1
handling = skip

[TextureOverrideArlecchinoHead]
hash = e811d2a1
match_first_index = 0
ib = ResourceArlecchinoHeadIB
ps-t0 = ResourceArlecchinoHeadNormalMap
ps-t1 = ResourceArlecchinoHeadDiffuse
ps-t2 = ResourceArlecchinoHeadLightMap
run = CommandList\global\ORFix\ORFix
; Head-vb0=6895f405.txt (2499)
drawindexed = 11910, 0, 0
if $head1 == 0
; head1 (4199)
drawindexed = 14895, 11910, 0
else if $head1 == 1
ps-t0 = ResourceArlecchinoHeadNormalMap2
ps-t1 = ResourceArlecchinoHeadDiffuse2
ps-t2 = ResourceArlecchinoHeadLightMap2
run = CommandList\global\ORFix\ORFix
; head2 (4955)
drawindexed = 17631, 91215, 0
else if $head1 == 2
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse3
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head3_Rio (13060)
drawindexed = 59352, 108846, 0
else if $head1 == 3
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse4
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head4_kitty (6045)
drawindexed = 21687, 168198, 0
else if $head1 == 4
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse5
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head5_Sonnet  (5048)
drawindexed = 19920, 189885, 0
else if $head1 == 5
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse6
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head6_Nerissa Ravencroft (24798)
drawindexed = 106407, 209805, 0
else if $head1 == 6
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse7
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head7_Macqiato  (6517)
drawindexed = 22947, 316212, 0
else if $head1 == 7
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse8
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head8_Macqiato  (7710)
drawindexed = 28986, 339159, 0
else if $head1 == 8
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse9
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head9_Changli (24204)
drawindexed = 76914, 368145, 0
endif
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse10
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
if $head1 == 9
; head10_Maid_A_Hair (4342)
drawindexed = 15345, 26805, 0
; head10_Maid_A_eyes (122)
drawindexed = 360, 42150, 0
; head10_Maid_Dress_HairbandA (1966)
drawindexed = 7368, 42510, 0
; head10_Maid_PigtailA (579)
drawindexed = 2343, 49878, 0
endif
if $head1 == 10
ps-t0 = ResourceArlecchinoHeadNormalMapUniversal
ps-t1 = ResourceArlecchinoHeadDiffuse11
ps-t2 = ResourceArlecchinoHeadLightMapUniversal
run = CommandList\global\ORFix\ORFix
; head11_Mori Calliope (11212)
drawindexed = 38994, 52221, 0
endif


[TextureOverrideArlecchinoBody]
hash = e811d2a1
match_first_index = 40179
ib = ResourceArlecchinoBodyIB
ps-t0 = ResourceArlecchinoBodyNormalMap
ps-t1 = ResourceArlecchinoBodyDiffuse
ps-t2 = ResourceArlecchinoBodyLightMap
run = CommandList\global\ORFix\ORFix
; Body-vb0=6895f405.txt (15792)
drawindexed = 80148, 0, 0
if $skt1 == 2
; pan1 (2830)
drawindexed = 9456, 87828, 0
endif
if $skt1 == 0
; skt1 (17020)
drawindexed = 69891, 97284, 0
else if $skt1 == 1
; skt2 (14190)
drawindexed = 60435, 167175, 0
endif
if $top1 == 0
; top1 (11661)
drawindexed = 51918, 227610, 0
else if $top1 == 1
ps-t0 = ResourceArlecchinoBodyNormalMap2
ps-t1 = ResourceArlecchinoBodyDiffuse2
ps-t2 = ResourceArlecchinoBodyLightMap2
run = CommandList\global\ORFix\ORFix
; top2 (12209)
drawindexed = 43611, 279528, 0
else if $top1 == 2
; nip1 (1284)
drawindexed = 7680, 80148, 0
endif

[TextureOverrideArlecchinoDress]
hash = e811d2a1
match_first_index = 74412
ib = ResourceArlecchinoDressIB
ps-t0 = ResourceArlecchinoDressDiffuse
ps-t1 = ResourceArlecchinoDressLightMap
run = CommandList\global\ORFix\NNFix 
if $dress1 == 0
; dress1 (16467)
drawindexed = 65766, 0, 0
endif

[TextureOverrideArlecchinoFaceHeadDiffuse]
hash = a44625da
if $makeup == 0
this = ResourceArlecchinoFaceHeadDiffuse
else if $makeup == 1
this = ResourceArlecchinoFaceHeadDiffuse2
else if $makeup == 2
this = ResourceArlecchinoFaceHeadDiffuse3
else if $makeup == 3
this = ResourceArlecchinoFaceHeadDiffuse4
endif

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


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

[ResourceArlecchinoPosition]
type = Buffer
stride = 40
filename = ArlecchinoPosition.buf

[ResourceArlecchinoBlend]
type = Buffer
stride = 32
filename = ArlecchinoBlend.buf

[ResourceArlecchinoTexcoord]
type = Buffer
stride = 20
filename = ArlecchinoTexcoord.buf

[ResourceArlecchinoHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoHead.ib

[ResourceArlecchinoBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoBody.ib

[ResourceArlecchinoDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoDress.ib

[ResourceArlecchinoHeadNormalMap]
filename = ArlecchinoHeadNormalMap.dds

[ResourceArlecchinoHeadDiffuse]
filename = ArlecchinoHeadDiffuse.dds

[ResourceArlecchinoHeadLightMap]
filename = ArlecchinoHeadLightMap.dds

[ResourceArlecchinoHeadNormalMap2]
filename = ArlecchinoHeadNormalMap2.dds

[ResourceArlecchinoHeadDiffuse2]
filename = ArlecchinoHeadDiffuse2.dds

[ResourceArlecchinoHeadLightMap2]
filename = ArlecchinoHeadLightMap2.dds

[ResourceArlecchinoHeadDiffuse3]
filename = ArlecchinoHeadDiffuse3.dds

[ResourceArlecchinoHeadDiffuse4]
filename = ArlecchinoHeadDiffuse4.dds

[ResourceArlecchinoHeadDiffuse5]
filename = ArlecchinoHeadDiffuse5.dds

[ResourceArlecchinoHeadDiffuse6]
filename = ArlecchinoHeadDiffuse6.dds

[ResourceArlecchinoHeadDiffuse7]
filename = ArlecchinoHeadDiffuse7.dds

[ResourceArlecchinoHeadDiffuse8]
filename = ArlecchinoHeadDiffuse8.dds

[ResourceArlecchinoHeadDiffuse9]
filename = ArlecchinoHeadDiffuse9.dds

[ResourceArlecchinoHeadDiffuse10]
filename = ArlecchinoHeadDiffuse10.dds

[ResourceArlecchinoHeadDiffuse11]
filename = ArlecchinoHeadDiffuse11.dds

[ResourceArlecchinoHeadLightMapUniversal]
filename = ArlecchinoHeadLightMapUniversal.dds

[ResourceArlecchinoHeadNormalMapUniversal]
filename = ArlecchinoHeadNormalMapUniversal.dds

[ResourceArlecchinoBodyNormalMap]
filename = ArlecchinoBodyNormalMap.dds

[ResourceArlecchinoBodyDiffuse]
filename = ArlecchinoBodyDiffuse.dds

[ResourceArlecchinoBodyLightMap]
filename = ArlecchinoBodyLightMap.dds

[ResourceArlecchinoBodyNormalMap2]
filename = ArlecchinoBodyNormalMap2.dds

[ResourceArlecchinoBodyDiffuse2]
filename = ArlecchinoBodyDiffuse2.dds

[ResourceArlecchinoBodyLightMap2]
filename = ArlecchinoBodyLightMap2.dds

[ResourceArlecchinoDressDiffuse]
filename = ArlecchinoDressDiffuse.dds

[ResourceArlecchinoDressLightMap]
filename = ArlecchinoDressLightMap.dds

[ResourceArlecchinoFaceHeadDiffuse]
filename = ArlecchinoFaceHeadDiffuse.dds

[ResourceArlecchinoFaceHeadDiffuse2]
filename = ArlecchinoFaceHeadDiffuse2.dds

[ResourceArlecchinoFaceHeadDiffuse3]
filename = ArlecchinoFaceHeadDiffuse3.dds

[ResourceArlecchinoFaceHeadDiffuse4]
filename = ArlecchinoFaceHeadDiffuse4.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
