; Belle

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

[Constants]
global $active
global persist $main = 0
global persist $low = 0
global persist $jack = 0
global $creditinfo = 0

[KeySwap]
condition = $active == 1
key = ctrl no_shift no_alt VK_RIGHT
back = ctrl no_shift no_alt VK_LEFT
type = cycle
$main = 0,1,2,3

[KeySwap1]
condition = $active == 1
Key = ctrl no_shift no_alt VK_DOWN
back = ctrl no_shift no_alt VK_UP
type = cycle
$low = 0,1,2,3,4,5

[KeySwap2]
condition = $active == 1
Key = no_ctrl shift no_alt VK_UP
type = cycle
$jack = 0,1


[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideBelleHairBlend]
hash = cc32660c
handling = skip
vb2 = ResourceBelleHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceBelleHairPosition
	draw = 29710,0
endif
$active = 1

[TextureOverrideBelleHairTexcoord]
hash = 11e38ebb
vb1 = ResourceBelleHairTexcoord

[TextureOverrideBelleHairVertexLimitRaise]
hash = 142ddbbc
override_vertex_count = 29710
override_byte_stride = 92

[TextureOverrideBelleBodyBlend]
hash = c92a17d8
handling = skip
vb2 = ResourceBelleBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceBelleBodyPosition
	draw = 22514,0
endif
$active = 1

[TextureOverrideBelleBodyTexcoord]
hash = 801edbf4
vb1 = ResourceBelleBodyTexcoord

[TextureOverrideBelleBodyVertexLimitRaise]
hash = ac1c8f80
override_vertex_count = 22514
override_byte_stride = 92

[TextureOverrideBelleHairIB]
hash = bea4a483
handling = skip

[TextureOverrideBelleHair]
hash = bea4a483
match_first_index = 0
run = CommandListSkinTexture
ps-t4 = ResourceBelleBodyNormalMap
ib = ResourceBelleHairIB
; BelleHair
	; BangDeviceH (1186)
	if $main == 0
		drawindexed = 3660, 22587, 0
	else if $main == 1
	else if $main == 2
		drawindexed = 3660, 22587, 0
	else if $main == 3
	endif

	; BelleHair (5644)
	drawindexed = 22587, 26247, 0

	; Legs (1364)
	if $low == 0
	else if $low == 1
		drawindexed = 7440, 48834, 0
	else if $low == 2
		drawindexed = 7440, 48834, 0
	else if $low == 3
	else if $low == 4
		drawindexed = 7440, 48834, 0
	else if $low == 5
		drawindexed = 7440, 48834, 0
	endif

	; LowerHalf (3850)
	if $low == 0
	else if $low == 1
	else if $low == 2
		drawindexed = 20784, 56274, 0
	else if $low == 3
	else if $low == 4
	else if $low == 5
		drawindexed = 20784, 56274, 0
	endif

	; LowerHalfTH (3850)
	if $low == 0
		drawindexed = 20784, 77058, 0
	else if $low == 1
	else if $low == 2
	else if $low == 3
		drawindexed = 20784, 77058, 0
	else if $low == 4
	else if $low == 5
	endif

	; LowerTights (3036)
	if $low == 0
	else if $low == 1
		drawindexed = 16608, 97842, 0
	else if $low == 2
	else if $low == 3
	else if $low == 4
		drawindexed = 16608, 97842, 0
	else if $low == 5
	endif

	; Skirt (2648)
	if $main == 0
		drawindexed = 13146, 114450, 0
	else if $main == 1
	else if $main == 2
		drawindexed = 13146, 114450, 0
	else if $main == 3
	endif

	; ThighHighs (1878)
	if $low == 0
		drawindexed = 10224, 127596, 0
	else if $low == 1
	else if $low == 2
	else if $low == 3
		drawindexed = 10224, 127596, 0
	else if $low == 4
	else if $low == 5
	endif

	; Thong (610)
	if $low == 0
		drawindexed = 2508, 137820, 0
	else if $low == 1
	else if $low == 2
		drawindexed = 2508, 137820, 0
	else if $low == 3
	else if $low == 4
	else if $low == 5
	endif


[TextureOverrideBelleHairDiffuse]
hash = 1ce58567
if $low == 0
	this = ResourceBelleBodyDiffuse
else if $low == 1
	this = ResourceBelleBodyDiffuse2
else if $low == 2
	this = ResourceBelleBodyDiffuse
else if $low == 3
	this = ResourceBelleBodyDiffuse
else if $low == 4
	this = ResourceBelleBodyDiffuse2
else if $low == 5
	this = ResourceBelleBodyDiffuse
endif

[TextureOverrideBelle.HairA.Diffuse.1024]
hash = 08f04d95
if $low == 0
	this = ResourceBelleBodyDiffuse
else if $low == 1
	this = ResourceBelleBodyDiffuse2
else if $low == 2
	this = ResourceBelleBodyDiffuse
else if $low == 3
	this = ResourceBelleBodyDiffuse
else if $low == 4
	this = ResourceBelleBodyDiffuse2
else if $low == 5
	this = ResourceBelleBodyDiffuse
endif

[TextureOverrideBelleHairLightMap]
hash = f1ee2105
if $low == 0
	this = ResourceBelleBodyLightMap
else if $low == 1
	this = ResourceBelleBodyLightMap2
else if $low == 2
	this = ResourceBelleBodyLightMap
else if $low == 3
	this = ResourceBelleBodyLightMap
else if $low == 4
	this = ResourceBelleBodyLightMap2
else if $low == 5
	this = ResourceBelleBodyLightMap
endif

[TextureOverrideBelle.HairA.LightMap.1024]
hash = 2e656f2f
if $low == 0
	this = ResourceBelleBodyLightMap
else if $low == 1
	this = ResourceBelleBodyLightMap2
else if $low == 2
	this = ResourceBelleBodyLightMap
else if $low == 3
	this = ResourceBelleBodyLightMap
else if $low == 4
	this = ResourceBelleBodyLightMap2
else if $low == 5
	this = ResourceBelleBodyLightMap
endif

[TextureOverrideBelleHairMaterialMap]
hash = 34bdb036
if $low == 0
	this = ResourceBelleBodyMaterialMap
else if $low == 1
	this = ResourceBelleBodyMaterialMap2
else if $low == 2
	this = ResourceBelleBodyMaterialMap
else if $low == 3
	this = ResourceBelleBodyMaterialMap
else if $low == 4
	this = ResourceBelleBodyMaterialMap2
else if $low == 5
	this = ResourceBelleBodyMaterialMap
endif

[TextureOverrideBelle.HairA.MaterialMap.1024]
hash = 7542ef4b
if $low == 0
	this = ResourceBelleBodyMaterialMap
else if $low == 1
	this = ResourceBelleBodyMaterialMap2
else if $low == 2
	this = ResourceBelleBodyMaterialMap
else if $low == 3
	this = ResourceBelleBodyMaterialMap
else if $low == 4
	this = ResourceBelleBodyMaterialMap2
else if $low == 5
	this = ResourceBelleBodyMaterialMap
endif

[TextureOverrideBelleBodyIB]
hash = 1817f3ca
handling = skip

[TextureOverrideBelleBody]
hash = 1817f3ca
match_first_index = 0
run = CommandListSkinTexture
ps-t4 = ResourceBelleBodyNormalMap
ib = ResourceBelleBodyIB
; BelleBody
	; BangDevice (516)
	if $main == 0
		drawindexed = 1716, 34368, 0
	else if $main == 1
	else if $main == 2
		drawindexed = 1716, 34368, 0
	else if $main == 3
	endif

	; BelleBody (6504)
	drawindexed = 34368, 36084, 0

	; BodyUpper (4639)
	if $main == 0
	else if $main == 1
	else if $main == 2
		drawindexed = 26112, 70452, 0
	else if $main == 3
		drawindexed = 26112, 70452, 0
	endif

	; Bracelets (342)
	drawindexed = 936, 96564, 0

	; Jacket (2615)
	if $jack == 0
		drawindexed = 10149, 97500, 0
	else if $jack == 1
	endif


	; Sweater (1526)
	if $main == 0
		drawindexed = 7572, 107649, 0
	else if $main == 1
		drawindexed = 7572, 107649, 0
	else if $main == 2
	else if $main == 3
	endif

[TextureOverrideBelleBodyDiffuse]
hash = 24639b77
if $low == 0
	this = ResourceBelleBodyDiffuse
else if $low == 1
	this = ResourceBelleBodyDiffuse2
else if $low == 2
	this = ResourceBelleBodyDiffuse
else if $low == 3
	this = ResourceBelleBodyDiffuse
else if $low == 4
	this = ResourceBelleBodyDiffuse2
else if $low == 5
	this = ResourceBelleBodyDiffuse
endif

[TextureOverrideBelle.BodyA.Diffuse.1024]
hash = b9c7f71b
if $low == 0
	this = ResourceBelleBodyDiffuse
else if $low == 1
	this = ResourceBelleBodyDiffuse2
else if $low == 2
	this = ResourceBelleBodyDiffuse
else if $low == 3
	this = ResourceBelleBodyDiffuse
else if $low == 4
	this = ResourceBelleBodyDiffuse2
else if $low == 5
	this = ResourceBelleBodyDiffuse
endif


[TextureOverrideBelleBodyLightMap]
hash = 7947679c
if $low == 0
	this = ResourceBelleBodyLightMap
else if $low == 1
	this = ResourceBelleBodyLightMap2
else if $low == 2
	this = ResourceBelleBodyLightMap
else if $low == 3
	this = ResourceBelleBodyLightMap
else if $low == 4
	this = ResourceBelleBodyLightMap2
else if $low == 5
	this = ResourceBelleBodyLightMap
endif

[TextureOverrideBelle.BodyA.LightMap.1024]
hash = a4d3687d
if $low == 0
	this = ResourceBelleBodyLightMap
else if $low == 1
	this = ResourceBelleBodyLightMap2
else if $low == 2
	this = ResourceBelleBodyLightMap
else if $low == 3
	this = ResourceBelleBodyLightMap
else if $low == 4
	this = ResourceBelleBodyLightMap2
else if $low == 5
	this = ResourceBelleBodyLightMap
endif


[TextureOverrideBelleBodyMaterialMap]
hash = 33f28c6d
if $low == 0
	this = ResourceBelleBodyMaterialMap
else if $low == 1
	this = ResourceBelleBodyMaterialMap2
else if $low == 2
	this = ResourceBelleBodyMaterialMap
else if $low == 3
	this = ResourceBelleBodyMaterialMap
else if $low == 4
	this = ResourceBelleBodyMaterialMap2
else if $low == 5
	this = ResourceBelleBodyMaterialMap
endif

[TextureOverrideBelle.BodyA.MaterialMap.1024]
hash = b1abe877
if $low == 0
	this = ResourceBelleBodyMaterialMap
else if $low == 1
	this = ResourceBelleBodyMaterialMap2
else if $low == 2
	this = ResourceBelleBodyMaterialMap
else if $low == 3
	this = ResourceBelleBodyMaterialMap
else if $low == 4
	this = ResourceBelleBodyMaterialMap2
else if $low == 5
	this = ResourceBelleBodyMaterialMap
endif

[TextureOverrideBelleFaceHeadIB]
hash = 9a9780a7
run = CommandListSkinTexture

[TextureOverrideBelleFaceHeadDiffuse]
hash = 75ec3614
this = ResourceBelleFaceHeadDiffuse

[TextureOverrideBelle.HeadA.Diffuse.1024]
hash = 77eef7e8
this = ResourceBelleFaceHeadDiffuse


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

[ResourceBelleHairPosition]
type = Buffer
stride = 40
filename = BelleHairPosition.buf

[ResourceBelleHairBlend]
type = Buffer
stride = 32
filename = BelleHairBlend.buf

[ResourceBelleHairTexcoord]
type = Buffer
stride = 20
filename = BelleHairTexcoord.buf

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

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

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

[ResourceBelleHairIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleHair.ib

[ResourceBelleBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleBody.ib

[ResourceBelleBodyDiffuse]
filename = BelleBodyDiffuse.dds

[ResourceBelleBodyLightMap]
filename = BelleBodyLightMap.dds

[ResourceBelleBodyMaterialMap]
filename = BelleBodyMaterialMap.dds


[ResourceBelleBodyDiffuse2]
filename = BelleBodyDiffuse2.dds

[ResourceBelleBodyLightMap2]
filename = BelleBodyLightMap2.dds

[ResourceBelleBodyMaterialMap2]
filename = BelleBodyMaterialMap2.dds


[ResourceBelleBodyNormalMap]
filename = BelleBodyNormalMap.dds


[ResourceBelleFaceHeadDiffuse]
filename = BelleFaceHeadDiffuse.dds

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

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