<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE panel SYSTEM "http://www.sigames.com/dtds/sios/panel.dtd">


<!-- this file lists the global panels that should be installed -->
<panel name="global panels" version="1.0">

<!-- background picture - covers entire screen -->
<widget class="background" file="backgrounds/default">
	<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
	<!-- <attachment class="test_global_attachment" get_property="bgnd" mode="1" set_property="hidn" skip_if_null="false" skip_if_resetting="false"/> -->
        <attachment class="get_global_attachment" get_property="bgnd" set_property="file" skip_if_null="true"/>
  	</widget>
	<widget class="background" file="backgrounds/default" hidden="true">
    <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
    <attachment class="get_global_attachment" get_property="bgnd" set_property="file" skip_if_null="false"/>
    <attachment class="test_global_attachment" get_property="bgnd" mode="0" set_property="hidn" skip_if_null="false" 	skip_if_resetting="false"/>
  		</widget>


 <!-- BACKGROUNDS FOR CYCLING -->
  
  <widget class="background" id="bgd1" file="backgrounds/1" hidn="true">
  	  <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
  </widget>
  
  <widget class="background" id="bgd2" file="backgrounds/2" hidn="true">
  	  <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
  </widget>
  
  <widget class="background" id="bgd3" file="backgrounds/3" hidn="true">
    	<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
  </widget>
  
  <widget class="background" id="bgd4" file="backgrounds/4" hidn="true">
    	<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
  </widget>
  
  <widget class="background" id="bgd5" file="backgrounds/5" hidn="true">
   	 <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
  </widget>
 

  <!-- END OF BACKGROUNDS FOR CYCLING-->
  	<!-- Panels Box -->
	<!-- Contains global panels - also the container for the screen -->
	<container id="pnls">
    
		<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>
		<layout class="arrange_vertical_attachment" alignment="middle, extend" gap="0" offset="0"/>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
   		
		<!-- dummy container inserted here to make the arrange_vertical attachment choose the correct container as the middle one when the header is hidden -->
		<container height="0"/>
		
		<!-- header area at top of screen - with title, menus, etc -->  
		<container id="head" file="header">
			<!-- hide this panel if the game isn't set up yet -->
			<attachment class="test_global_attachment" get_property="scid" set_property="hidn" skip_if_false="true" value="2"/>

			<!-- hide this panel in "zoomed" mode -->
			<attachment class="test_global_attachment" get_property="FS  " value="true" mode="0" set_property="hidn" skip_if_null="false" skip_if_resetting="false"/>
		</container>
		
		<!-- main area - contains sections/actions panel and content areas -->
		<container id="main">
			<layout class="arrange_horizontal_attachment" alignment="right, extend" gap="-2" offset="0"/>
			<layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>
			
			<!-- screen content area -->
			<container id="scca">
				<layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0"/>
			</container>
			
			<!-- sections area on the side of the screen -->
			<container id="sect" file="sections">
				<!-- stick to left of screen -->
				<layout class="fit_children_attachment" alignment="horizontal" offset="0"/>

				<!-- hide this panel if the game isn't set up yet -->
				<attachment class="test_global_attachment" get_property="scid" set_property="hidn" skip_if_false="true" value="2"/>

				<!-- hide this panel in "zoomed" mode -->
				<attachment class="test_global_attachment" get_property="FS  " value="true" mode="0" set_property="hidn" skip_if_null="false" skip_if_resetting="false"/>
				
			</container>

		</container>
		
		<!-- footer area at bottom of screen - with ticker, breadcrumbs, etc -->
		<container id="foot" file="footer">
			<attachment class="test_global_attachment" get_property="FS  " value="true" mode="0" set_property="hidn" skip_if_null="false" skip_if_resetting="false"/>
		</container>
	</container>

	<!-- progress panel -->	
	<container class="progress_panel">
		<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
        <attachment class="get_global_attachment" get_property="prgp" set_property="prgp"/>
	</container>
            
	<!-- notification container -->
	<container class="notification_container_panel" id="nocp">
		<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
		<attachment class="get_global_attachment" get_property="adno" set_property="newn" skip_if_null="false"/>
		<boolean id="exclude_from_find" value="true" />
	</container>
 
 <!--EXTRA PANEL-->
    <container file="about">
       <layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
	</container>	
	<!-- modal area (last and top-most) -->	
	<container id="modl">
		<layout class="stick_to_sides_attachment" alignment="all" inset="0"/>
	</container>

	<widget class="action_button" text="Exit Full Screen" auto_size="all">
		<event id="click_event" event_id="TgFS" event_target="scrn"/>
		<attachment class="test_global_attachment" get_property="FS  " value="true" mode="1" set_property="hidn" skip_if_null="false" skip_if_resetting="false"/>
		
		<layout class="stick_to_sides_attachment" alignment="bottom" inset="15"/>
		<layout class="stick_to_sides_attachment" alignment="right" inset="10"/>
	
	</widget>


</panel>
