<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
  <id>7776</id>
  <defaultcontrol>10</defaultcontrol>
  <allowoverlay>no</allowoverlay>
  <define>#header.label:7776</define>
  <define>#header.image:tetris\Logo.png</define>
  <define>#header.hover:</define>
  <controls>
  <import>common.backgroundcolour.xml</import>
    <import>common.window1.xml</import>
    <import>common.time.xml</import>
    <control>
      <description>button group</description>
      <type>group</type>
      <!-- animations in this screen are equal for all objects, because nextblock-image got it's animation by tetris control, but it's possition is in scoreboard -->
      <animation effect="fade" time="250">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
      <animation effect="slide" time="150" start="-300,0">WindowOpen</animation>
      <animation effect="slide" time="250" end="800,0">WindowClose</animation>
      <posX>71</posX>
      <posY>190</posY>
      <layout>StackLayout</layout>
      <control>
        <description>New Game</description>
        <type>button</type>
        <id>2</id>
        <label>19002</label>
        <onright>10</onright>
        <onup>17</onup>
      </control>
      <control>
        <description>Sounds</description>
        <type>togglebutton</type>
        <id>4</id>
        <label>19004</label>
        <textYOff>10</textYOff>
    	<textXOff>125</textXOff>
        <onright>10</onright>
      </control>
    </control>
    <control>
      <description>info group</description>
      <type>group</type>
      <animation effect="fade" time="250">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
      <animation effect="slide" time="150" start="-300,0">WindowOpen</animation>
      <animation effect="slide" time="250" end="800,0">WindowClose</animation>
      <control>
        <description>Scoreboard background</description>
        <type>image</type>
        <id>200</id>
        <posX>67</posX>
        <posY>402</posY>
        <width>337</width>
        <height>281</height>
        <texture>tetris\scoreboard.png</texture>
        <colordiffuse>60ffffff</colordiffuse>
      </control>
      <control>
        <description>Score: label</description>
        <type>label</type>
        <id>201</id>
        <posX>92</posX>
        <posY>312</posY>
        <label>19005</label>
      </control>
      <control>
        <description>Score</description>
        <type>label</type>
        <id>202</id>
        <posX>380</posX>
        <posY>312</posY>
        <width>288</width>
        <align>right</align>
        <label>#tetris_score</label>
      </control>
      <control>
        <description>Level: label</description>
        <type>label</type>
        <id>203</id>
        <posX>92</posX>
        <posY>355</posY>
        <label>19006</label>
      </control>
      <control>
        <description>Level</description>
        <type>label</type>
        <id>204</id>
        <posX>380</posX>
        <posY>355</posY>
        <width>288</width>
        <align>right</align>
        <label>#tetris_level</label>
      </control>
      <control>
        <description>Lines: label</description>
        <type>label</type>
        <id>205</id>
        <posX>92</posX>
        <posY>397</posY>
        <label>19007</label>
      </control>
      <control>
        <description>Lines</description>
        <type>label</type>
        <id>206</id>
        <posX>380</posX>
        <posY>397</posY>
        <width>288</width>
        <align>right</align>
        <label>#tetris_lines</label>
      </control>
      <control>
        <description>Highscore: label</description>
        <type>label</type>
        <id>205</id>
        <posX>92</posX>
        <posY>440</posY>
        <label>19008</label>
      </control>
      <control>
        <description>Highscore</description>
        <type>label</type>
        <id>206</id>
        <posX>380</posX>
        <posY>440</posY>
        <width>288</width>
        <align>right</align>
        <label>#tetris_highscore</label>
      </control>
    </control>
    <control>
      <description>group element</description>
      <type>group</type>
      <animation effect="fade" time="250">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
      <animation effect="slide" time="150" start="-300,0">WindowOpen</animation>
      <animation effect="slide" time="250" end="800,0">WindowClose</animation>
      <control>
        <description>Tetris control</description>
        <type>tetris</type>
        <id>10</id>
        <posX>287</posX>
        <posY>121</posY>
        <width>702</width>
        <height>500</height>
        <font>font16</font>
        <textcolor>ffffffff</textcolor>
        <onback>2</onback>
        <onleft>2</onleft>
        <onright>10</onright>
        <onup>10</onup>
        <ondown>10</ondown>
        <colordiffuse>60ffffff</colordiffuse>
        <texture>tetris\background.png</texture>
        <texturefocus>tetris\background_focus.png</texturefocus>
        <textureLeft>tetris\guide.png</textureLeft>
        <textureRight>tetris\guide.png</textureRight>
        <nextblockx>955</nextblockx>
        <nextblocky>368</nextblocky>
      </control>
    </control>
  </controls>
</window>