; Ellen

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

[Constants]
global $active = 0
global $creditinfo = 0
		;Hair Key States
global persist $AnkleBand = 0
global persist $BodyB1 = 0
global persist $ChainClasp = 0
global persist $ChainClaspBack = 0
global persist $Chain = 0
global persist $FishboneSticker = 0
global persist $SwimsuitBottom = 0
global persist $SwimsuitTeethBottom = 0
		;Body Key States
global persist $BackstrapRed =	0	
global persist $BodyT1 = 0		
global persist $BodyT2 = 0		
global persist $ArmFrill = 0		
global persist $Bangle = 0
global persist $Bra = 0
global persist $Necklace = 0
global persist $SwimsuitTop = 0
global persist $Tail = 0
global persist $SwimsuitNeck = 0
		
	;Global Setup for each Swap. Requires default for swap. 	
[Present]
post $active = 0
run = CommandListCreditInfo

[KeyTail]
key = VK_DOWN
condition = $active == 1
type = cycle
$Tail = 0,1

[KeyBra]
key = VK_RIGHT
condition = $active == 1
type = cycle
$Bra = 0,1
$BackstrapRed = 0,1
$BodyT1 = 0,1
$BodyT2 = 0,1


[KeyTopOFF]
key = VK_UP
condition = $active == 1
type = cycle
$SwimsuitTop = 0,1
$SwimsuitBottom = 0,1
$SwimsuitTeethBottom = 0,1
$Chain = 0,1
$ChainClasp = 0,1
$ChainClaspBack = 0,1
$SwimsuitNeck = 0,1
$ArmFrill = 0,1

[KeyAccessories]
key = VK_LEFT
condition = $active == 1
type = cycle
$Necklace = 0,1,1
$Bangle = 0,1,1
$FishboneSticker = 0,1,0

$AnkleBand = 0,1,0
; Overrides -------------------------

[TextureOverrideEllenHairPosition]
hash = ba0fe600
; hash = a5448398
handling = skip
vb0 = ResourceEllenHairPosition
vb2 = ResourceEllenHairBlend
draw = 32964,0
$active = 1

[TextureOverrideEllenHairTexcoord]
hash = a27a8e1a
; hash = 5c33833e
; hash = 9cddb082
vb1 = ResourceEllenHairTexcoord

[TextureOverrideEllenHairVertexLimitRaise]
hash = 77ac5f85
; hash = d59a5fec
; override_vertex_count = 32529
; override_byte_stride = 96

[TextureOverrideEllenBodyPosition]
hash = b78f3616
; hash = 89d5fba4
handling = skip
vb0 = ResourceEllenBodyPosition
vb2 = ResourceEllenBodyBlend
draw = 71059,0
$active = 1

[TextureOverrideEllenBodyTexcoord]
hash = 5ac6d5ee
; hash = 26966844
vb1 = ResourceEllenBodyTexcoord

[TextureOverrideEllenBodyVertexLimitRaise]
hash = cdce1fc2
; hash = 7bd3f8c2
; override_vertex_count = 68462
; override_byte_stride = 96

[TextureOverrideEllenHairIB]
hash = d44a8015
; hash = 7f89a2b3
handling = skip

[TextureOverrideEllenHairA]
hash = d44a8015
; hash = 7f89a2b3
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceEllenHairAIB
; EllenHairA-KeepEmpty (0)
drawindexed = 0, 0, 0
; EllenHairA
	; Ankle Band (470)
	if $AnkleBand == 0	
		drawindexed = 2640, 0, 0
	endif
	; Body (Split).002 (13375)
	if $BodyB1 == 0	
		drawindexed = 73659, 2640, 0
	endif	
	; Chain Clasp (59)
	if $ChainClasp == 0		
		drawindexed = 240, 76299, 0
	endif
	; Chain Clasp Back (73)
	if $ChainClaspBack == 0		
		drawindexed = 240, 76539, 0
	endif	
	; Chain L (11388)
	if $Chain == 0		
		drawindexed = 62208, 76779, 0
	endif	
	; Fishbone Sticker (107)
	if $FishboneSticker == 0		
		drawindexed = 468, 138987, 0
	endif	
	; HairA.001 (4349)
		
	drawindexed = 12987, 139455, 0
	
	; Swimsuit Bottom (Tail) (2395)
	if $SwimsuitBottom == 0	
		drawindexed = 8064, 152442, 0
	endif	
	; Swimsuit Teeth Bottom (278)
	if $SwimsuitTeethBottom == 0
		drawindexed = 336, 160506, 0
	endif	
	; Thigh Band (470)

	drawindexed = 2112, 160842, 0

[TextureOverrideEllenHairADiffuse]
hash = 81ccd2e2
this = ResourceEllenHairADiffuse

[TextureOverrideEllen.HairA.Diffuse.1024]
hash = 1440e534
this = ResourceEllenHairADiffuse

[TextureOverrideEllenHairALightMap]
hash = dc9d8b6e
this = ResourceEllenHairALightMap

[TextureOverrideEllen.HairA.LightMap.1024]
hash = 8c835faa
this = ResourceEllenHairALightMap

[TextureOverrideEllenHairAMaterialMap]
hash = 01bb8189
this = ResourceEllenHairAMaterialMap

[TextureOverrideEllen.HairA.MaterialMap.1024]
hash = b21b8370
this = ResourceEllenHairAMaterialMap

[TextureOverrideEllenHairANormalMap]
hash = aaadca31
this = ResourceEllenHairANormalMap

[TextureOverrideEllen.HairA.NormalMap.1024]
hash = d6715e09
this = ResourceEllenHairANormalMap

[TextureOverrideEllenBodyIB]
hash = e30fae03
; hash = a72cfb34
handling = skip

[TextureOverrideEllenBodyA]
hash = e30fae03
; hash = a72cfb34
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceEllenBodyAIB
; EllenBodyA-KeepEmpty (0)
drawindexed = 0, 0, 0
; EllenBodyA
	; Arm Strap (357)
	
		drawindexed = 1476, 0, 0
	
	; Backstrap(Red) (316)
	if $BackstrapRed == 0	
		drawindexed = 1488, 1476, 0
	endif
	; Body (Split) (17966)
	if $BodyT1 == 0	
		drawindexed = 98994, 2964, 0
	endif
	; Body (Split).003 (17966)
	if $BodyT2 == 1
		drawindexed = 98994, 101958, 0
	endif	
	; BodyA.001 (5367)
	if $ArmFrill == 0	
		drawindexed = 9990, 200952, 0
	endif
	; BodyA.002 (375)
	if $Bangle == 0
		drawindexed = 780, 210942, 0
	endif	
	; Bra.001 (559)
	if $Bra == 0	
		drawindexed = 2448, 211722, 0
	endif
	; Buckle (24)
	
		drawindexed = 96, 214170, 0
	
	; Buckle Pin (113)
	
		drawindexed = 240, 214266, 0
	
	; Neck (281)
	
		drawindexed = 1206, 214506, 0
	endif	
	; Neck Thingy (750)
	if $Necklace == 0	
		drawindexed = 1734, 215712, 0
	endif	
	; Ribbon Holder (408)
	if $SwimsuitTop == 0	
		drawindexed = 1824, 217446, 0
	endif	
	; Ribbons (1635)
	if $SwimsuitTop == 0	
		drawindexed = 8064, 219270, 0
	endif	
	; Stocking.001 (10136)
		
		drawindexed = 53760, 227334, 0
	
	; Swimsuit Bottom (Tail).001 (1423)
	if $SwimsuitBottom == 0	
		drawindexed = 5664, 281094, 0
	endif	
	; Swimsuit Teeth (384)
	if $SwimsuitBottom == 0
		drawindexed = 384, 286758, 0
	endif	
	; Swimsuit Top (9580)
	if $SwimsuitTop == 0	
		drawindexed = 44244, 287142, 0
	endif	
	; Swimsuit Top.001 (268)
	if $SwimsuitTop == 0
		drawindexed = 768, 331386, 0
	endif	
	; Swimsuit Top.002 (2131)
	if $SwimsuitNeck == 1
		drawindexed = 9264, 332154, 0
	endif
	; Tail (554)
	if $Tail == 0
		drawindexed = 2358, 341418, 0
	endif
[TextureOverrideEllenBodyADiffuse]
hash = 163e2559
; hash = cf5f5fed
this = ResourceEllenBodyADiffuse

[TextureOverrideEllen.BodyA.Diffuse.1024]
hash = 22fa0cd6
; hash = cf5f5fed
this = ResourceEllenBodyADiffuse

[TextureOverrideEllenBodyALightMap]
hash = ff26fb83
this = ResourceEllenBodyALightMap

[TextureOverrideEllen.BodyA.LightMap.1024]
hash = cea7516a
this = ResourceEllenBodyALightMap

[TextureOverrideEllenBodyAMaterialMap]
hash = f4487235
this = ResourceEllenBodyAMaterialMap

[TextureOverrideEllen.BodyA.MaterialMap.1024]
hash = 30dc14d7
this = ResourceEllenBodyAMaterialMap

[TextureOverrideEllenBodyANormalMap]
hash = 798c3a51
this = ResourceEllenBodyANormalMap

[TextureOverrideEllen.BodyA.NormalMap.1024]
hash = 590880e5
this = ResourceEllenBodyANormalMap

[TextureOverrideEllenGlowMap]
hash = 8943e83a
this = ResourceEllenGlowMap


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

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

[ResourceEllenHairPosition]
type = Buffer
stride = 40
filename = EllenHairPosition.buf

[ResourceEllenHairBlend]
type = Buffer
stride = 32
filename = EllenHairBlend.buf

[ResourceEllenHairTexcoord]
type = Buffer
stride = 24
;stride = 36
;stride = 24
filename = EllenHairTexcoord.buf

[ResourceEllenBodyPosition]
type = Buffer
stride = 40
filename = EllenBodyPosition.buf

[ResourceEllenBodyBlend]
type = Buffer
stride = 32
filename = EllenBodyBlend.buf

[ResourceEllenBodyTexcoord]
type = Buffer
stride = 24
filename = EllenBodyTexcoord.buf

[ResourceEllenHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = EllenHairA.ib

[ResourceEllenBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = EllenBodyA.ib

[ResourceEllenHairADiffuse]
filename = EllenHairADiffuse.dds

[ResourceEllenHairALightMap]
filename = EllenHairALightMap.dds

[ResourceEllenHairAMaterialMap]
filename = EllenHairAMaterialMap.dds

[ResourceEllenHairANormalMap]
filename = EllenHairANormalMap.dds

[ResourceEllenBodyADiffuse]
filename = EllenBodyADiffuse.dds

[ResourceEllenBodyALightMap]
filename = EllenBodyALightMap.dds

[ResourceEllenBodyAMaterialMap]
filename = EllenBodyAMaterialMap.dds

[ResourceEllenBodyANormalMap]
filename = EllenBodyANormalMap.dds

[ResourceEllenGlowMap]
filename = EllenGlowMap.dds


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