<?xml version="1.0" encoding="utf-8"?>
<Lockscreen version="1" displayDesktop="true" screenWidth="1080" frameRate="30">
<Text x="540" y="600" align="center" alignV="center" textExp="'num = '+#num" color="#FF0000" size="100" />
<ExternalCommands>
<Trigger action="resume">
<VariableCommand name="num" expression="0"/>
<Command target="a.animation" value="play" />
<Command target="aaa.visibility" value="false" />
<SoundCommand sound="kong.mp3" volume="0" keepCur="false" />
</Trigger>
<Trigger action="pause">
<VariableCommand name="num" expression="0"/>
</Trigger>
</ExternalCommands>
<!-- 按钮 -->
<Button x="" y="" w="" h="" >
<Triggers>
<Trigger action="down">
<VariableCommand name="num" expression="not(#num)"/>
<VariableCommand name="hbg" expression="ifelse(eq(#hbg,3),0,#hbg+1)"/>
</Trigger>
</Triggers>
</Button>
<Var expression="#minute" threshold="1" >
<Trigger>
<VariableCommand name="hbg" expression="ifelse(lt(#hbg,5),#hbg+1,0)"/>
</Trigger>
</Var>
<!-- 随机数 -->
<VariableCommand name="random_number" expression="int(rand()*a+b)" />
<!-- 侧边栏+上滑解锁 -->
<Group>
<Button x="420" y="#screen_height-942" w="240" h="942">
<Triggers>
<Trigger action="down">
<VariableCommand name="aq" expression="1" />
</Trigger>
<Trigger action="up">
<VariableCommand name="aq" expression="0" delay="100"/>
</Trigger>
</Triggers>
</Button>
<Button w="1080" h="#screen_height" >
<Triggers>
<Trigger action="up">
<VariableCommand name="set" expression="ifelse(eq(gt(#touch_x,#touch_begin_x)*gt(abs(#touch_x-#touch_begin_x),200)*not(#aq)*lt(#touch_begin_y-#touch_y,200),1),0,#set)" />
<VariableCommand name="set" expression="ifelse(eq(gt(#touch_begin_x,#touch_x)*gt(abs(#touch_x-#touch_begin_x),200)*not(#aq)*lt(#touch_begin_y-#touch_y,200),1),1,#set)"/>
<ExternCommand command="unlock" condition="gt(#touch_begin_y-#touch_y,200)*not(#aq)" />
</Trigger>
</Triggers>
</Button>
</Group>
<!-- 9.1 安全区域 -->
<Group>
<Button x="0" y="0" w="1080" h="#screen_height-942">
<Triggers>
<Trigger action="down">
<VariableCommand name="aq" expression="1"/>
</Trigger>
</Triggers>
</Button>
<Button x="0" y="#screen_height-942" w="420" h="942">
<Triggers>
<Trigger action="down">
<VariableCommand name="aq" expression="1"/>
</Trigger>
</Triggers>
</Button>
<Button x="680" y="#screen_height-942" w="420" h="942">
<Triggers>
<Trigger action="down">
<VariableCommand name="aq" expression="1"/>
</Trigger>
</Triggers>
</Button>
<Button x="420" y="#screen_height-942" w="240" h="942">
<Triggers>
<Trigger action="down">
<VariableCommand name="aq" expression="1" />
</Trigger>
<Trigger action="up">
<VariableCommand name="aq" expression="0" delay="100"/>
</Trigger>
</Triggers>
</Button>
<Image y="#screen_height-1920" alpha="90" src="aq.png" />
</Group>
<Text x="106" y="545" format="未读 %d" paras="#sms_unread_count" color="#000000" size="35" visibility="#sms_unread_count" />
<Text x="106" y="590" format="未接 %d" paras="#call_missed_count" color="#000000" size="35" visibility="#call_missed_count" />
<Text x="106" y="509" color="#000000" size="35" textExp="'正在充电 : '+#battery_level+'%'" category="Charging" align="center" alignV="center" />
<Text x="106" y="509" color="#000000" size="35" textExp="'正在充电 : '+#battery_level+'%'" category="BatteryFull" align="center" alignV="center" />
<Text x="540" y="509" color="#000000" size="35" textExp="#battery_level+'%'" visibility="eq(#battery_state,1)+eq(#battery_state,3)" align="center" alignV="center" />
<Image x="" y="" align="center" alignV="center" >
<SourcesAnimation>
<Source src="" time="0"/>
</SourcesAnimation>
</Image>
<Image x="" y="" src="" align="center" alignV="center">
<PositionAnimation>
<Position x="0" y="0" time="0"/>
</PositionAnimation>
</Image>
<Image x="" y="960+cos(#time/100)*100" src="" align="center" alignV="center" />
<Image x="" y="" pivotX="" pivotY="" src="" align="center" alignV="center">
<RotationAnimation >
<Rotation angle="0" time="0"/>
</RotationAnimation>
</Image>
<Image x="" y="" src="" align="center" alignV="center">
<SizeAnimation>
<Size w="" h="" time="0"/>
</SizeAnimation>
</Image>
<Image x="" y="" src="" align="center" alignV="center">
<AlphaAnimation>
<Alpha a="0" time="0"/>
</AlphaAnimation>
</Image>
<Text align="center" alignV="center" color="#ffffff" format="未接来电 %d" paras="#call_missed_count" size="40" visibility="#call_missed_count" x="540" y="618"/>
<Text align="center" alignV="center" color="#ffffff" format="未读短信 %d" paras="#sms_unread_count" size="40" visibility="#sms_unread_count" x="540" y="702"/>
<Text align="center" alignV="center" color="#ffffff" format="%d" paras="#sms_unread_count" size="40" visibility="#sms_unread_count" x="872" y="364"/>
<Text align="center" alignV="center" color="#ffffff" text="0" size="40" visibility="not(#sms_unread_count)" x="872" y="364"/>
<Text align="center" alignV="center" color="#ffffff" format="%d" paras="#call_missed_count" size="40" visibility="#call_missed_count" x="496" y="369"/>
<Text align="center" alignV="center" color="#ffffff" text="0" size="40" visibility="not(#call_missed_count)" x="496" y="369"/>
<Text x="#screen_width/2" y="#screen_height-83" category="BatteryLow" alignV="center" color="#ffffff" size="41" text="电量不足!" align="center"/>
<Text x="#screen_width/2" y="#screen_height-83" category="Charging" alignV="center" color="#ffffff" align="center" size="41" format="正在充电 %d%%" paras="#battery_level"/>
<Text x="#screen_width/2" y="#screen_height-83" category="BatteryFull" alignV="center" color="#ffffff" size="41" text="充电完成!" align="center"/>
<Text x="650" y="1195" category="BatteryLow" color="#000000" size="31" text="电量%d%%" align="center" alignV="center" />
<Text x="650" y="1195" category="Charging" color="#000000" size="31" format="电量%d%%" paras="#battery_level" align="center" alignV="center" />
<Text x="650" y="1195" category="BatteryFull" color="#000000" size="31" text="电量%d%%" align="center" alignV="center" />
<Text x="650" y="1195" color="#000000" size="31" format="%d%%" paras="#battery_level" align="center" alignV="center" visibility="eq(#battery_state,1)+eq(#battery_state,3)"/>
<!-- 点击解锁 -->
<Button x="0" y="0" w="300" h="300" >
<Triggers>
<Trigger action="up">
<ExternCommand command="unlock"/>
</Trigger>
</Triggers>
</Button>
typeface=""
<!-- 任意解锁 -->
<Unlocker name="unlocker" >
<StartPoint x="#touch_begin_x" y="#touch_begin_y" w="1" h="1" />
<EndPoint x="ifelse(gt(#unlocker.move_dist,300),#touch_x,-1)" y="ifelse(gt(#unlocker.move_dist,300),#touch_y,-1)" w="1" h="1" />
</Unlocker>
<Var name="varr">
<VariableAnimation>
<AniFrame value="0" time="100"/>
<AniFrame value="20" time="140"/>
<AniFrame value="40" time="180"/>
<AniFrame value="20" time="220"/>
<AniFrame value="0" time="300"/>
<AniFrame value="0" time="6000000"/>
</VariableAnimation>
</Var>
</Lockscreen>