; Jane

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

[Constants]
global $active
global persist $Color = 1
global persist $Corbata = 1
global persist $Gloves = 1
global persist $Mano = 0
global persist $TT = 0
global persist $Socks = 0
global persist $Shirt = 1
global persist $Piernas = 1
global persist $Lower = 1
global persist $Garter = 1
global persist $Dress = 1

[Present]
post $active = 0

[KeySwap0]
key = 5
condition = $active == 1
type = cycle
$Shirt = 1,1,0
$Corbata = 1,0,0
$TT = 0,0,1

[KeySwap1]
key = 6
condition = $active == 1
type = cycle
$Dress = 1,0,0
$Lower = 1,1,0

[KeySwap2]
key = 7
condition = $active == 1
type = cycle
$Socks = 0,1
$Garter = 1,0
$Piernas = 1,0

[KeySwap3]
key = 8
condition = $active == 1
type = cycle
$Color = 0,1

[KeySwap4]
key = 9
condition = $active == 1
type = cycle
$Gloves = 1,0
$Mano = 0,1

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

[TextureOverrideJaneHandsBlend]
$active = 1
hash = d06a9206
handling = skip
vb2 = ResourceJaneHandsBlend
if DRAW_TYPE == 1
	vb0 = ResourceJaneHandsPosition
	draw = 4966, 0
endif

[TextureOverrideJaneHandsTexcoord]
hash = 6d482e21
vb1 = ResourceJaneHandsTexcoord

[TextureOverrideJaneHandsVertexLimitRaise]
hash = 2b5dc947
override_vertex_count = 4966
override_byte_stride = 40

[TextureOverrideJaneHairBlend]
hash = e42171df
handling = skip
vb2 = ResourceJaneHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceJaneHairPosition
	draw = 5079, 0
endif

[TextureOverrideJaneHairTexcoord]
hash = fa617c9a
vb1 = ResourceJaneHairTexcoord

[TextureOverrideJaneHairVertexLimitRaise]
hash = 74bc0b7f
override_vertex_count = 5079
override_byte_stride = 40

[TextureOverrideJaneBodyBlend]
hash = e27f398e
handling = skip
vb2 = ResourceJaneBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceJaneBodyPosition
	draw = 25251, 0
endif

[TextureOverrideJaneBodyTexcoord]
hash = 949549de
vb1 = ResourceJaneBodyTexcoord

[TextureOverrideJaneBodyVertexLimitRaise]
hash = 0e1c6740
override_vertex_count = 25251
override_byte_stride = 40

; --- Jane Dage IB (manual override) ---

[TextureOverrideJaneDageIB]
hash = f7a304e8
handling = skip

[TextureOverrideJaneHandsIB]
hash = 294a319a
handling = skip

[TextureOverrideJaneHandsA]
hash = 294a319a
match_first_index = 0
ib = ResourceJaneHandsAIB
Resource\ZZMI\Diffuse     = ref ResourceJaneBodyADiffuse
Resource\ZZMI\NormalMap  = ref ResourceJaneBodyANormalMap
Resource\ZZMI\LightMap   = ref ResourceJaneBodyALightMap
Resource\ZZMI\MaterialMap= ref ResourceJaneBodyAMaterialMap
run = CommandList\ZZMI\SetTextures

drawindexed = 534, 21300, 0

if $Corbata == 1
drawindexed = 2136, 0, 0
endif
if $Gloves == 1
drawindexed = 10560, 2136, 0
endif
if $Mano == 1
drawindexed = 8604, 12696, 0
endif

[TextureOverrideJaneHairIB]
hash = 3275b812
handling = skip

[TextureOverrideJaneHairA]
hash = 3275b812
match_first_index = 0
ib = ResourceJaneHairAIB

if $Color == 0
    Resource\ZZMI\Diffuse = ref ResourceJaneHairADiffuse
elif $Color == 1
    Resource\ZZMI\Diffuse = ref ResourceJaneHairADiffuseRed
endif

Resource\ZZMI\NormalMap = ref ResourceJaneHairANormalMap
Resource\ZZMI\LightMap = ref ResourceJaneHairALightMap
Resource\ZZMI\MaterialMap = ref ResourceJaneHairAMaterialMap

run = CommandList\ZZMI\SetTextures

; JaneHairA-vb0=33a09cfe.txt (4563)
drawindexed = 16986, 0, 0

[TextureOverrideJaneHairB]
hash = 3275b812
match_first_index = 16986
ib = ResourceJaneHairBIB

if $Color == 0
    Resource\ZZMI\Diffuse = ref ResourceJaneHairADiffuse
elif $Color == 1
    Resource\ZZMI\Diffuse = ref ResourceJaneHairADiffuseRed
endif

Resource\ZZMI\NormalMap  = ref ResourceJaneHairANormalMap
Resource\ZZMI\LightMap   = ref ResourceJaneHairALightMap
Resource\ZZMI\MaterialMap= ref ResourceJaneHairAMaterialMap


run = CommandList\ZZMI\SetTextures

; JaneHairB-vb0=33a09cfe.txt (516)
drawindexed = 1572, 0, 0

[TextureOverrideJaneBodyIB]
hash = ba4255a5
handling = skip

[TextureOverrideJaneBodyA]
hash = ba4255a5
match_first_index = 0
ib = ResourceJaneBodyAIB
Resource\ZZMI\Diffuse = ref ResourceJaneBodyADiffuse
Resource\ZZMI\LightMap = ref ResourceJaneBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceJaneBodyAMaterialMap
Resource\ZZMI\NormalMap = ref ResourceJaneBodyANormalMap
run = CommandList\ZZMI\SetTextures

drawindexed = 20976, 0, 0
drawindexed = 3432, 37464, 0

if $TT == 1
drawindexed = 4200, 125082, 0
endif
if $Socks == 1
drawindexed = 11802, 113280, 0
endif
if $Shirt == 1
drawindexed = 51612, 61668, 0
endif
if $Piernas == 1
drawindexed = 11802, 49866, 0
endif
if $Lower == 1
drawindexed = 8970, 40896, 0
endif
if $Garter == 1
drawindexed = 732, 36732, 0
endif
if $Dress == 1
drawindexed = 15756, 20976, 0
endif


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


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

[ResourceJaneHandsPosition]
type = Buffer
stride = 40
filename = JaneHandsPosition.buf

[ResourceJaneHandsBlend]
type = Buffer
stride = 32
filename = JaneHandsBlend.buf

[ResourceJaneHandsTexcoord]
type = Buffer
stride = 24
filename = JaneHandsTexcoord.buf

[ResourceJaneHandsAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JaneHandsA.ib

[ResourceJaneHairPosition]
type = Buffer
stride = 40
filename = JaneHairPosition.buf

[ResourceJaneHairBlend]
type = Buffer
stride = 32
filename = JaneHairBlend.buf

[ResourceJaneHairTexcoord]
type = Buffer
stride = 24
filename = JaneHairTexcoord.buf

[ResourceJaneHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JaneHairA.ib

[ResourceJaneHairBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JaneHairB.ib

[ResourceJaneBodyPosition]
type = Buffer
stride = 40
filename = JaneBodyPosition.buf

[ResourceJaneBodyBlend]
type = Buffer
stride = 32
filename = JaneBodyBlend.buf

[ResourceJaneBodyTexcoord]
type = Buffer
stride = 32
filename = JaneBodyTexcoord.buf

[ResourceJaneBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JaneBodyA.ib

[ResourceJaneHairADiffuse]
filename = JaneHairADiffuse.dds

[ResourceJaneHairADiffuseRed]
filename = JaneHairADiffuseRed.dds

[ResourceJaneHairANormalMap]
filename = JaneHairANormalMap.jpg

[ResourceJaneHairALightMap]
filename = JaneHairALightMap.dds

[ResourceJaneHairAMaterialMap]
filename = JaneHairAMaterialMap.dds

[ResourceJaneBodyADiffuse]
filename = JaneBodyADiffuse.dds

[ResourceJaneBodyALightMap]
filename = JaneBodyALightMap.dds

[ResourceJaneBodyAMaterialMap]
filename = JaneBodyAMaterialMap.dds

[ResourceJaneBodyANormalMap]
filename = JaneBodyANormalMap.dds

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