<?xml version="1.0" encoding="utf-8" ?>
<Layout>

	<Image x="44" y="127" image="demons_bkg.png"/>
    
    <SelectorController>
        <Action type="1" axis="2" val="-0.5" use_val="1" cmd="left"/>
        <Action type="1" axis="2" val="0.5" use_val="1" cmd="right"/>
        <Action type="1" axis="3" val="-0.5" use_val="1" cmd="up"/>
        <Action type="1" axis="3" val="0.5" use_val="1" cmd="down"/>
        <Action type="0" btn="9" cmd="press"/>
        
        <Container class="GPGraphContainer"/>

        <Item path="../*/btn_baal" scale="1 1" def="1"/>
        <Item path="../*/btn_astaroth" scale="1 1" />
        <Item path="../*/btn_chimera" scale="1 1" />
        <Item path="../*/btn_medusa" scale="1 1" />
        <Item path="../*/btn_kronos" scale="1 1" />
        <Item path="../*/btn_shub_niggurath" scale="1 1" />
        <Item path="../*/btn_mammon" scale="1 1" />
        <Item path="../*/btn_cthulhu" scale="1 1" />
        <Item path="../*/btn_succubus" scale="1 1" />
        
    </SelectorController>

	<Widget x="0" y="120" name="widget_page">

		<!-- line 1 -->

		<Widget x="-15" y="0">
			<!-- baal -->
			<Button name="btn_baal" x="5" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="baal" subPath="/demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":34,"y":6}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="baal" handler="switch"/>
				
<!-- 				<DemonBonusNotif x="128" y="93" demon="baal">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>

			<!-- astaroth -->
			<Button name="btn_astaroth" x="165" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="astaroth" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":33,"y":3}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="astaroth" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="astaroth">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>


			<Button name="btn_chimera" x="325" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="chimera" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":41,"y":7}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="chimera" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="chimera">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>
		</Widget>

		<!-- line 2 -->

		<Widget x="-15" y="180">
			<Button name="btn_medusa" x="5" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="medusa" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":40,"y":10}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="medusa" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="medusa">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>


			<Button name="btn_kronos" x="165" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="kronos" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":42,"y":8}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="kronos" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="kronos">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>


			<Button name="btn_shub_niggurath" x="325" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="shub_niggurath" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":41,"y":6}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="shub_niggurath" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="shub_niggurath">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>
		</Widget>

		<!-- line 3 -->

		<Widget x="-15" y="360">
			<Button name="btn_mammon" x="5" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="mammon" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":39,"y":4}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="mammon" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="mammon">
					<Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>

			<Button name="btn_cthulhu" x="165" y="0">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="cthulhu" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":39,"y":2}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="cthulhu" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="cthulhu">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>

			<Button name="btn_succubus" x="325" y="0" show_if="$config.options_kids_safe != 1">
				<DemonSlot x="0" y="0" xml="demon_slot_small.xml" demon="succubus" subPath="demon_list/small/">
					<Properties>
						<Property key="iconOffset">{"default":{"x":40,"y":5}}</Property>
					</Properties>
				</DemonSlot>

				<Click cmd="switch" param="succubus" handler="switch"/>

<!-- 				<DemonBonusNotif x="128" y="93" demon="succubus">
                    <Image x="18" y="18" name="collectSign" image="notification_collect.png"/>
                    <Image x="18" y="18" name="waitSign" image="notification_wait.png"/>
				</DemonBonusNotif> -->
			</Button>

		</Widget>
	</Widget>

	<DemonSwitch>
		<Properties>
			<Property key="isLandscape">1</Property>
		</Properties>
	</DemonSwitch>

	<AnimController autoPlay="1">
		<ActionGroup>
			<EfxPlaySound sound="demons_screen_open"/>				
			<EfxSendEvent event="back_pane" param="back_from_battle_map"/>
			<EfxSendEvent event="reset_pane" param="shop"/>
			<EfxSendEvent event="shop_pane" param="empty"/>			
			<EfxSendEvent event="play_menu_right" param="demon"/>
		</ActionGroup>
	</AnimController>

	<AnimController autoPlay="0" handler="demon_showing_off_again_and_again">
		<ActionChain>
			<EfxWait delay="5"/>
			<EfxPlaySound sound="demons_talk" voice="1"/>			
		</ActionChain>
	</AnimController>		
	
	<Properties>
		<Property key="btn_selected">item_Demon</Property>
	</Properties>

    <GPPanel x="425" y="650">
        <GPPanelIcon x="0" y="0" alias="rs" auto_visible="0"/>
        <GPPanelIcon x="40" y="0" alias="btn_rb" auto_visible="0"/>
    </GPPanel>
    
</Layout>
