; Belle

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

[Constants]
global $active = 0
global $creditinfo = 0
global persist $Pantie = 0
global persist $Coat = 0

[KeyToggleCoat]
condition = $active == 1
key = VK_UP
type = cycle
$Coat = 0, 1

[KeyTogglePantie]
condition = $active == 1
key = VK_DOWN
type = cycle
$Pantie = 0, 1

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideBelleLegBlend]
hash = b4cd8580
handling = skip
if DRAW_TYPE == 2 || DRAW_TYPE == 4
	vb1 = ResourceBelleLegTexcoord
	vb2 = ResourceBelleLegBlend
	checktextureoverride = ib
elif DRAW_TYPE == 1
	vb0 = ResourceBelleLegPosition
	vb2 = ResourceBelleLegBlend
	Draw = 39276, 0
endif
$active = 1

[TextureOverrideBelleLegTexcoord]
hash = e317bb99
vb1 = ResourceBelleLegTexcoord

[TextureOverrideBelleLegVertexLimitRaise]
hash = 7217e342
override_vertex_count = 39276
override_byte_stride = 40

[TextureOverrideBelleBodyBlend]
hash = 3ee01622
handling = skip
if DRAW_TYPE == 2 || DRAW_TYPE == 4
	vb1 = ResourceBelleBodyTexcoord
	vb2 = ResourceBelleBodyBlend
	checktextureoverride = ib
elif DRAW_TYPE == 1
	vb0 = ResourceBelleBodyPosition
	vb2 = ResourceBelleBodyBlend
	Draw = 8306, 0
endif
$active = 1

[TextureOverrideBelleBodyTexcoord]
hash = 40a897ab
vb1 = ResourceBelleBodyTexcoord

[TextureOverrideBelleBodyVertexLimitRaise]
hash = bea2b94e
override_vertex_count = 8306
override_byte_stride = 40

[TextureOverrideBelleLegA]
hash = e6afd8d1
match_first_index = 0
match_index_count = 20610
handling = skip
ib = ResourceBelleLegAIB
if $Pantie == 1
Resource\ZZMI\Diffuse = ref ResourceBelleLegADiffuseNSFW
Resource\ZZMI\NormalMap = ref ResourceBelleLegANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleLegALightMapNSFW
Resource\ZZMI\MaterialMap = ref ResourceBelleLegAMaterialMap
run = CommandList\ZZMI\SetTextures
endif
if $Pantie == 0
Resource\ZZMI\Diffuse = ref ResourceBelleLegADiffuse
Resource\ZZMI\NormalMap = ref ResourceBelleLegANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleLegALightMap
Resource\ZZMI\MaterialMap = ref ResourceBelleLegAMaterialMap
run = CommandList\ZZMI\SetTextures
endif
; Nude (19638)
if $Pantie == 1
drawindexed = 105030, 0, 0
endif
; Pantie (19638)
if $Pantie == 0
drawindexed = 105030, 105030, 0
endif

[TextureOverrideBelleBodyA]
hash = c2b4ce3a
match_first_index = 0
match_index_count = 31275
handling = skip
ib = ResourceBelleBodyAIB
Resource\ZZMI\Diffuse = ref ResourceBelleBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceBelleBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceBelleBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceBelleBodyAMaterialMap
run = CommandList\ZZMI\SetTextures
; BelleBodyA-vb0=5838ad30.txt (5677)
drawindexed = 26088, 0, 0
; BelleBodyA
; Coat (2615)
if $Coat == 0
drawindexed = 10149, 26088, 0
endif

[TextureOverrideBelleBodyB]
hash = c2b4ce3a
match_first_index = 31275
match_index_count = 36
handling = skip
ib = ResourceBelleBodyBIB
; BelleBodyB-vb0=5838ad30.txt (14)
drawindexed = 36, 0, 0

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

[CommandListCreditInfo]
if $creditinfo == 0 && $active > 0
	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 -------------------------

[ResourceBelleLegPosition]
type = Buffer
stride = 40
filename = BelleLegPosition.buf

[ResourceBelleLegBlend]
type = Buffer
stride = 32
filename = BelleLegBlend.buf

[ResourceBelleLegTexcoord]
type = Buffer
stride = 20
filename = BelleLegTexcoord.buf

[ResourceBelleLegAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleLegA.ib

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

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

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

[ResourceBelleBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleBodyA.ib

[ResourceBelleBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BelleBodyB.ib

[ResourceBelleLegADiffuse]
filename = BelleLegADiffuse.dds

[ResourceBelleLegADiffuseNSFW]
filename = BelleLegADiffuseNSFW.dds

[ResourceBelleLegANormalMap]
filename = BelleLegANormalMap.jpg

[ResourceBelleLegALightMap]
filename = BelleLegALightMap.dds

[ResourceBelleLegALightMapNSFW]
filename = BelleLegALightMapNSFW.dds

[ResourceBelleLegAMaterialMap]
filename = BelleLegAMaterialMap.dds

[ResourceBelleBodyADiffuse]
filename = BelleBodyADiffuse.dds

[ResourceBelleBodyANormalMap]
filename = BelleBodyANormalMap.jpg

[ResourceBelleBodyALightMap]
filename = BelleBodyALightMap.dds

[ResourceBelleBodyAMaterialMap]
filename = BelleBodyAMaterialMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Yoyo cat"

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