<?xml version="1.0" encoding="utf-8" ?>
<Layout>
	<Image x="5" y="112" image="/demon_list/demon_portal.png"/>

	<Image name="glow" x="36" y="60" scale="1" image="/demon_list/portal_glow.png">

		<AnimController autoPlay="1" >
			<ActionChain>
				<EfxMove to_x="36" to_y="60" duration="0" modifier="fullarc"/>
				<EfxColor duration="0" to="FFFFFFFF" />
				<ActionRepeat repeat="-1">
					<EfxRotate from="0" to="-3590" duration="500"/>
				</ActionRepeat>
			</ActionChain>
		</AnimController>

		<!--AnimController autoPlay="0" events="event_ai_low_attack">
			<ActionChain>
				<ActionGroup>
					<EfxScale duration="0" to="1.0" />

					<EfxScale duration="0.2" from="1.0" to="1.2" />
					<EfxScale duration="0.5" from="1.2" to="0" />
				</ActionGroup>

				<EfxSendEvent event="event_ai_low_attack_particle"/>
			</ActionChain>
		</AnimController-->
	</Image>

	<SkeletonWidget x="238" y="288" name="ai_stun_boom_down" data="data/spine/stun_boom_down.json" atlas="demon_battle/spine/stun_boom_down.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1" events="e_ai_stunt_hide">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<SkeletonWidget x="238" y="288" name="ai_healing_down" data="data/spine/healing_down.json" atlas="demon_battle/spine/healing_down.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<SkeletonWidget x="238" y="288" name="ai_stun_start" data="data/spine/stun_start.json" atlas="demon_battle/spine/stun_start.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<SkeletonWidget x="238" y="288" name="ai_attack_bkg" data="data/spine/attack_start.json" atlas="demon_battle/spine/attack_start.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<SkeletonWidget x="238" y="288" name="ai_magic_start" data="data/spine/magic_start.json" atlas="demon_battle/spine/magic_start.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<Widget x="95" y="115">

		<Image name="demon" scale="1" x="-20" y="5">

			<AnimController autoPlay="0" events="event_long_damages_ai">
				<ActionChain>
					<EfxMove from_x="-20" from_y="5" to_x="-20" to_y="5" duration="0" modifier="fullarc"/>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFFFFFF" to="FFFF0000" />
						<EfxMove from_x="-20" from_y="5" to_x="-15" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFF0000" to="FFFFFFFF" />
						<EfxMove from_x="-15" from_y="5" to_x="-25" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFFFFFF" to="FFFF0000" />
						<EfxMove from_x="-25" from_y="5" to_x="-15" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFFFFFF" to="FFFF0000" />
						<EfxMove from_x="-15" from_y="5" to_x="-25" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFF0000" to="FFFFFFFF" />
						<EfxMove from_x="-25" from_y="5" to_x="-15" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<ActionGroup>
						<EfxColor duration="0.1" from="FFFFFFFF" to="FFFF0000" />
						<EfxMove from_x="-15" from_y="5" to_x="-20" to_y="5" duration="0.1" modifier="fullarc"/>
					</ActionGroup>
					<EfxMove from_x="-20" from_y="5" to_x="-20" to_y="5" duration="0" modifier="fullarc"/>
					<EfxColor duration="0.0" from="FFFF0000" to="FFFFFFFF" />
				</ActionChain>
			</AnimController>

			<AnimController autoPlay="0" events="event_human_low_attack_show">
				<ActionChain>
					<EfxColor duration="0.2" from="FFFFFFFF" to="FFFF0000" />
					<EfxColor duration="0.1" from="FFFF0000" to="FFFFFFFF" />
				</ActionChain>
			</AnimController>

			<AnimController autoPlay="0" events="event_change_ai_demon">
				<ActionChain>
					<EfxMove from_x="-20" from_y="5" to_x="220" to_y="5" duration="1" modifier="fullarc"/>
					<EfxSendEvent event="event_update_demons"/>
					<EfxMove from_x="220" from_y="5" to_x="-20" to_y="5" duration="1" modifier="fullarc"/>
					<EfxSendEvent event="e_change_ai_demon_end"/>
					<EfxSendEvent event="event_end_step"/>
				</ActionChain>
			</AnimController>

			<AnimController autoPlay="1">
				<ActionChain>
					<EfxMove from_x="-0" from_y="5" to_x="-20" to_y="5" duration="0"/>
				</ActionChain>
			</AnimController>

			<AnimController autoPlay="0" events="e_demon_ai_hide">
				<ActionChain>
					<EfxMove from_x="-20" from_y="5" to_x="440" to_y="5" duration="1" modifier="fullarc"/>
					<EfxSendEvent event="e_demon_ai_disappeared"/>
				</ActionChain>
			</AnimController>
		</Image>

		
		<AnimController autoPlay="1" events="e_ai_stunt_hide">
			<ActionChain>
				<EfxColor duration="0.0" from="FF646464" to="FFFFFFFF" />
			</ActionChain>
		</AnimController>

		<AnimController autoPlay="0" events="e_ai_stunt_show">
			<ActionChain>
				<EfxColor duration="0.5" from="FFFFFFFF" to="FF646464" />
			</ActionChain>
		</AnimController>

	</Widget>
	
	<SkeletonWidget x="238" y="282" name="ai_stun_boom_up" data="data/spine/stun_boom_up.json" atlas="demon_battle/spine/stun_boom_up.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>

		<AnimController autoPlay="1" events="e_ai_stunt_hide">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<SkeletonWidget x="238" y="282" name="ai_healing_up" data="data/spine/healing_up.json" atlas="demon_battle/spine/healing_up.atlas" base_scale="2" visible="0">
		<Scenario>
		[
			{
				"id": "flip",
				"x": false,
				"y": false,
			},
		]
		</Scenario>
		
		<AnimController autoPlay="1">
			<ActionGroup>
				<EfxVisible delay="0" visible="0"/>
			</ActionGroup>
		</AnimController>
	</SkeletonWidget>

	<Widget name="hp_label" x="220" y="231">
		<Text name="damage_low" x="0" y="0" width="50" text="99" font="medium" align="C" color="FFFFFFFF" visible="0">
			<AnimController autoPlay="0" events="event_human_low_attack_show" xml="battle_hp_item_template_damage.xml"/>		
		</Text>

		<Text name="damage_long" x="0" y="0" width="50" text="99" font="medium" align="C" color="FFFFFFFF" visible="0">
			<AnimController autoPlay="0" events="event_long_damages_ai_show" xml="battle_hp_item_template_damage.xml"/>		
		</Text>

		<Text name="damage_add" x="0" y="0" width="50" text="99" font="medium" align="C" color="FFFFFFFF" visible="0">
			<AnimController autoPlay="0" events="event_protection_ai_final" xml="battle_hp_item_template_heal.xml"/>		
		</Text>
	</Widget>

	<Image name="demon_name" x="112" y="406" scale="1" image="/demon_list/board_name.png">
		<Text name="name" x="50" y="18" width="160" height="12" font="font" text="" align="C" color="FFFFFFFF"/>
	</Image>

	<Widget name="all_icons" x="360" y="90" width="86" height="258" visible="0">
		<Widget name="d_1" x="0" y="0" width="86" height="86" visible="0">
			<RadioButton x="0" y="0" name="rb_d_1" group="all_icons" read_only="1">
				<Image name="on" x="0" y="0" width="65" height="65" visible="0">
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/selected.png" />
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="1" align="C" color="FFfef338"/>
				</Image>
				<Image name="off" x="0" y="0" width="65" height="65">
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/default.png"/>
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="1" align="C" color="FFfef338"/>
				</Image>
			</RadioButton>
		</Widget>

		<Widget name="d_2" x="0" y="80" width="86" height="86" visible="0">
			<RadioButton x="0" y="0" name="rb_d_2" group="all_icons" read_only="1">
				<Image name="on" x="0" y="0" width="65" height="65" visible="0">
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/selected.png" />
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="2" align="C" color="FFfef338"/>
				</Image>
				<Image name="off" x="0" y="0" width="65" height="65" >
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/default.png"/>
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="2" align="C" color="FFfef338"/>
				</Image>
			</RadioButton>
		</Widget>

		<Widget name="d_3" x="0" y="160" width="86" height="86" visible="0">
			<RadioButton x="0" y="0" name="rb_d_3" group="all_icons" read_only="1">
				<Image name="on" x="0" y="0" width="65" height="65" visible="0">
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/selected.png" />
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="3" align="C" color="FFfef338"/>
				</Image>
				<Image name="off" x="0" y="0" width="65" height="65">
					<Image name="border" x="-9" y="-9" width="86" height="86" image="/demon_battle/avatar_border/default.png"/>
					<Text name="number" x="6" y="44" width="15" height="15" font="author" text="3" align="C" color="FFfef338"/>
				</Image>
			</RadioButton>
		</Widget>
	</Widget>

	<Widget name="hp" x="136" y="472">
		<Text name="text" x="40" y="-4" width="150" height="10" font="small" text="DEMON_HP_TITLE" align="C" color="FFF6982D" />
		<Image name="border" x="0" y="0" image="/demon_battle/hp_board_01.png" />
		<Image name="value" x="43.5" y="16.5" width="154" height="20" image="/demon_battle/hp_board_02.png" />
		<Text name="value_text" x="58" y="18" width="120" height="12" font="author" text="" align="C" color="FFFFFFFF"/>
	</Widget>

	<Widget name="mana" x="136" y="513">
		<Text name="text" x="40" y="-4" width="150" height="10" font="small" text="DEMON_MANA_TITLE" align="C" color="FFF6982D" />
		<Image name="border" x="0" y="0" image="/demon_battle/mana_board_01.png" />
		<Image name="value" x="43.5" y="16.5" width="154" height="20" image="/demon_battle/mana_board_02.png" />
		<Text name="value_text" x="58" y="18" width="120" height="12" font="author" text="" align="C" color="FFFFFFFF"/>
	</Widget>

</Layout>