diff --git a/image/sleepmode/btnlite.png b/image/sleepmode/btnlite.png new file mode 100644 index 00000000..77aa9f0f Binary files /dev/null and b/image/sleepmode/btnlite.png differ diff --git a/image/sleepmode/btnlitebg.png b/image/sleepmode/btnlitebg.png new file mode 100644 index 00000000..8f8ab72e Binary files /dev/null and b/image/sleepmode/btnlitebg.png differ diff --git a/image/sleepmode/sleepmodestaticbg.png b/image/sleepmode/sleepmodestaticbg.png new file mode 100644 index 00000000..b7d90f2f Binary files /dev/null and b/image/sleepmode/sleepmodestaticbg.png differ diff --git a/image/sleepmode/waitingbtnlite.png b/image/sleepmode/waitingbtnlite.png new file mode 100644 index 00000000..c3e7dc46 Binary files /dev/null and b/image/sleepmode/waitingbtnlite.png differ diff --git a/video/Taobin_Sleep_Screen.mp4 b/video/Taobin_Sleep_Screen.mp4 new file mode 100644 index 00000000..3a412977 Binary files /dev/null and b/video/Taobin_Sleep_Screen.mp4 differ diff --git a/xml/page_sleepmode.xml b/xml/page_sleepmode.xml index c93d362d..d30cadb2 100644 --- a/xml/page_sleepmode.xml +++ b/xml/page_sleepmode.xml @@ -6,6 +6,8 @@ + Var countsleepmodevideo = 0 + 1000 @@ -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 @@ - - - 300 - 180 - "ROOT/taobin_project/image/sleepmode/taobinlogo.png" - + - - 420 - 700 - 55 - KanitMediumTTF - 0x9597A5 - "Is sleeping" - wakeuptextstate - + + 310 - 940 + 990 65 KanitMediumTTF 0xFFFFFF @@ -90,10 +135,22 @@ + + 440 + 1200 + 50 + KanitMediumTTF + 0x4d3d30 + 0x4d3d30 + "กดเพื่อปลุก" + wakeuptextstate2 + + + 400 - 950 + 1100 50 waitingstate KanitMediumTTF