<node type="layerext" name="howtouse" pos="frame:0.5x0.5" scale="0.5x0.5" size="0x0" cascadeopacity="yes">
  <children>
    <node name="shadow" type="sprite" image="images/square.png" color="000000" opacity="64" scale="3000x2000"/>
    <node name="bg" type="sprite" image="images/maps/map1.jpg"/>
    <node name="card" type="node" pos="245x-323">
      <children>
        <node name="bg" type="sprite" image="cards::bg_3.png"/>
        <node name="frame" type="sprite" image="cards::frame_3.png"/>
        <node name="card" type="sprite" image="cards::ability/##cardname##.png"/>
      </children>
    </node>
    <node name="hand" type="sprite" image="images/hand.png" center="0.2x0.96" pos="245x-323"/>
    <node name="unit" type="sprite" center="0.5x0.5" pos="-90x75" animation="RepeatForever[Animate[0.5,[folder:##cardname##::,indexes:left/100.png,01:99]]]" opacity="0" scale="-0.1x0.1"/> <!-- to 440x-200-->
    <node name="effect" type="sprite" pos="-90x75" z="99"/>
    <node name="menu" type="menu" pos="0x0" z="-99">
      <children>
        <node name="close" type="menuitem" imageN="images/square.png" scale="3000x2000" callback="close" opacity="0"/>
      </children>
    </node>
    <node name="caption" type="label" fontttf="fonts/roboto_cn.ttf" fontsize="40" pos="0x-430" text="#tap_to_close#" scale="2x2"/>
  </children>

  <actions>
    <action name="pull_card" value="Sequence[DelayTime[1],EaseInOut[MoveTo[1,-90,75],2]]"/>
    <action name="destroy_card" value="Sequence[DelayTime[2],BackIn[ScaleTo[0.3,0,0]]]"/>
    <action name="fireworks" value="Sequence[DelayTime[2],Animate[1,[folder:effects::,indexes:fireworks_yellow2/100.png,00:25]],RemoveSelf[]]"/>
    <action name="create_route" value="Sequence[DelayTime[2.5],EaseInOut[MoveTo[2,440,-200],2]]"/>
    <action name="destroy_hand" value="Sequence[DelayTime[4.3],FadeOut[0.2]]"/>

    <action name="create_unit" value="Sequence[DelayTime[4.5],Spawn[BackOut[ScaleTo[0.3,-1,1]],FadeIn[0.2]]]"/>
    <action name="move_unit" value="Sequence[DelayTime[4.5],MoveTo[3,440,-200]]"/>
    <action name="destroy_unit" value="Sequence[DelayTime[7.3],FadeOut[0.2]]"/>
    
    <action name="destroy_self" value="Sequence[DelayTime[8],FadeOut[0.2],RemoveSelf[]]"/>
  </actions>
  <events>
    <eventlist name="appearance">
      <runaction target="hand" action="pull_card"/>
      <runaction target="card" action="pull_card"/>
      <runaction target="card" action="destroy_card"/>
      <runaction target="effect" action="fireworks"/>
      <runaction target="hand" action="create_route"/>
      <runaction target="hand" action="destroy_hand"/>

      <runaction target="unit" action="move_unit"/>
      <runaction target="unit" action="create_unit"/>
      <runaction target="unit" action="destroy_unit"/>
      <runaction target="." action="destroy_self"/>
    </eventlist>
  </events>
  
</node>