make sleep XML
BIN
image/sleepmode/bd_press.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
image/sleepmode/bn_press.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
image/sleepmode/bp_press.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
image/sleepmode/cancle_bn.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
image/sleepmode/cancle_bp.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
image/sleepmode/close_bn.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
image/sleepmode/close_bp.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
image/sleepmode/ok_bn.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
image/sleepmode/ok_bp.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
image/sleepmode/opacitypopup.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
image/sleepmode/popup.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
image/sleepmode/taobinlogo.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -2110,6 +2110,12 @@ PRICE "Reset" "-"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If SleepModeXML = "ON" Then
|
||||||
|
Var BackgroundColor = "0x2C2F4E"
|
||||||
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
Refresh
|
Refresh
|
||||||
|
|
||||||
TimerReset
|
TimerReset
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,8 @@
|
||||||
Var TimeOut = 0
|
Var TimeOut = 0
|
||||||
Var textStep = 0
|
Var textStep = 0
|
||||||
RootLayoutVisible 3 "show"
|
RootLayoutVisible 3 "show"
|
||||||
|
|
||||||
|
TRY "ROOT/taobin_project/xml/default_color_settings.ev"
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
<Timeout> 1000 </Timeout>
|
<Timeout> 1000 </Timeout>
|
||||||
<EventTimeout>
|
<EventTimeout>
|
||||||
|
|
@ -55,6 +57,13 @@
|
||||||
Var EmergencyStop = "-"
|
Var EmergencyStop = "-"
|
||||||
|
|
||||||
|
|
||||||
|
If SleepModeXML = "ON" Then
|
||||||
|
Var BackgroundColor = "0x2C2F4E"
|
||||||
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If EmergencyStop = "true" Then
|
If EmergencyStop = "true" Then
|
||||||
If DoorCupPosition = "bottom" Then
|
If DoorCupPosition = "bottom" Then
|
||||||
; It normal
|
; It normal
|
||||||
|
|
|
||||||
290
xml/page_sleepmode.xml
Normal file
|
|
@ -0,0 +1,290 @@
|
||||||
|
<Page>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1312 </Height>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Background> "0x2C2F4E" </Background>
|
||||||
|
|
||||||
|
<EventOpen>
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
If SleepModeXML = "OUT" Then
|
||||||
|
RootLayoutVisible 3 "show"
|
||||||
|
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||||
|
Else
|
||||||
|
RootLayoutVisible 3 "show"
|
||||||
|
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
TimerReset
|
||||||
|
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 300 </X>
|
||||||
|
<Y> 180 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/taobinlogo.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 420 </X>
|
||||||
|
<Y> 700 </Y>
|
||||||
|
<Size> 55 </Size>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x9597A5 </Color>
|
||||||
|
<Value> "Is sleeping" </Value>
|
||||||
|
<State> wakeuptextstate </State>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 400 </X>
|
||||||
|
<Y> 700 </Y>
|
||||||
|
<Size> 55 </Size>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x9597A5 </Color>
|
||||||
|
<Value> "Out sleeping" </Value>
|
||||||
|
<State> waitingstate </State>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 220 </X>
|
||||||
|
<Y> 900 </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>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<State> btnwakeupstate </State>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
SLEEPMODECMD "showpopup"
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 310 </X>
|
||||||
|
<Y> 940 </Y>
|
||||||
|
<Size> 65 </Size>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<ColorDisable> 0xFFFFFF </ColorDisable>
|
||||||
|
<Value> "กดเพื่อปลุกเต่าบิน" </Value>
|
||||||
|
<State> wakeuptextstate </State>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 400 </X>
|
||||||
|
<Y> 950 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> waitingstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<ColorDisable> 0xFFFFFF </ColorDisable>
|
||||||
|
<Value> "กรุณารอสักครู่" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 0 </Y>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/opacitypopup.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 160 </X>
|
||||||
|
<Y> 250 </Y>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/popup.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 860 </X>
|
||||||
|
<Y> 270 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/cancle_bn.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/sleepmode/cancle_bp.png" </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<EventClick>
|
||||||
|
SLEEPMODECMD "closepopup"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 280 </X>
|
||||||
|
<Y> 300 </Y>
|
||||||
|
<Size> 70 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitBoldTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> "ยืนยันการออกจาก" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 230 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Size> 70 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitBoldTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> "โหมดประหยัดพลังงาน" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 320 </X>
|
||||||
|
<Y> 560 </Y>
|
||||||
|
<Size> 40 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> "เครื่องดื่มจะพร้อมเสิร์ฟเวลา:" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 360 </X>
|
||||||
|
<Y> 640 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> "ร้อน:" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 470 </X>
|
||||||
|
<Y> 639 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitBoldTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> hotminsleep </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 610 </X>
|
||||||
|
<Y> 640 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> hottimesleep </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 360 </X>
|
||||||
|
<Y> 710 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> "เย็น:" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 470 </X>
|
||||||
|
<Y> 709 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitBoldTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> coldblendminsleep </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 650 </X>
|
||||||
|
<Y> 709 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Value> coldblendtimesleep </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 570 </X>
|
||||||
|
<Y> 840 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/ok_bn.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/sleepmode/ok_bp.png" </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
SLEEPMODECMD "out"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 230 </X>
|
||||||
|
<Y> 840 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/sleepmode/close_bn.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/sleepmode/close_bp.png" </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<EventClick>
|
||||||
|
SLEEPMODECMD "closepopup"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 670 </X>
|
||||||
|
<Y> 845 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<Value> "ปลุก" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 300 </X>
|
||||||
|
<Y> 845 </Y>
|
||||||
|
<Size> 50 </Size>
|
||||||
|
<State> popupstate </State>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<Value> "ยกเลิก" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
</Page>
|
||||||