; Jane

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

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

global persist $swap = 0
global persist $face = 0
global persist $shirt = 0
global persist $skirt = 0
global persist $bra = 0
global persist $tan = 0
global persist $thong = 0
global persist $kok = 0
global persist $piercings = 0
global persist $naked = 0
global persist $blazer = 0
global persist $garter = 0
global persist $tail = 0
global persist $top = 0
global persist $alt = 0
global persist $glasses = 0

[KeyBlazer]
condition = $active == 1
key = no_ctrl no_Shift alt 9
type = cycle
$blazer = 0,1

[KeyGarter]
condition = $active == 1
key = ctrl no_Shift No_alt 9
type = cycle
$garter = 0,1

[KeyTail]
condition = $active == 1
key = no_ctrl no_Shift alt 8
type = cycle
$tail = 0,1

[KeyAlt]
condition = $active == 1
key = no_ctrl no_Shift No_alt 9
type = cycle
$alt = 0,1

[KeyShirt]
condition = $active == 1
key = ctrl no_Shift No_alt 6
type = cycle
$shirt = 0,1

[KeySkirt]
condition = $active == 1
key = ctrl no_Shift No_alt 7
type = cycle
$skirt = 0,1

[KeyBra]
condition = $active == 1
key = no_ctrl no_Shift alt 6
type = cycle
$bra = 0,1

[KeyThong]
condition = $active == 1
key = no_ctrl no_Shift alt 7
type = cycle
$thong = 0,1

[KeyFace]
condition = $active == 1
key = no_ctrl no_Shift No_alt 6
type = cycle
$face = 0,1

[KeyTan]
condition = $active == 1
key = no_ctrl no_Shift No_alt 7
type = cycle
$tan = 0,1,2

[KeyPiercings]
condition = $active == 1
key = no_ctrl no_Shift No_alt 8
type = cycle
$piercings = 0,1

[KeyTop]
condition = $active == 1
key = ctrl no_Shift No_alt 8
type = cycle
$top = 0,1

[KeyKok]
condition = $active == 1
key = VK_DOWN
type = cycle
$kok = 0,1,2

[KeySwap]
condition = $active == 1
key = VK_UP
type = cycle
$swap = 0,1

[KeyNaked]
condition = $active == 1
key = alt no_ctrl h
type = cycle
$naked = 0,1


[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideBladesIB]
hash = f7a304e8
handling = skip

[TextureOverrideFaceIB]
hash = ef86fc9f
run = CommandListSkinTexture

[TextureOverrideFace]
hash = 8974fb74
run = CommandListFace

[CommandListFace]
this = ResourceFace

[TextureOverrideJane.HeadA.Diffuse.1024]
hash = 689639a5
run = CommandListFace

[ResourceFace]
filename = JaneFace.dds

[TextureOverrideJaneHairPosition]
hash = 24323bf9
handling = skip
vb0 = ResourceJaneHairPosition
vb2 = ResourceJaneHairBlend
draw = 14761,0
$active = 1

[TextureOverrideJaneHairTexcoord]
hash = 257a90d6
vb1 = ResourceJaneHairTexcoord

[TextureOverrideJaneHairVertexLimitRaise]
hash = 5721e4e7
; override_vertex_count = 522
; override_byte_stride = 92

[TextureOverrideJaneBodyPosition]
hash = 06f9bc49
handling = skip
vb0 = ResourceJaneBodyPosition
vb2 = ResourceJaneBodyBlend
draw = 302803,0
$active = 1

[TextureOverrideJaneBodyTexcoord]
hash = 8b85c03e
vb1 = ResourceJaneBodyTexcoord

[TextureOverrideJaneBodyVertexLimitRaise]
hash = d1aa4b85
 override_vertex_count = 302803
 override_byte_stride = 96

[TextureOverrideJaneHairIB]
hash = 7b16a708
handling = skip

[TextureOverrideJaneHairA]
hash = 7b16a708
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceJaneHairAIB
; JaneHairA-vb0=24323bf9.txt.001 (4529)
drawindexed = 16932, 0, 0
; JaneHairA
	; Hands.001 (9710)
	drawindexed = 37308, 16932, 0

[TextureOverrideJaneHairADiffuse]
hash = f7ef1a53
this = ResourceJaneHairADiffuse

[TextureOverrideJaneHairANormalMap]
hash = 4aa12b36
this = ResourceJaneHairANormalMap

[TextureOverrideJaneHairALightMap]
hash = 9ec4cd4f
this = ResourceJaneHairALightMap

[TextureOverrideJaneHairAMaterialMap]
hash = 5e34e275
this = ResourceJaneHairAMaterialMap

[TextureOverrideJaneHairB]
hash = 7b16a708
match_first_index = 33780
run = CommandListSkinTexture
ib = ResourceJaneHairBIB
; JaneHairB-vb0=24323bf9.txt (522)
drawindexed = 1626, 0, 0

[TextureOverrideJaneBodyIB]
hash = e2c0144e
handling = skip

[TextureOverrideJaneBodyA]
hash = e2c0144e
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceJaneBodyAIB
; JaneBodyA empty (0)
drawindexed = 0, 0, 0
; JaneBodyA 
	; Flat Kok Cage (5179)
if $kok == 0 || ($kok == 1 && $swap == 1)
	drawindexed = 28080, 0, 0
endif
if $swap == 0
	; Jane Chest (15945)
if $shirt == 1 || $naked == 1
	drawindexed = 79776, 209571, 0
endif
	; Jane Chest C (15943)
if $shirt == 0 && $naked == 0
	drawindexed = 79776, 289347, 0
endif
	; Jane Legs (37203)
if $kok == 0
	drawindexed = 194160, 369123, 0
endif
	; Jane Legs E (37199)
if $kok == 2
	drawindexed = 194160, 563283, 0
endif
	; Jane Legs F (37197)
if $kok == 1
	drawindexed = 194160, 757443, 0
endif
	; Tail (1180)
if $alt == 0
	drawindexed = 4932, 1499475, 0
endif

else
	; Jane P Chest (14965)
if $shirt == 1 || $naked == 1
	drawindexed = 74136, 951603, 0
endif
	; Jane P Chest C (14956)
if $shirt == 0 && $naked == 0
	drawindexed = 74136, 1025739, 0
endif
	; Jane P Legs  (38155)
if $kok != 2
	drawindexed = 199800, 1099875, 0
endif
	; Jane P Legs E (38153)
if $kok == 2
	drawindexed = 199800, 1299675, 0
endif
endif
	; JK Accs (5726)
	drawindexed = 23883, 28080, 0
if $naked == 0
if $swap == 0
	; JK Skirt Thicc+ (4082)
if $skirt == 0 && $kok != 2
	drawindexed = 15960, 51963, 0
endif
	; Thong Thicc+ Futa (6282)
if $thong == 0
	drawindexed = 27024, 1504407, 0
endif
endif
	; JK Top thicc+ (30638)
if $shirt == 0
	drawindexed = 141648, 67923, 0
endif
endif

[TextureOverrideJaneBodyADiffuse]
hash = d1f56c7d
this = ResourceJaneBodyADiffuse

[TextureOverrideJaneBodyANormalMap]
hash = 0165f71c
this = ResourceJaneBodyANormalMap

[TextureOverrideJaneBodyALightMap]
hash = 3087f82a
this = ResourceJaneBodyALightMap

[TextureOverrideJaneBodyAMaterialMap]
hash = 99eae42e
this = ResourceJaneBodyAMaterialMap

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

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

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

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

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

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

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

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

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

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

[ResourceJaneHairADiffuse]
filename = JaneHairADiffuse.dds

[ResourceJaneHairANormalMap]
filename = JaneHairANormalMap.dds

[ResourceJaneHairALightMap]
filename = JaneHairALightMap.dds

[ResourceJaneHairAMaterialMap]
filename = JaneHairAMaterialMap.dds

[ResourceJaneBodyADiffuse]
filename = JaneBodyADiffuse.dds

[ResourceJaneBodyANormalMap]
filename = JaneBodyANormalMap.dds

[ResourceJaneBodyALightMap]
filename = JaneBodyALightMap.dds

[ResourceJaneBodyAMaterialMap]
filename = JaneBodyAMaterialMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Levi, check out more mods at Patreon.com/LeviMods"

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