add video sleep mode new video by sek
This commit is contained in:
parent
e99eadb2fc
commit
27bba53b09
6 changed files with 86 additions and 29 deletions
BIN
image/sleepmode/btnlite.png
Normal file
BIN
image/sleepmode/btnlite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
image/sleepmode/btnlitebg.png
Normal file
BIN
image/sleepmode/btnlitebg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
BIN
image/sleepmode/sleepmodestaticbg.png
Normal file
BIN
image/sleepmode/sleepmodestaticbg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 350 KiB |
BIN
image/sleepmode/waitingbtnlite.png
Normal file
BIN
image/sleepmode/waitingbtnlite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
BIN
video/Taobin_Sleep_Screen.mp4
Normal file
BIN
video/Taobin_Sleep_Screen.mp4
Normal file
Binary file not shown.
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
<EventOpen>
|
||||
|
||||
Var countsleepmodevideo = 0
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
|
|
@ -16,8 +18,41 @@
|
|||
RootLayoutVisible 3 "show"
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
Else
|
||||
RootLayoutVisible 3 "show"
|
||||
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||
; process play video
|
||||
|
||||
If waitingstate = "Enable" Then
|
||||
Var countsleepmodevideo = 0
|
||||
Else
|
||||
|
||||
Var countsleepmodevideo = countsleepmodevideo + 1
|
||||
|
||||
If countsleepmodevideo = 2 Then
|
||||
|
||||
Var btnwakeupstate = "Invisible"
|
||||
Var wakeuptextstate = "Invisible"
|
||||
Var wakeuptextstate2 = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
If countsleepmodevideo = 30 Then
|
||||
Var btnwakeupstate = "Enable"
|
||||
Var wakeuptextstate = "Enable"
|
||||
Var wakeuptextstate2 = "Invisible"
|
||||
EndIf
|
||||
|
||||
If countsleepmodevideo = 50 Then
|
||||
Var btnwakeupstate = "Enable"
|
||||
Var wakeuptextstate = "Enable"
|
||||
Var wakeuptextstate2 = "Invisible"
|
||||
|
||||
RootLayoutVisible 3 "show"
|
||||
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -29,39 +64,36 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 300 </X>
|
||||
<Y> 180 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sleepmode/taobinlogo.png" </Filename>
|
||||
</Image>
|
||||
<Video>
|
||||
<X> 90 </X>
|
||||
<Y> 0 </Y>
|
||||
<Filename> "ROOT/taobin_project/video/Taobin_Sleep_Screen.mp4" </Filename>
|
||||
<FilenameAlternate></FilenameAlternate>
|
||||
</Video>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 420 </X>
|
||||
<Y> 700 </Y>
|
||||
<Size> 55 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x9597A5 </Color>
|
||||
<Value> "Is sleeping" </Value>
|
||||
<State> wakeuptextstate </State>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 90 </X>
|
||||
<Y> 900 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sleepmode/btnlite.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/sleepmode/btnlite.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/sleepmode/btnlite.png" </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<State> btnlitestate </State>
|
||||
<EventClick>
|
||||
|
||||
<Text>
|
||||
<X> 400 </X>
|
||||
<Y> 700 </Y>
|
||||
<Size> 55 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x9597A5 </Color>
|
||||
<Value> "Out sleeping" </Value>
|
||||
<State> waitingstate </State>
|
||||
</Text>
|
||||
SLEEPMODECMD "showpopup"
|
||||
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 220 </X>
|
||||
<Y> 900 </Y>
|
||||
<Y> 950 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sleepmode/bn_press.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/sleepmode/bp_press.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/sleepmode/bd_press.png" </FilenameDisable>
|
||||
|
|
@ -76,11 +108,24 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 220 </X>
|
||||
<Y> 1050 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sleepmode/waitingbtnlite.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/sleepmode/waitingbtnlite.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/sleepmode/waitingbtnlite.png" </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<State> waitingstate </State>
|
||||
<EventClick>
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 310 </X>
|
||||
<Y> 940 </Y>
|
||||
<Y> 990 </Y>
|
||||
<Size> 65 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
|
|
@ -90,10 +135,22 @@
|
|||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 440 </X>
|
||||
<Y> 1200 </Y>
|
||||
<Size> 50 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x4d3d30 </Color>
|
||||
<ColorDisable> 0x4d3d30 </ColorDisable>
|
||||
<Value> "กดเพื่อปลุก" </Value>
|
||||
<State> wakeuptextstate2 </State>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 400 </X>
|
||||
<Y> 950 </Y>
|
||||
<Y> 1100 </Y>
|
||||
<Size> 50 </Size>
|
||||
<State> waitingstate </State>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue