; Corin

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

[Constants]
global $active = 0
global persist $main = 0
global persist $bear = 0
global persist $legs = 0
global persist $panties = 0
global persist $bandage = 0
global persist $arms = 0
global persist $apron = 0
global $creditinfo = 0

[KeySwap1]
condition = $active == 1
key = VK_DOWN
type = cycle
$Legs = 0,1,2

[KeySwap2]
condition = $active == 1
key = 0
type = cycle
$arms = 0,1

[KeySwap3]
condition = $active == 1
key = 9
type = cycle
$bear = 0,1

[KeySwap4]
condition = $active == 1
key = 8
type = cycle
$panties = 0,1

[KeySwap5]
condition = $active == 1
key = 7
type = cycle
$bandage = 0,1

[KeySwap6]
condition = $active == 1
key = VK_UP
type = cycle
$apron = 0,1

[KeySwap7]
condition = $active == 1
key = VK_RIGHT
back = VK_LEFT
type = cycle
$main = 0,1,2,3,4

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideCorinHairBlend]
hash = 5fa50113
handling = skip
vb2 = ResourceCorinHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceCorinHairPosition
	draw = 2413, 0

	$active = 1
endif

[TextureOverrideCorinHairTexcoord]
hash = abc95b03
vb1 = ResourceCorinHairTexcoord

[TextureOverrideCorinHairVertexLimitRaise]
hash = d345e472
override_vertex_count = 2413
override_byte_stride = 40

[TextureOverrideCorinBodyBlend]
hash = aa71e514
handling = skip
vb2 = ResourceCorinBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceCorinBodyPosition
	draw = 75961, 0

	$active = 1
endif

[TextureOverrideCorinBodyTexcoord]
hash = 4c6b7bda
vb1 = ResourceCorinBodyTexcoord

[TextureOverrideCorinBodyVertexLimitRaise]
hash = 2eb162ef
override_vertex_count = 75961
override_byte_stride = 40

[TextureOverrideCorinBearBlend]
hash = 6ffea6f6
handling = skip
vb2 = ResourceCorinBearBlend
if DRAW_TYPE == 1
	vb0 = ResourceCorinBearPosition
	draw = 1720, 0

	$active = 1
endif

[TextureOverrideCorinBearTexcoord]
hash = 21987873
vb1 = ResourceCorinBearTexcoord

[TextureOverrideCorinBearVertexLimitRaise]
hash = 1a7ee1b5
override_vertex_count = 1720
override_byte_stride = 40

[TextureOverrideCorinHairIB]
hash = 5a839fb2
handling = skip

[TextureOverrideCorinHairA]
hash = 5a839fb2
match_first_index = 0
ib = ResourceCorinHairAIB
Resource\ZZMI\Diffuse = ref ResourceCorinHairADiffuse
Resource\ZZMI\NormalMap = ref ResourceCorinHairANormalMap
Resource\ZZMI\LightMap = ref ResourceCorinHairALightMap
Resource\ZZMI\MaterialMap = ref ResourceCorinHairAMaterialMap
run = CommandList\ZZMI\SetTextures
; CorinHairA-vb0=7e7eee0d.txt (2413)
drawindexed = 10329, 0, 0

[TextureOverrideCorinBodyIB]
hash = e74620b5
handling = skip

[TextureOverrideCorinBodyA]
hash = e74620b5
match_first_index = 0
ib = ResourceCorinBodyAIB
Resource\ZZMI\Diffuse = ref ResourceCorinBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceCorinBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceCorinBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceCorinBodyAMaterialMap
run = CommandList\ZZMI\SetTextures
; CorinBodyA-vb0=5dc40184.txt (12647)
drawindexed = 68988, 0, 0
; CorinBodyA
; AccArms (774)
if $arms == 0
drawindexed = 1884, 68988, 0
endif

; Apron (2411)
if $apron == 0
drawindexed = 5703, 70872, 0
endif

; ApronChest (7144)
if $main == 0
drawindexed = 40692, 76575, 0
else if $main == 1
else if $main == 2
else if $main == 3
else if $main == 4
endif

; Bandage (59)
if $bandage == 0
drawindexed = 177, 117267, 0
endif

; BodyUP (10311)
if $main == 0
else if $main == 1
else if $main == 2
drawindexed = 55680, 117444, 0
else if $main == 3
else if $main == 4
drawindexed = 55680, 117444, 0
endif

; Chest (9558)
if $main == 0
else if $main == 1
drawindexed = 55650, 173124, 0
else if $main == 2
drawindexed = 55650, 173124, 0
else if $main == 3
drawindexed = 55650, 173124, 0
else if $main == 4
drawindexed = 55650, 173124, 0
endif

; DressUP (8950)
if $main == 0
drawindexed = 43635, 228774, 0
else if $main == 1
drawindexed = 43635, 228774, 0
else if $main == 2
else if $main == 3
drawindexed = 43635, 228774, 0
else if $main == 4
endif

; Feet (11028)
if $legs == 0
else if $legs == 1
else if $legs == 2
drawindexed = 61032, 272409, 0
endif

; Legs (5238)
if $legs == 0
else if $legs == 1
drawindexed = 30276, 333441, 0
else if $legs == 2
drawindexed = 30276, 333441, 0
endif

; Panties (633)
if $panties == 0
drawindexed = 2508, 363717, 0
endif

; Shoes (950)
if $legs == 0
drawindexed = 2832, 366225, 0
else if $legs == 1
drawindexed = 2832, 366225, 0
else if $legs == 2
endif

; Socks (5344)
if $legs == 0
drawindexed = 30276, 369057, 0
else if $legs == 1
else if $legs == 2
endif

; Suit (914)
if $main == 0
drawindexed = 4632, 399333, 0
else if $Main == 1
drawindexed = 4632, 399333, 0
else if $Main == 2
drawindexed = 4632, 399333, 0
else if $Main == 3
else if $Main == 4
endif


[TextureOverrideCorinBearIB]
hash = 5f803336
handling = skip

[TextureOverrideCorinBearA]
hash = 5f803336
match_first_index = 0
ib = ResourceCorinBearAIB
Resource\ZZMI\Diffuse = ref ResourceCorinBearADiffuse
Resource\ZZMI\NormalMap = ref ResourceCorinBearANormalMap
Resource\ZZMI\LightMap = ref ResourceCorinBearALightMap
Resource\ZZMI\MaterialMap = ref ResourceCorinBearAMaterialMap
run = CommandList\ZZMI\SetTextures
; CorinBearA-vb0=4e1c9e44.txt (3)
drawindexed = 3, 0, 0
; CorinBearA
; Bear (1717)
if $bear == 0
drawindexed = 5823, 3, 0
endif

[TextureOverrideCorinFaceADiffuse]
hash = 6d662824
this = ResourceCorinFaceADiffuse


; 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 + 7.0
    $creditinfo = 1
endif

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

[ResourceCorinHairPosition]
type = Buffer
stride = 40
filename = CorinHairPosition.buf

[ResourceCorinHairBlend]
type = Buffer
stride = 32
filename = CorinHairBlend.buf

[ResourceCorinHairTexcoord]
type = Buffer
stride = 20
filename = CorinHairTexcoord.buf

[ResourceCorinHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CorinHairA.ib

[ResourceCorinBodyPosition]
type = Buffer
stride = 40
filename = CorinBodyPosition.buf

[ResourceCorinBodyBlend]
type = Buffer
stride = 32
filename = CorinBodyBlend.buf

[ResourceCorinBodyTexcoord]
type = Buffer
stride = 20
filename = CorinBodyTexcoord.buf

[ResourceCorinBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CorinBodyA.ib

[ResourceCorinBearPosition]
type = Buffer
stride = 40
filename = CorinBearPosition.buf

[ResourceCorinBearBlend]
type = Buffer
stride = 32
filename = CorinBearBlend.buf

[ResourceCorinBearTexcoord]
type = Buffer
stride = 20
filename = CorinBearTexcoord.buf

[ResourceCorinBearAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CorinBearA.ib

[ResourceCorinHairADiffuse]
filename = CorinHairADiffuse.dds

[ResourceCorinHairANormalMap]
filename = CorinHairANormalMap.dds

[ResourceCorinHairALightMap]
filename = CorinHairALightMap.dds

[ResourceCorinHairAMaterialMap]
filename = CorinHairAMaterialMap.dds

[ResourceCorinBodyADiffuse]
filename = CorinBodyADiffuse.dds

[ResourceCorinBodyANormalMap]
filename = CorinBodyANormalMap.dds

[ResourceCorinBodyALightMap]
filename = CorinBodyALightMap.dds

[ResourceCorinBodyAMaterialMap]
filename = CorinBodyAMaterialMap.dds

[ResourceCorinBearADiffuse]
filename = CorinBearADiffuse.dds

[ResourceCorinBearANormalMap]
filename = CorinBearANormalMap.dds

[ResourceCorinBearALightMap]
filename = CorinBearALightMap.dds

[ResourceCorinBearAMaterialMap]
filename = CorinBearAMaterialMap.dds

[ResourceCorinFaceADiffuse]
filename = CorinFaceADiffuse.dds

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

; .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
