; Dehya

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

[Constants]
global $active = 0
global $creditinfo = 0

global persist $BikerSuit = 0
global persist $BikerJacket = 0
global persist $Bikini = 0
global persist $Bikini2 = 0
global persist $makeup = 0

[KeySwapBikerSuit]
condition = $active == 1
key = VK_DOWN
type = cycle
$BikerSuit = 0,1
$creditinfo = 0

[KeySwapBikerJacket]
condition = $active == 1
key = VK_UP
type = cycle
$BikerJacket = 0,1
$creditinfo = 0

[KeySwapBikerBikini]
condition = $active == 1
key = VK_left
type = cycle
$Bikini = 0,1
$creditinfo = 0

[KeySwapBikerBikini2]
condition = $active == 1
key = VK_right
type = cycle
$Bikini2 = 0,1
$creditinfo = 0

[KeySwapMakeup]
condition = $active == 1
key = /
type = cycle
$makeup = 0,1,2
$creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideDehyaPosition]
hash = 9aeecbcb
vb0 = ResourceDehyaPosition
$active = 1

[TextureOverrideDehyaBlend]
hash = 31ea99dd
handling = skip
vb1 = ResourceDehyaBlend
draw = 69039, 0

[TextureOverrideDehyaTexcoord]
hash = 3feafd9a
vb1 = ResourceDehyaTexcoord

[TextureOverrideDehyaVertexLimitRaise]
hash = 96cfb1a1
override_vertex_count = 69039
override_byte_stride = 40

[TextureOverrideDehyaIB]
hash = 63e3e58e
handling = skip

[TextureOverrideDehyaHead]
hash = 63e3e58e
match_first_index = 0
ib = ResourceDehyaHeadIB
ps-t0 = ResourceDehyaHeadNormalMap
ps-t1 = ResourceDehyaHeadDiffuse
ps-t2 = ResourceDehyaHeadLightMap
run = CommandList\global\ORFix\ORFix
; DehyaHead-vb0=9aeecbcb.txt.002 (4126)
drawindexed = 16680, 0, 0

[TextureOverrideDehyaBody]
hash = 63e3e58e
match_first_index = 25566
ib = ResourceDehyaBodyIB
ps-t0 = ResourceDehyaBodyNormalMap
ps-t1 = ResourceDehyaBodyDiffuse
ps-t2 = ResourceDehyaBodyLightMap
run = CommandList\global\ORFix\ORFix
if $BikerJacket == 0
; Biker_Jacket.001 (6002)
drawindexed = 17358, 0, 0
endif
if $BikerSuit == 0
; Collar_&_Choker.001 (1070)
drawindexed = 2262, 17358, 0
endif
; D_Body (13435)
drawindexed = 66807, 19620, 0
if $BikerJacket == 1
; D_Body_hands (6894)
drawindexed = 5280, 86427, 0
endif
if $BikerSuit == 1
; D_Body_hands2 (5930)
drawindexed = 29712, 91707, 0
endif
if $BikerSuit == 1
; D_Body_legs (2541)
drawindexed = 13935, 121419, 0
endif
if $Bikini == 0 && $BikerSuit == 1
; E_Bikini (6190)
drawindexed = 25980, 135354, 0
endif
if $Bikini2 == 0 && $BikerSuit == 1
; E_Bikini2 (3176)
drawindexed = 12504, 161334, 0
endif
if $BikerJacket == 0
; F_Acc (344)
drawindexed = 864, 173838, 0
endif
if $BikerSuit == 0
; G_Biker Suit (18086)
drawindexed = 69243, 174702, 0
; G_Biker Suit part (6291)
drawindexed = 27693, 243945, 0
endif
if $BikerSuit == 1
; H (554)
drawindexed = 1350, 271638, 0
endif
ps-t0 = ResourceDehyaBodyNormalMap
ps-t1 = ResourceDehyaBodyDiffuse1
ps-t2 = ResourceDehyaBodyLightMap1
run = CommandList\global\ORFix\ORFix
; neck (330)
drawindexed = 1404, 272988, 0

[TextureOverrideDehyaFaceHeadDiffuse]
hash = e7b4f9a7
if $makeup == 0
this = ResourceDehyaFaceHeadDiffuse
else if $makeup == 1
this = ResourceDehyaFaceHeadDiffuse1
else if $makeup == 2
this = ResourceDehyaFaceHeadDiffuse2
endif

; 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 = 2
endif

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

[ResourceDehyaPosition]
type = Buffer
stride = 40
filename = DehyaPosition.buf

[ResourceDehyaBlend]
type = Buffer
stride = 32
filename = DehyaBlend.buf

[ResourceDehyaTexcoord]
type = Buffer
stride = 12
filename = DehyaTexcoord.buf

[ResourceDehyaHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = DehyaHead.ib

[ResourceDehyaBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = DehyaBody.ib

[ResourceDehyaHeadNormalMap]
filename = DehyaHeadNormalMap.dds

[ResourceDehyaHeadDiffuse]
filename = DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap]
filename = DehyaHeadLightMap.dds

[ResourceDehyaBodyNormalMap]
filename = DehyaBodyNormalMap.dds

[ResourceDehyaBodyDiffuse]
filename = DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap]
filename = DehyaBodyLightMap.dds

[ResourceDehyaBodyDiffuse1]
filename = DehyaBodyDiffuse1.dds

[ResourceDehyaBodyLightMap1]
filename = DehyaBodyLightMap1.dds

[ResourceDehyaFaceHeadDiffuse]
filename = DehyaFaceHeadDiffuse.dds

[ResourceDehyaFaceHeadDiffuse1]
filename = DehyaFaceHeadDiffuse1.dds

[ResourceDehyaFaceHeadDiffuse2]
filename = DehyaFaceHeadDiffuse2.dds

[ResourceCreditInfo]
type = Buffer
data = "VoidHero. Imported by Potato (_treef_)"

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