<?xml version="1.0"  encoding="Windows-1251"?>
<data>

<!-- описание гуи в игре -->

<!-- базовое игровое окно -->
<gamestate inherite="state" on_key_handler="gamestate_on_key" update="game_update" >

	<lua_window inherite="game" layer="10" id="game" />
</gamestate>


<!-- окно, где происходит игра -->
<game   
  id="game" x="0" y="0" width="800" height="600" moveable="0" lua="general lua machine"
  generic_handler="game_generic_handler" on_key_handler="on_game_key_down"  >

  <!-- курсор, имеет смысл менять только layer -->
  <cursor x="-1" y="-1" layer="100" id="cursor"/>

  <!-- область появления полос -->
  <stripe_area x="182" y="39" width="480" height="450" layer="10" id="stripe_area" />

  <!-- конвеер -->
  <pipeline x="207" y="510" width="450" height="90" layer="21" id="pipeline" />

  <!-- сброс 
	image_glow - подсвеченное изображение сброса
	timeout - пуза между сбросами при зажатии пробела
  -->
  <discard x="41" y="494" layer="21" id="discard" 
	image="image_game_gui_discard" image_glow="image_game_gui_discard_glow" timeout="100"/>

  <!-- место, где появляются амулеты -->
  <amulet_place x="15" y="259" width="106" height="180" layer="31" id="amulet_place"
    	amuletx="30" amulety="12" amuletwidth="57" amuletheight="102" backimage="image_game_gui_amuletback" />

  <image_widget image="image_game_gui_amulet_hole" x="37" y="262" layer="36"/>

  <!-- место, где появляются боги -->
  <god_place x="24" y="54" width="105" height="117" layer="31" skyimage="image_game_gods_godsky" id="god_place"/>

  <!-- слайдер сатисфакции -->
  <satisfaction_view x="22" y="175" width = "109" height="25" stripex="0" stripey="0" layer="31" id="satisfaction_view"
    left="29" right="109" slider_image="image_game_gui_satisfaction_slider"
    back_image="image_game_gui_satisfaction_back" red_image="image_game_gui_satisfaction_red"
    blue_image="image_game_gui_satisfaction" glow_image="image_game_gui_satisfaction_glow"/>

  <!-- изображения из жизни египтян -->
  <life_scene id="life_scene" x="184" y="74" width="475" height="415" layer="9" />

  <!-- задний фон -->
  <image_widget image="image_game_gui_back" x="0" y="0" layer="1" />
  <image_widget image="image_game_gui_collum_left" x="179" y="28" layer="30" />
  <image_widget image="image_game_gui_collum_right" x="640" y="28" layer="30" />
  <image_widget image="image_game_gui_discard_base" x="41" y="494" layer="2" />

  <!-- кнопка лотуса -->
  <button_widget id="lotus" image="image_game_gui_lotus" x="10" y ="440" layer="31"/>
  <!-- отображение кол-ва лотусов -->
  <label_widget inherite="text_base_number" id="lotus_view" width="80" height="25" single_line="1"
    x="11" y="465" justification="left" layer="31" text='x00'/>

  <!-- кнопка еды -->
  <button_widget id="food" image="image_game_gui_food" x="53" y ="440" layer="31"/>
  <!-- отображение кол-ва еды -->
  <label_widget inherite="text_base_number" id="food_view" width="80" height="25" single_line="1"
    x="57" y="465" justification="left" layer="31" text='x00'/>

  <!-- кнопка благовоний -->
  <button_widget id="aroma" image="image_game_gui_aroma" x="105" y ="425" layer="31"/>
  <!-- отображение кол-ва благовоний -->
  <label_widget inherite="text_base_number" id="aroma_view" width="80" height="25" single_line="1"
    x="104" y="465" justification="left" layer="31" text='x00'/>

  <!-- отображение кол-ва очков уровня-->
  <label_widget inherite="text_base_number" id="score_view" width="80" height="30" single_line="1"
    x="710" y="216" justification="center" layer="31"/>

  <!-- отображение кол-ва очков для прохождения уровня-->
  <label_widget inherite="text_base_number" id="goal_score_view" width="80" height="30" single_line="1"
    x="710" y="165" justification="center" layer="31"/>

  <!-- отображение глобального кол-ва очков -->
  <label_widget inherite="text_base_number" id="global_score_view" width="100" height="30" single_line="1"
    x="405" y="0" justification="left" layer="31"/>

  <!-- отображение кол-ва жизней-->
  <label_widget inherite="text_base_number" id="lives_view" width="80" height="80" single_line="1"
   x="710" y="35" justification="center" layer="31"/>

  <!-- отображение номера уровня -->
  <label_widget inherite="text_base_number" id="level" width="80" height="25" single_line="1"
    x="710" y="110" justification="center" layer="31"/>

  <!-- отображение кол-ва драг. камней -->
  <label_widget inherite="text_base_number" id="gems_view" width="55" height="18" single_line="1"
    x="720" y="319" justification="center" layer="31"/>

  <!-- место, где отображаются сами драг. камни -->
  <image_widget id="show_gem" image="image_game_bonuses_fastgem" x="730" y="281" width="34" height="38" layer="31" stop_animation="1"/>

  <!-- отображение кол-ва амулетов-->
  <label_widget inherite="text_base_text" id="amulets_count" width="100" height="25" single_line="1"
    x="23" y="240" justification="center" layer="31"/>

  <!-- отображение названия амулета -->
  <label_widget inherite="text_base_text" id="amulet_name" width="100" height="25" single_line="1"
    x="23" y="375" justification="center" layer="31"/>

  <!-- отображение цены амулета -->
  <label_widget inherite="text_base_number" id="amulet_cost" width="60" height="25" single_line="1"
    x="67" y="395" justification="left" layer="31"/>

  <!-- отображение текущей стоимости амулета -->
  <label_widget inherite="text_base_number" id="cur_amulet_value" width="100" height="25" single_line="1"
    x="23" y="210" justification="center" layer="31"/>


  <handler action="pressed" widget_id="lotus" function="on_lotus_pressed" />
  <handler action="pressed" widget_id="food" function="on_food_pressed" />
  <handler action="pressed" widget_id="aroma" function="on_aroma_pressed" />

  <!-- какие-то тексты :) -->
          <!-- "Очки за Амулет:" -->   
  <label_widget inherite="text_base_text" single_line="1"
    x="10" y="198" width="130" height="12"
    justification="center" layer="31" text="$10"/>
          <!-- "Максимальные очки за амулет" --> 
  <label_widget inherite="text_base_text" single_line="1"
    x="28" y="395" width="64" height="25"
    justification="left" layer="31" text="$157"/>
          <!-- "Жизни" --> 
  <label_widget inherite="text_base_text" single_line="1"
    x="704" y="48" width="64" height="16"
    justification="left" layer="31" text="$2"/> 
          <!-- "Уровень" -->  
  <label_widget inherite="text_base_text" single_line="1"
    x="704" y="92" width="64" height="16"
    justification="left" layer="31" text="$3"/> 
          <!-- "Цель уровня" -->  
  <label_widget inherite="text_base_text" single_line="1"
    x="704" y="146" width="95" height="16"
    justification="left" layer="31" text="$4"/>
          <!-- "Текущий счет" -->  
  <label_widget inherite="text_base_text" single_line="1"
    x="704" y="198" width="95" height="16"
    justification="left" layer="31" text="$5"/>
          <!-- "Общий счет" -->
  <label_widget inherite="text_base_text" single_line="1"
    x="200" y="7" width="200" height="16"
    justification="right" layer="31" text="$6"/>
          <!-- "Камни" -->
  <label_widget inherite="text_base_text"
    x="704" y="240" width="95" height="30"
    justification="center" layer="31" text="$7"/>

  <!-- кнопка выхода в меню -->
  <button_widget inherite="base_game_button" id="menu" x="703" y="390" layer="30"
  	label_text="$0" />

  <!-- кнопка помощи -->
  <button_widget inherite="base_game_button" id="help" x="703" y="438" layer="30" 
	label_text="$1" />

</game>
<!-- основное игровое окно ЗАКОНЧИЛОСЬ -->

<!-- далее идет описание магазина амулетов -->

<!-- шаблон кнопки покупки амулетов -->
<shop_amulet image="image_game_gui_shop_button" 
	width="116" height="156" front_image_rect="33 35 50 90"
	fade_time="150" >

  <label_widget inherite="text_base_text" id="name" 
	width="116" height="21" single_line="1" justification="center"
	text="AMULET NAME" />

  <label_widget id="gem cost" 
	font="font_text" width="116" height="28" single_line="1" justification="center" y="123"
	text="AMULET GEM COST" color="255 98 79 46" />
  
<label_widget id="gems"
	font="font_text" width="116" height="28" single_line="1" justification="center" y="134"
	text="$184" color="255 98 79 46" />

  <label_widget id="cost" 
	font="font_text" width="58" height="30" single_line="1" justification="left" x="58" y="16"
	text="AMULET COST" color="255 98 79 46" />
  
  <label_widget
	font="font_text" width="58" height="30" single_line="1" justification="right" x=0 y="16"
	text="$157" color="255 98 79 46" />
</shop_amulet>

<!-- шаблон кнопки покупки даров -->
<shop_gift_image	
	x="38" y="65" center_pos="1" />
<shop_gift_name id="name"
	font="font_text" width="77" height="30" single_line="1" justification="center" y="22"
	text="GIFT NAME" color="255 98 79 46" />

<shop_gift_gem id="gem_text"
	font="font_text" width="77" height="30" single_line="1" justification="center" y="104"
	text="$186" color="255 98 79 46" />

<shop_gift	
	image="image_game_gui_shop_button2" width="77" height="127" >
  <label_widget   id="cost"
	font="font_text" width="77" height="30" single_line="1" justification="center" y="92"
	text="GIFT GEM COST" color="255 98 79 46" />

  <label_widget   id="count"
	font="font_number" width="77" height="30" single_line="1" justification="center"
	text="x00" color="255 98 79 46" />
</shop_gift>

<!-- магазин -->
<shop_window id="shop"
  inherite="base_window" width="801" height="600" 
  generic_handler="shop_generic_handler" moveable="0" update="shop_window_update" >

<image_widget  image="image_game_gui_shop_back"  x="26" y="46" layer="13" />
	

 <!-- заголовок -->
 <label_widget inherite="text_base_title"
	width="800" height="30" single_line="1" justification="center" y="17"
	text="$15" />
   <!-- количество камней -->
  <label_widget id="gems" x="471" y="52" justification="left"
	font="font_button" color="255 98 79 46" />
  <label_widget  id="gemstext" text="$16" x="453" y="52" justification="right"
	font="font_button" color="255 98 79 46" />
  <image_widget id="gemsimage" image="image_game_bonuses_gem" x="447" y="50"  width="27" height="30" layer="15"/>

  <!-- кнопка покупки лотуса -->
  <button_widget id="lotus" inherite="shop_gift" x="277" y="81" >
  	<image_widget inherite="shop_gift_image" image="image_game_gui_lotus" 
		width="37" height="28"
		source_rectangle="0 0 37 28" />
    	<label_widget   inherite="shop_gift_name" text="$12" />
            <label_widget   inherite="shop_gift_gem"  text="$185" />
            <image_widget image="image_game_gui_small_eye" x="30" y= "82"/>

  </button_widget>

  <!-- кнопка покупки еды -->
  <button_widget id="food" inherite="shop_gift" x="360" y="81" >
  	<image_widget inherite="shop_gift_image" image="image_game_gui_food" 
		width="46" height="29"
		source_rectangle="0 0 46 29" />
    	<label_widget   inherite="shop_gift_name" text="$13" />
            <label_widget   inherite="shop_gift_gem" />
            <image_widget image="image_game_gui_small_eye" x="23" y= "82"/>
            <image_widget image="image_game_gui_small_eye" x="38" y= "82"/>
  </button_widget>

  <!-- кнопка покупки благовоний -->
  <button_widget id="aroma" inherite="shop_gift" x="444" y="81" >
  	<image_widget inherite="shop_gift_image" image="image_game_gui_aroma" 
		width="36" height="44"  y="62"
		source_rectangle="0 0 36 44" />
    	<label_widget   inherite="shop_gift_name" text="$14" />
            <label_widget   inherite="shop_gift_gem"/>
            <image_widget image="image_game_gui_small_eye" x="15" y= "82"/>
            <image_widget image="image_game_gui_small_eye" x="30" y= "82"/>
            <image_widget image="image_game_gui_small_eye" x="45" y= "82"/>
  </button_widget>


  <!-- кнопки покупки амулетов -->
  <shop_button inherite="shop_amulet" x="28" y="52" id="1"  />
  <shop_button inherite="shop_amulet" x="153" y="52" id="2"/>
  <shop_button inherite="shop_amulet" x="528" y="52" id="3" />
  <shop_button inherite="shop_amulet" x="654" y="52" id="4" />

  <shop_button inherite="shop_amulet" x="28" y="215" id="5"/>
  <shop_button inherite="shop_amulet" x="153" y="215" id="6"/>
  <shop_button inherite="shop_amulet" x="278" y="215" id="7" />
  <shop_button inherite="shop_amulet" x="403" y="215" id="8" />
  <shop_button inherite="shop_amulet" x="528" y="215" id="9" front_image_rect="33 30 50 90" />
  <shop_button inherite="shop_amulet" x="654" y="215" id="10" front_image_rect="33 30 50 90" />

  <shop_button inherite="shop_amulet" x="28" y="378" id="11" />
  <shop_button inherite="shop_amulet" x="153" y="378" id="12"/>
  <shop_button inherite="shop_amulet" x="278" y="378" id="13"/>
  <shop_button inherite="shop_amulet" x="403" y="378" id="14"/>
  <shop_button inherite="shop_amulet" x="528" y="378" id="15"/>
  <shop_button inherite="shop_amulet" x="654" y="378" id="16"/>

  <button_widget inherite="base_game_button" id="continue" x="530" y="539" fit_text="1" label_text="$136" width="120"/>
  <button_widget inherite="base_game_button" id="hint" x="150" y="539" fit_text="1" label_text="$223" width="120"/>
  <handler action="pressed" widget_id="continue" function="shop_on_continue_pressed" />
  <handler action="pressed" widget_id="hint" function="shop_on_hint_pressed" />
  <handler action="load_template" function="shop_on_load_template" />

  <handler action="pressed" widget_id="lotus" function="shop_on_lotus_pressed" />
  <handler action="pressed" widget_id="food" function="shop_on_food_pressed" />
  <handler action="pressed" widget_id="aroma" function="shop_on_aroma_pressed" />

</shop_window>

<!-- окно подсказки в магазине -->
<shop_hint_window inherite="base_window" 
	width="500" height="560" x="150" y="20" generic_handler="shophint_generic_handler" moveable="1" >

	<flash_widget x="45" y="50" flash="images/flash/shop_amulet.swf"/>
	<flash_widget x="45" y="270" flash="images/flash/shop_gift.swf"/>

	<button_widget inherite="base_game_button" width="120" id="close" x="190" y="490" label_text="$225" />
      
      <label_widget inherite="text_base_title"
	width="500" height="30" single_line="1" justification="center" y="17"
	text="$224" />

</shop_hint_window>

</data>
