Advertisement
pedroadmn

Resources General Template

May 10th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 4.60 KB | None | 0 0
  1. <!-- Analogic Clock -->
  2.  
  3. <Var name="_hour_angle" expression="#hour12*30+#minute/2" />
  4. <Var name="_minute_angle" expression="#minute*6" />
  5. <Var name="_second_angle" expression="#second*6" />
  6. <Group name="relogio" x="#_cx" y="#_cy">
  7.     <Image name="bg" src="r2/bg.png" align="center" alignV="center" >
  8.         <!--<SizeAnimation>
  9.             <Size w="#bg.bmp_width" h="#bg.bmp_height" time="0" />
  10.             <Size w="#bg.bmp_width" h="#bg.bmp_height*2" time="500" />
  11.             <Size w="#bg.bmp_width*2" h="#bg.bmp_height" time="1000" />
  12.             <Size w="#bg.bmp_width" h="#bg.bmp_height" time="1500" />
  13.         </SizeAnimation>-->
  14.     </Image>
  15.     <Image centerX="19" centerY="119" src="r2/h.png" align="center" alignV="center" angle="#_hour_angle" />
  16.     <Image centerX="19" centerY="119" src="r2/m.png" align="center" alignV="center" angle="#_minute_angle" />
  17.     <Image centerX="19" centerY="119" src="r2/s.png" align="center" alignV="center" angle="#_second_angle" />
  18. </Group>
  19.  
  20. <!-- End Analogic Cloc -->
  21.  
  22.  
  23. <!-- Buttom Unlock Screen -->
  24.  
  25. <Button x="0" y="0" w="#screen_width" h="#screen_height">
  26.     <Triggers>
  27.         <Trigger action="double">
  28.             <ExternCommand command="unlock" delay="500" />
  29.         </Trigger>
  30.         <Trigger action="up">
  31.             <Command target="relogio.animation" value="play" />
  32.         </Trigger>
  33.         <Trigger action="down" />
  34.         <Trigger action="move" />
  35.     </Triggers>
  36. </Button>
  37.  
  38. <!-- Buttom Unlock Screen -->
  39.  
  40.  
  41. <!-- Zoom -->
  42.  
  43. <Var name="_zoom">
  44.     <VariableAnimation>
  45.         <AniFrame value="0" time="0" />
  46.         <AniFrame value="3" time="1000" />
  47.     </VariableAnimation>
  48. </Var>
  49.  
  50. <-- End Zoom -->
  51.  
  52. <!-- Formated Data -->
  53.  
  54. <VarArray type="string">
  55.     <Vars>
  56.         <Var name="dia" index="#day_of_week-1"/>
  57.     </Vars>
  58.     <Items>
  59.         <Item value="Domingo"/>
  60.         <Item value="Segunda"/>
  61.         <Item value="Terca"/>
  62.         <Item value="Quarta"/>
  63.         <Item value="Quinta"/>
  64.         <Item value="Sexta"/>
  65.         <Item value="Sabado"/>
  66.     </Items>
  67. </VarArray>
  68.    
  69. <VarArray type="string">
  70.     <Vars>
  71.         <Var name="mes" index="#month"/>
  72.     </Vars>
  73.     <Items>
  74.         <Item value="Janeiro"/>
  75.         <Item value="Fevereiro"/>
  76.         <Item value="Março"/>
  77.         <Item value="Abril"/>
  78.         <Item value="Maio"/>
  79.         <Item value="Junho"/>
  80.         <Item value="Julho"/>
  81.         <Item value="Agosto"/>
  82.         <Item value="Setembro"/>
  83.         <Item value="Outubro"/>
  84.         <Item value="Novembro"/>
  85.         <Item value="Dezembro"/>
  86.     </Items>
  87. </VarArray>
  88.  
  89. <Time src="images/n/n.png" x="#_cx" y="#_cy" align="center" alignV="center"/>
  90. <DateTime format="dd/MM/yyyy EEEE" x="#_cx" y="#_cy+64" align="center" alignV="top" size="32" color="#ffffff"/>
  91. <Text format="%s, %d de %s de %d" paras="@dia,#date,@mes,#year" x="350" y="#_cy+150" color="#ffffff" size="32" align="center"/>
  92. <!-- End Formated Data -->
  93.  
  94.  
  95. <!-- Texto correndo na tela -->
  96.  
  97. <Text x="150" y="950" multiLine="false" color="#ffffff" w="400" bold="true" marqueeSpeed="80" marqueeGap="8" size="32" text="Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos."/>
  98.  
  99. <!-- End Texto correndo na tela -->
  100.  
  101. <!-- Template Unlocker Slide Up -->
  102.  
  103. <Image name="arrow" x="#screen_width/2" src="arrow.png" y="#screen_height-175+18" align="center">
  104.         <PositionAnimation>
  105.             <Position x="0" y="0" time="0" />
  106.             <Position x="0" y="-15" time="1500" />
  107.             <Position x="0" y="-15" time="1700" />
  108.             <Position x="0" y="0" time="3200" />
  109.             <Position x="0" y="0" time="100000000000000" />
  110.         </PositionAnimation>
  111.         <AlphaAnimation>
  112.             <Alpha a="0" time="0" />
  113.             <Alpha a="250" time="1500" />
  114.             <Alpha a="250" time="1700" />
  115.             <Alpha a="0" time="3200" />
  116.             <Alpha a="0" time="100000000000000" />
  117.         </AlphaAnimation>
  118.     </Image>
  119.     <Text name="guide" x="#screen_width/2" y="#screen_height-185+18" align="center" textExp="@slider_to_unlock" color="#ffffff" size="40">
  120.         <AlphaAnimation>
  121.             <Alpha a="0" time="0" />
  122.             <Alpha a="0" time="2900" />
  123.             <Alpha a="255" time="3200" />
  124.             <Alpha a="255" time="100000000000000" />
  125.         </AlphaAnimation>
  126.     </Text>
  127.    
  128.     <Unlocker name="unlocker" bounceInitSpeed="2000" bounceAcceleration="3000" alwaysShow="true">
  129.         <StartPoint x="0" y="#screen_height-225" w="#screen_width-255" h="225">
  130.         </StartPoint>
  131.         <EndPoint x="-#screen_width" y="-225" w="3*#screen_width" h="#screen_height-150">
  132.             <Trigger>
  133.                 <VariableCommand name="bounce_flag" expression="1"/>
  134.                 <Command target="bounce_offset.animation" value="play"/>
  135.                 <VariableCommand name="un_flag" expression="1"/>
  136.                 <Command target="un_offset.animation" value="play"/>
  137.             </Trigger> 
  138.         </EndPoint>
  139.     </Unlocker>
  140. <!-- Template Unlocker Slide Up -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement