; Evelyn

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

[Constants]
global $active = 0

global persist $body = 0
global persist $Neck = 0
global persist $shoes = 0
global persist $down = 0
global persist $yuwang = 0
global persist $heisi = 0
global persist $pifeng = 0
;1切换主体，2控制脖子甲，3鞋子控制，4小兵下部，5渔网袜切换，6机甲黑丝，7披风，8脸

[Keybody]
condition = $active == 1
key = ctrl VK_UP
type = cycle
$body = 0,1,2,3,4

[KeyNeck]
condition = $active == 1
key = alt VK_UP
type = cycle
$Neck = 0,1

[Keyshoes]
condition = $active == 1
key = ctrl VK_DOWN
type = cycle
$shoes = 0,1,2,3

[Keydown]
condition = $active == 1
key = ctrl VK_RIGHT
type = cycle
$down = 0,1,2,3

[Keyyuwang]
condition = $active == 1
key = ctrl VK_LEFT
type = cycle
$yuwang = 0,1

[Keyheisi]
condition = $active == 1
key = alt VK_DOWN
type = cycle
$heisi = 0,1

[Keypifeng]
condition = $active == 1
key = alt VK_LEFT
type = cycle
$pifeng = 0,1

[Present]
post $active = 0

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

[TextureOverrideEvelynBodyBlend]
hash = 5ea06832
handling = skip
vb2 = ResourceEvelynBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceEvelynBodyPosition
	draw = 369165, 0

	$active = 1
endif

[TextureOverrideEvelynBodyTexcoord]
hash = 26f9ba95
vb1 = ResourceEvelynBodyTexcoord

[TextureOverrideEvelynBodyVertexLimitRaise]
hash = 02b04234
override_vertex_count = 369165
override_byte_stride = 40

[TextureOverrideEvelynBodyIB]
hash = 04b53ecd
handling = skip

[TextureOverrideEvelynshoulder]
hash = b3eaedb0
handling = skip

[TextureOverrideEvelynwuqi]
hash = 7fb7467f
handling = skip
[TextureOverrideEvelynBodyA2]
hash = 04b53ecd
match_first_index = 0
ib = ResourceEvelynBodyAIB
Resource\ZZMI\Diffuse = ref ResourceEvelynBodyADiffuse2
Resource\ZZMI\NormalMap = ref ResourceEvelynBodyANormalMap2
Resource\ZZMI\LightMap = ref ResourceEvelynBodyALightMap2
Resource\ZZMI\MaterialMap = ref ResourceEvelynBodyAMaterialMap2
run = CommandList\ZZMI\SetTextures
if $body==4
; 1Genesis8Female.002 (49712)
drawindexed = 280080, 3378, 0
endif

[TextureOverrideEvelynBodyA1]
hash = 04b53ecd
match_first_index = 0
ib = ResourceEvelynBodyAIB
Resource\ZZMI\Diffuse = ref ResourceEvelynBodyADiffuse1
Resource\ZZMI\NormalMap = ref ResourceEvelynBodyANormalMap1
Resource\ZZMI\LightMap = ref ResourceEvelynBodyALightMap1
Resource\ZZMI\MaterialMap = ref ResourceEvelynBodyAMaterialMap1

run = CommandList\ZZMI\SetTextures
if $body==1
drawindexed = 280080, 3378, 0
endif
if $body==1 && ($down==0 || $down==1)
; 1下部 (275)
drawindexed = 1056, 283458, 0
endif
if $body==1
; 1环体 (304)
drawindexed = 864, 284514, 0
; 1环体.001 (304)
drawindexed = 864, 285378, 0
endif
if $body==1 && ($down==0 || $down==2)
; 1胸部 (2722)
drawindexed = 13824, 286242, 0
endif
if $body==3 && $heisi==0

else if $shoes ==0
; 1鞋子 (2722)
drawindexed = 8496, 300066, 0
endif
if $body==0
; 2Genesis8Female (49712)
drawindexed = 280080, 308562, 0
; 2吊带 (496)
drawindexed = 1428, 588642, 0
; 2裙子 (16741)
drawindexed = 96768, 590070, 0
endif
if $body==2 && $yuwang==1
; 3Genesis8Female.005 (49712)
drawindexed = 280080, 686838, 0
endif
if $body==2
; 3内裤 (964)
drawindexed = 3204, 966918, 0
endif
if $body==2 && $yuwang==0
; 3手套 (1128)
drawindexed = 3312, 970122, 0
; 3手套.002 (492)
drawindexed = 1440, 973434, 0
endif
if $body==2 && $yuwang==0
; 3渔网袜 (16293)
drawindexed = 87648, 974874, 0
; 3渔网袜.001 (1040)
drawindexed = 3024, 1062522, 0
; 3渔网袜体 (34537)
drawindexed = 194304, 1065546, 0
endif
if $body==2
; 3环体.004 (954)
drawindexed = 4800, 1259850, 0
; 3衣服 (22089)
drawindexed = 96864, 1264650, 0
endif
if $body==3 && $heisi==0

else if $shoes ==1
; 3鞋子.001 (3158)
drawindexed = 10068, 1361514, 0
endif
if $body==3 && $heisi==0

else if $shoes ==2
; 4高跟鞋 (3960)
drawindexed = 18432, 1782090, 0
endif

[TextureOverrideEvelynBodyA]
hash = 04b53ecd
match_first_index = 0
ib = ResourceEvelynBodyAIB
Resource\ZZMI\Diffuse = ref ResourceEvelynBodyADiffuse
Resource\ZZMI\NormalMap = ref ResourceEvelynBodyANormalMap
Resource\ZZMI\LightMap = ref ResourceEvelynBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceEvelynBodyAMaterialMap
run = CommandList\ZZMI\SetTextures
; EvelynBodyA-vb0=67eafa06.txt.004 (1277)
drawindexed = 3378, 0, 0
; EvelynBodyA
if $body==3
; 4Genesis8Female.003 (34571)
drawindexed = 190920, 1371582, 0
endif
if $body==3 && $heisi==1
; 4完整丝袜 (16562)
drawindexed = 87024, 1562502, 0
endif
if $body==3
; 4手甲 (384)
drawindexed = 768, 1649526, 0
endif
if $body==3 && $heisi==0
; 4机甲丝袜 (2080)
drawindexed = 10368, 1650294, 0
endif
if $body==3
; 4胸甲 (1202)
drawindexed = 4848, 1660662, 0
endif
if $body==3 && $heisi==0
; 4脚爪子 (33189)
drawindexed = 82296, 1665510, 0
endif
if $body==3
; 4腹部 (7017)
drawindexed = 31212, 1747806, 0
; 4袖子 (578)
drawindexed = 3072, 1779018, 0
endif

if $Neck==0
; 下巴护甲 (348)
drawindexed = 1308, 1800522, 0
; 下巴护甲.001 (292)
drawindexed = 492, 1801830, 0
endif
; 指环 (1530)
drawindexed = 5760, 1802322, 0

if $Neck==0
; 控制器 (541)
drawindexed = 1344, 1808082, 0
; 柱体 (264)
drawindexed = 960, 1809426, 0
endif
if $Neck==0 && ($body==1||$body==3||$body==4)
; 脊柱.001 (11743)
drawindexed = 31062, 1810386, 0
endif
if $Neck==0
; 脖子装甲 (268)
drawindexed = 636, 1841448, 0
endif


[TextureOverrideEvelynBodyB]
hash = 04b53ecd
match_first_index = 50418
ib = ResourceEvelynBodyBIB
Resource\ZZMI\Diffuse = ref ResourceEvelynBodyBDiffuse
Resource\ZZMI\NormalMap = ref ResourceEvelynBodyBNormalMap
Resource\ZZMI\LightMap = ref ResourceEvelynBodyBLightMap
Resource\ZZMI\MaterialMap = ref ResourceEvelynBodyBMaterialMap
run = CommandList\ZZMI\SetTextures
; EvelynBodyB-vb0=67eafa06.txt.002 (4)
drawindexed = 6, 0, 0

[TextureOverrideEvelynFaceADiffuse]
hash = 8e1d1a6f
this = ResourceEvelynFaceADiffuse

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

[ResourceEvelynBodyPosition]
type = Buffer
stride = 40
filename = EvelynBodyPosition.buf

[ResourceEvelynBodyBlend]
type = Buffer
stride = 32
filename = EvelynBodyBlend.buf

[ResourceEvelynBodyTexcoord]
type = Buffer
stride = 20
filename = EvelynBodyTexcoord.buf

[ResourceEvelynBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = EvelynBodyA.ib

[ResourceEvelynBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = EvelynBodyB.ib

[ResourceEvelynFaceADiffuse]
filename = EvelynFaceADiffuse.dds

[ResourceEvelynBodyADiffuse]
filename = EvelynBodyADiffuse.dds

[ResourceEvelynBodyANormalMap]
filename = EvelynBodyANormalMap.dds

[ResourceEvelynBodyALightMap]
filename = EvelynBodyALightMap.dds

[ResourceEvelynBodyAMaterialMap]
filename = EvelynBodyAMaterialMap.dds

[ResourceEvelynBodyADiffuse1]
filename = EvelynBodyADiffuse1.dds

[ResourceEvelynBodyANormalMap1]
filename = EvelynBodyANormalMap1.dds

[ResourceEvelynBodyALightMap1]
filename = EvelynBodyALightMap1.dds

[ResourceEvelynBodyAMaterialMap1]
filename = EvelynBodyAMaterialMap1.dds

[ResourceEvelynBodyADiffuse2]
filename = EvelynBodyADiffuse2.dds

[ResourceEvelynBodyANormalMap2]
filename = EvelynBodyANormalMap2.dds

[ResourceEvelynBodyALightMap2]
filename = EvelynBodyALightMap2.dds

[ResourceEvelynBodyAMaterialMap2]
filename = EvelynBodyAMaterialMap2.dds

[ResourceEvelynBodyBDiffuse]
filename = EvelynBodyBDiffuse.dds

[ResourceEvelynBodyBNormalMap]
filename = EvelynBodyBNormalMap.dds

[ResourceEvelynBodyBLightMap]
filename = EvelynBodyBLightMap.dds

[ResourceEvelynBodyBMaterialMap]
filename = EvelynBodyBMaterialMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Mr.wood"

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