[Constants]
global persist $pinchos_color = 0
global $mod_active = 0
global $slot_active = 0
global $id = 3729004
post run = CommandListLoadDefault

[Present]
post $mod_active = 0

[KeySwitchSlot1]
condition = $\mods\_id\id.ini\swimsuit1 == $id && $mod_active == 1
key = ctrl no_shift no_alt 1
type = cycle
$slot_active = 1, 0
run = CommandListSlot1, CommandListSlot0
[KeySwitchSlot2]
condition = $\mods\_id\id.ini\swimsuit2 == $id && $mod_active == 1
key = ctrl no_shift no_alt 2
type = cycle
$slot_active = 1, 0
run = CommandListSlot1, CommandListSlot0

[CommandListSlot1]
Resource\ShaderFixes\help.ini\Notification = ref ResourceSlot1
run = CustomShader\ShaderFixes\help.ini\FormatText
$\ShaderFixes\help.ini\notification_timeout = time + 2.0
[CommandListSlot0]
Resource\ShaderFixes\help.ini\Notification = ref ResourceSlot0
run = CustomShader\ShaderFixes\help.ini\FormatText
$\ShaderFixes\help.ini\notification_timeout = time + 2.0

[ResourceSlot1]
type = Buffer
data = "Appetizer Pinchos (Misaki/Tamaki/Fiona) Variation: On"
[ResourceSlot0]
type = Buffer
data = "Appetizer Pinchos (Misaki/Tamaki/Fiona) Variation: Off"

[CommandListID]
$\mods\_id\id.ini\swimsuit2 = $\mods\_id\id.ini\swimsuit1
$\mods\_id\id.ini\swimsuit1 = $id

[TextureOverride Body]
if $\mods\_id\id.ini\swimsuit1 != $id && $\mods\_id\id.ini\swimsuit2 != $id
	run = CommandListID
endif
hash = d7a4eb46
match_first_index = 0
$mod_active = 1


;Override & Lock Default Color
;run = CommandList1C


[TextureOverride1]
hash = b34e8f0f
ps-t0 = ResourceColor0 unless_null
match_priority = -1
[TextureOverride2]
hash = a5cf4b19
ps-t0 = ResourceColor0A unless_null
match_priority = -1
[TextureOverride3]
hash = 359316b2
ps-t0 = ResourceColor0L unless_null
match_priority = -1
[TextureOverride4]
hash = 173acd6c
ps-t0 = ResourceColor0S unless_null
ps-t1 = ResourceColor0SW unless_null
match_priority = -1
[TextureOverride1Misaki]
hash = 69c4b9f0
ps-t0 = ResourceColor0 unless_null
match_priority = -1
[TextureOverride2Misaki]
hash = 8a068ad4
ps-t0 = ResourceColor0A unless_null
match_priority = -1
[TextureOverride3Misaki]
hash = 66883c23
ps-t0 = ResourceColor0L unless_null
match_priority = -1
[TextureOverride4Misaki]
hash = 03b6c462
ps-t0 = ResourceColor0S unless_null
ps-t1 = ResourceColor0SW unless_null
match_priority = -1
[TextureOverride1Fiona]
hash = 23f7762a
ps-t0 = ResourceColor0 unless_null
match_priority = -1
[TextureOverride2Fiona]
hash = f10b59d6
ps-t0 = ResourceColor0S unless_null
ps-t1 = ResourceColor0SW unless_null
match_priority = -1

[CommandListLoadDefault]
if $pinchos_color == 0
	run = CommandList0C
elif $pinchos_color == 1
	run = CommandList1C
endif

;Key to change color
[KeyCycle1]
condition = $mod_active == 1 && $slot_active == 1
Key = ctrl no_alt shift x
type = cycle
$pinchos_color= 0, 1
run = CommandList0C, CommandList1C
[CommandList0C]
ResourceColor0 = ref ResourceColor0M
ResourceColor0L = ref ResourceColor0ML
ResourceColor0A = ref ResourceColor0MA
ResourceColor0S = ref ResourceColor0MS
ResourceColor0SW = ref ResourceColor0MSW
[CommandList1C]
ResourceColor0 = null
ResourceColor0L = null
ResourceColor0A = null
ResourceColor0S = null
ResourceColor0SW = null

;Resources
[ResourceColor0]
filename = resources\textures\mainBW.dds
[ResourceColor0L]
filename = resources\textures\laceBW.dds
[ResourceColor0A]
filename = resources\textures\accsDarker.dds
[ResourceColor0S]
filename = resources\textures\sockBW.dds
[ResourceColor0SW]
filename = resources\textures\sockWetBW.dds
[ResourceColor0M]
filename = resources\textures\mainBW.dds
[ResourceColor0ML]
filename = resources\textures\laceBW.dds
[ResourceColor0MA]
filename = resources\textures\accsDarker.dds
[ResourceColor0MS]
filename = resources\textures\sockBW.dds
[ResourceColor0MSW]
filename = resources\textures\sockWetBW.dds