; Nicole

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

[Constants]
global persist $swapvarCorsetClosed = 0
global persist $swapvardown = 0
global persist $swapvarSleeves = 0
global persist $swapvarLeg = 0
global persist $swapvarJacket = 0
global persist $swapvarAmillion = 0
global persist $swapvarHood = 0
global persist $swapvarhair = 0
global persist $swapvarDec = 0
global persist $swapvarHorn = 0
global $active = 0
global $creditinfo = 0

[KeySwapCorsetClosed]
condition = $active == 1
key = no_alt VK_DOWN
type = cycle
$swapvarCorsetClosed = 0,1,2,3,4,5

[KeySwapDownNA]
condition = $active == 1
key = alt VK_DOWN
type = cycle
$swapvardown = 0,1,2

[KeySwapSleeves]
condition = $active == 1
key = no_alt VK_LEFT
type = cycle
$swapvarSleeves = 0,1,2,3,4,5

[KeySwapLeg]
condition = $active == 1
key = no_alt VK_RIGHT
type = cycle
$swapvarLeg = 0,1


[KeySwapHair]
condition = $active == 1
key = no_alt no_ctrl VK_UP
type = cycle
$swapvarhair = 0,1,2,3

[KeySwapDown]
condition = $active == 1
key = no_alt ctrl VK_UP
type = cycle
$swapvarHood = 0,1,2

[KeySwapDec]
condition = $active == 1
key = no_ctrl alt VK_UP
type = cycle
$swapvarDec = 0,1,2

[KeySwapAmillion]
condition = $active == 1
key = alt VK_RIGHT
type = cycle
$swapvarAmillion = 0,1,2
[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideNicoleHairBlend]
hash = 6f931ca7
handling = skip
vb2 = ResourceNicoleHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceNicoleHairPosition
	draw = 7560,0
endif
$active = 1

[TextureOverrideNicoleHairTexcoord]
hash = e04f4893
vb1 = ResourceNicoleHairTexcoord

[TextureOverrideNicoleHairVertexLimitRaise]
hash = d9b8d61a
override_vertex_count = 7560
override_byte_stride = 92

[TextureOverrideNicoleBodyBlend]
hash = 4af0a4cd
handling = skip
vb2 = ResourceNicoleBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceNicoleBodyPosition
	draw = 101123,0
endif
$active = 1

[TextureOverrideNicoleBodyTexcoord]
hash = ed4c47a9
vb1 = ResourceNicoleBodyTexcoord

[TextureOverrideNicoleBodyVertexLimitRaise]
hash = b19da99e
override_vertex_count = 101123
override_byte_stride = 92

[TextureOverrideNicoleAmillionBlend]
hash = 176bf3d7
handling = skip
vb2 = ResourceNicoleAmillionBlend
if DRAW_TYPE == 1
	vb0 = ResourceNicoleAmillionPosition
	draw = 632,0
endif
$active = 1

[TextureOverrideNicoleAmillionTexcoord]
hash = f9f810ed
vb1 = ResourceNicoleAmillionTexcoord

[TextureOverrideNicoleAmillionVertexLimitRaise]
hash = bb7fffe9
override_vertex_count = 632
override_byte_stride = 92

[TextureOverrideNicoleHairIB]
hash = 7dcfe907
handling = skip

[TextureOverrideNicoleHairA]
hash = 7dcfe907
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceNicoleHairAIB
ps-t4 = ResourceNicoleHairANormalMap
; NicoleHairA
	; HairCurle (99)
	if $swapvarHood != 0 
	drawindexed = 384, 0, 0
	endif
	; HairLong (3384)
	if $swapvarHood != 0 && $swapvarhair == 0
	drawindexed = 15441, 384, 0
	endif
	if $swapvarHood != 0 && $swapvarhair == 3
	drawindexed = 15441, 384, 0
	endif
	; HairShort (1077)
	drawindexed = 4497, 15825, 0
	; HairShort.002 (1726)
	if $swapvarHood != 0 && $swapvarhair == 1
	drawindexed = 7071, 20322, 0
	endif
	if $swapvarHood != 0 && $swapvarhair == 2
	drawindexed = 7071, 20322, 0
	endif
	; ForShortHairTails (1274)
	if $swapvarHood != 0 && $swapvarhair == 2 && $swapvarhair != 3
	drawindexed = 6102, 27393, 0
	endif
	; HairTails (1274)
	if $swapvarHood != 0 && $swapvarhair == 0
	drawindexed = 6102, 27393, 0
	endif

[TextureOverrideNicoleHairADiffuse]
hash = 6d3868f9
this = ResourceNicoleHairADiffuse

[TextureOverrideNicoleHairANormalMap]
hash = bffb4a66
this = ResourceNicoleHairANormalMap

[TextureOverrideNicoleHairALightMap]
hash = 1dfd9e16
this = ResourceNicoleHairALightMap

[TextureOverrideNicoleBodyIB]
hash = e53364dd
handling = skip

[TextureOverrideNicoleBodyA]
hash = e53364dd
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceNicoleBodyAIB
ps-t4 = ResourceNicoleBodyANormalMap
; NicoleBodyA
	; BeltAmillion (521)
	if $swapvarAmillion == 0 || $swapvarAmillion == 1
	drawindexed = 2016, 0, 0
	endif
	; BeltLeg (566)
	if $swapvarLeg == 1
	drawindexed = 1968, 2016, 0
	endif
	; BeltNeck (206)
	drawindexed = 450, 3984, 0
	; BlackTights (2451)
	if $swapvarLeg == 0
	drawindexed = 9084, 4434, 0
	endif
	; BunnyEars (2056)
	if $swapvarDec == 0
	drawindexed = 11280, 13518, 0
	endif
	; Chain (152)
	drawindexed = 624, 24798, 0
	; CorsetClosed (3640)
	if $swapvarCorsetClosed == 0
	drawindexed = 12240, 25422, 0
	endif
	; Earrings (328)
	drawindexed = 966, 37662, 0
	; Green_HeartsBreast (294)
	if $swapvarCorsetClosed == 2
	drawindexed = 960, 38628, 0
	endif
	; Green_HeartsButt (152)
	drawindexed = 480, 39588, 0
	; HairBow (306)
	if $swapvarHood != 0 && $swapvarDec == 1
	drawindexed = 1164, 40068, 0
	endif
	; HairDown02 (15209)
	if $swapvarHood == 0 && $swapvarhair == 0
	drawindexed = 27906, 41232, 0
	endif
	; HoodDown (11681)
	if $swapvarHood == 1
	drawindexed = 57888, 69138, 0
	endif
	; HoodUp (11636)
	if $swapvarHood == 0
	drawindexed = 57888, 127026, 0
	endif
	; Jacket (1118)
	if $swapvarSleeves == 2 || $swapvarSleeves == 3
	drawindexed = 5070, 184914, 0
	endif
	; Neck (240)
	drawindexed = 984, 189984, 0
	; Panties1 (1298)
	if $swapvardown == 0
	drawindexed = 4386, 190968, 0
	endif
	; Panties2 (883)
	if $swapvardown == 1
	drawindexed = 2922, 195354, 0
	endif
	; Pussy (2347)
	if $swapvardown == 2 || $swapvardown == 1
	drawindexed = 13296, 198276, 0
	endif
	; Shoes (768)
	drawindexed = 2130, 211572, 0
	; Sleeves (564)
	if $swapvarSleeves == 2 || $swapvarSleeves == 4
	drawindexed = 3024, 213702, 0
	endif
	; SleevesBlack (1838)
	if $swapvarSleeves == 1
	drawindexed = 7884, 216726, 0
	endif
	; SleevesGreen (1794)
	if $swapvarSleeves == 0
	drawindexed = 7422, 224610, 0
	endif
	; Tail (638)
	if $swapvardown == 0 || $swapvardown == 1
	drawindexed = 2328, 232032, 0
	endif
	; Top01 (1276)
	if $swapvarCorsetClosed == 1 || $swapvarCorsetClosed == 2 || $swapvarCorsetClosed == 3
	drawindexed = 3900, 234360, 0
	endif
	; Top02 (598)
	if $swapvarCorsetClosed == 1
	drawindexed = 1860, 238260, 0
	endif
	; Top3 (3160)
	if $swapvarCorsetClosed == 4
	drawindexed = 7713, 240120, 0
	endif
	; ZZZBody (17296)
	drawindexed = 95796, 247833, 0
	; ZZZBodyBoobs1 (3395)
	if $swapvarCorsetClosed == 0 || $swapvarCorsetClosed == 1 || $swapvarCorsetClosed == 4
	drawindexed = 18288, 343341, 0
	endif
	; ZZZBodyBoobs2 (3395)
	if $swapvarCorsetClosed == 3 || $swapvarCorsetClosed == 5 || $swapvarCorsetClosed == 2
	drawindexed = 18288, 361629, 0
	endif
	; ZZZBodyLeg (10996)
	if $swapvarLeg == 1
	drawindexed = 53448, 379917, 0
	endif

[TextureOverrideNicoleBodyADiffuse]
hash = f86ffe2c
this = ResourceNicoleBodyADiffuse

[TextureOverrideNicoleBodyANormalMap]
hash = 8cf23419
this = ResourceNicoleBodyANormalMap

[TextureOverrideNicoleBodyALightMap]
hash = 80855e0f
this = ResourceNicoleBodyALightMap

[TextureOverrideNicoleBodyAMaterialMap]
hash = 95cabef3
this = ResourceNicoleBodyAMaterialMap

[TextureOverrideNicoleBodyB]
hash = e53364dd
match_first_index = 46683
run = CommandListSkinTexture
ib = ResourceNicoleBodyBIB
; NicoleBodyB
	; HeartNeck (288)
	drawindexed = 318, 0, 0

[TextureOverrideNicoleAmillionIB]
hash = 40e64ae2
handling = skip

[TextureOverrideNicoleAmillionA]
hash = 40e64ae2
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceNicoleAmillionAIB
; NicoleAmillionA
	; Toy (632)
	if $swapvarAmillion == 0 
	drawindexed = 2760, 0, 0
	endif

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

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

[ResourceNicoleHairPosition]
type = Buffer
stride = 40
filename = NicoleHairPosition.buf

[ResourceNicoleHairBlend]
type = Buffer
stride = 32
filename = NicoleHairBlend.buf

[ResourceNicoleHairTexcoord]
type = Buffer
stride = 20
filename = NicoleHairTexcoord.buf

[ResourceNicoleBodyPosition]
type = Buffer
stride = 40
filename = NicoleBodyPosition.buf

[ResourceNicoleBodyBlend]
type = Buffer
stride = 32
filename = NicoleBodyBlend.buf

[ResourceNicoleBodyTexcoord]
type = Buffer
stride = 20
filename = NicoleBodyTexcoord.buf

[ResourceNicoleAmillionPosition]
type = Buffer
stride = 40
filename = NicoleAmillionPosition.buf

[ResourceNicoleAmillionBlend]
type = Buffer
stride = 32
filename = NicoleAmillionBlend.buf

[ResourceNicoleAmillionTexcoord]
type = Buffer
stride = 20
filename = NicoleAmillionTexcoord.buf

[ResourceNicoleHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = NicoleHairA.ib

[ResourceNicoleBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = NicoleBodyA.ib

[ResourceNicoleBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = NicoleBodyB.ib

[ResourceNicoleAmillionAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = NicoleAmillionA.ib

[ResourceNicoleHairADiffuse]
filename = NicoleBodyADiffuse.dds

[ResourceNicoleHairANormalMap]
filename = NicoleBodyANormalMap.dds

[ResourceNicoleHairALightMap]
filename = NicoleBodyALightMap.dds

[ResourceNicoleBodyADiffuse]
filename = NicoleBodyADiffuse.dds

[ResourceNicoleBodyANormalMap]
filename = NicoleBodyANormalMap.dds

[ResourceNicoleBodyALightMap]
filename = NicoleBodyALightMap.dds

[ResourceNicoleBodyAMaterialMap]
filename = NicoleBodyAMaterialMap.dds

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

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