987 lines
No EOL
26 KiB
XML
987 lines
No EOL
26 KiB
XML
<Page>
|
|
<Width> 1080 </Width>
|
|
<Height> 1312 </Height>
|
|
<Volume> SoundVolume </Volume>
|
|
<Background> "0x2c2928" </Background>
|
|
|
|
<EventOpen>
|
|
Coin STANDBY
|
|
CoinClear
|
|
; Var TestCoinLine1 = "กรุณาใส่เงิน . . ."
|
|
Var TestCoinLine1 = "insert money . . ."
|
|
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด 0 บาท"
|
|
|
|
Var TimerCountDown = 3
|
|
Var TimerChangeSuccess = 0
|
|
Var startTimerChangeSuccess = "false"
|
|
Var restartTimerChange = 3
|
|
Var startrestartTimerChange = "false"
|
|
Var TimerbacktoHome = 300
|
|
|
|
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
|
|
Var TestCoinLine2 = "total amount "
|
|
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
|
|
|
|
Var RemainAmountStr1 = 0
|
|
Var LastCoin = 0
|
|
Var openTextPlaseWait = "Invisible"
|
|
Var currentStage = ""
|
|
Var intosw = 0
|
|
Var testCoinChange = 10
|
|
|
|
Var popupBeforeTestCoinWarning = "Enable"
|
|
Var buttonBeforeTestCoinBack = "Enable"
|
|
Var buttonTestCoinStart = "Enable"
|
|
|
|
Var popupAfterTestCoinWarning = "Invisible"
|
|
Var buttonTestCoinEnd = "Invisible"
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Invisible"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Invisible"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
Var ChangeOK = 0
|
|
|
|
SAVELOG "state_init"
|
|
|
|
DEBUGVAR RemainAmountStr
|
|
DEBUGVAR RemainAmountStr1
|
|
DEBUGVAR currentStage
|
|
DEBUGVAR LastCoin
|
|
DEBUGVAR CoinAmount
|
|
|
|
StatusLog "On testcoinbank"
|
|
|
|
</EventOpen>
|
|
<EventCoin>
|
|
|
|
Var TimerbacktoHome = 300
|
|
|
|
Var LastCoin = CoinAmount - LastCoin
|
|
Var RemainAmountStr1 !assigned StringFmt( LastCoin, DisplayFormat, PreScaleConvertShow )
|
|
|
|
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
|
|
|
|
DEBUGVAR RemainAmountStr
|
|
DEBUGVAR RemainAmountStr1
|
|
DEBUGVAR currentStage
|
|
DEBUGVAR LastCoin
|
|
DEBUGVAR CoinAmount
|
|
|
|
|
|
|
|
If currentStage = "test10bath" Then
|
|
If intosw = 0 Then
|
|
Var intosw = 1
|
|
If LastCoin = 10 Then
|
|
SAVELOG "test10bath_pass"
|
|
StatusLog "test10bath_pass"
|
|
Var currentStage = "test20bath"
|
|
SAVELOG "state_test20bath"
|
|
Else
|
|
SAVELOG "test10bath_fail"
|
|
StatusLog "test10bath_fail"
|
|
Var currentStage = "test10fail"
|
|
SAVELOG "state_test10fail"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If currentStage = "test20bath" Then
|
|
If intosw = 0 Then
|
|
Var intosw = 1
|
|
If LastCoin = 20 Then
|
|
SAVELOG "test20bath_pass"
|
|
StatusLog "test20bath_pass"
|
|
Var currentStage = "testchange10"
|
|
SAVELOG "state_testchange10"
|
|
Else
|
|
SAVELOG "test20bath_fail"
|
|
StatusLog "test20bath_fail"
|
|
Var currentStage = "test20fail"
|
|
SAVELOG "state_test20fail"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
If currentStage = "test10fail" Then
|
|
If LastCoin = 10 Then
|
|
SAVELOG "test10bath_pass"
|
|
StatusLog "test10bath_pass"
|
|
Var currentStage = "test20bath"
|
|
SAVELOG "state_test20bath"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If currentStage = "test20fail" Then
|
|
If LastCoin = 20 Then
|
|
SAVELOG "test20bath_pass"
|
|
StatusLog "test20bath_pass"
|
|
Var currentStage = "testchange10"
|
|
SAVELOG "state_testchange10"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
; Var TestCoinLine1 = "ท่านได้ใส่เงินจำนวน "
|
|
Var TestCoinLine1 = "insert money "
|
|
Var TestCoinLine1 = TestCoinLine1 + RemainAmountStr1
|
|
; Var TestCoinLine1 = TestCoinLine1 + " บาท"
|
|
|
|
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด "
|
|
Var TestCoinLine2 = "total amount "
|
|
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
|
|
; Var TestCoinLine2 = TestCoinLine2 + " บาท"
|
|
|
|
Var LastCoin = CoinAmount
|
|
|
|
; Var RemainAmountStr = RemainAmountStr + "###size=90"
|
|
Var intosw = 0
|
|
|
|
Refresh
|
|
</EventCoin>
|
|
|
|
<EventChangeStatus>
|
|
Var TimerbacktoHome = 300
|
|
DEBUGVAR ChangeStatus
|
|
If ChangeStatus = "payout-end" Then
|
|
Var ChangeOK = 1
|
|
EndIf
|
|
|
|
If currentStage = "testchange10" Then
|
|
If ChangeOK = 1 Then
|
|
SAVELOG "testchange10_pass"
|
|
StatusLog "testchange10_pass"
|
|
Var currentStage = "finish"
|
|
Var TimerChangeSuccess = 0
|
|
Var startTimerChangeSuccess = "false"
|
|
SAVELOG "state_finish"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If currentStage = "testchange10fail" Then
|
|
If ChangeOK = 1 Then
|
|
SAVELOG "testchange10_pass"
|
|
StatusLog "testchange10_pass"
|
|
Var currentStage = "finish"
|
|
Var TimerChangeSuccess = 0
|
|
Var startTimerChangeSuccess = "false"
|
|
SAVELOG "state_finish"
|
|
EndIf
|
|
EndIf
|
|
|
|
</EventChangeStatus>
|
|
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
|
|
DEBUGVAR currentStage
|
|
|
|
|
|
|
|
If currentStage = "init" Then
|
|
Var TimerCountDown = TimerCountDown - 1
|
|
If TimerCountDown = 0 Then
|
|
Coin ON
|
|
Var currentStage = "test10bath"
|
|
Var openTextPlaseWait = "Invisible"
|
|
SAVELOG "state_test10bath"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
If currentStage = "test10bath" Then
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Enable"
|
|
Var showTextCoin10Succ = "Invisible"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Enable"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Enable"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Enable"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
If currentStage = "test10fail" Then
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Invisible"
|
|
Var showTextCoin10Fail = "Enable"
|
|
|
|
Var showTextBank20Nor = "Enable"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Enable"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Enable"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
If currentStage = "test20bath" Then
|
|
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Enable"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Enable"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Enable"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Enable"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
If currentStage = "test20fail" Then
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Enable"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Enable"
|
|
|
|
Var showTextChange10Nor = "Enable"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Enable"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
If currentStage = "testchange10" Then
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Enable"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Enable"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Invisible"
|
|
Var showTextChange10Foc = "Enable"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Enable"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Enable"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
If currentStage = "finish" Then
|
|
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Invisible"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Invisible"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Invisible"
|
|
|
|
|
|
Var popupBeforeTestCoinWarning = "Invisible"
|
|
Var buttonBeforeTestCoinBack = "Invisible"
|
|
Var buttonTestCoinStart = "Invisible"
|
|
|
|
Var buttonTestCoinEnd = "Enable"
|
|
Var popupAfterTestCoinWarning = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If currentStage = "testchange10fail" Then
|
|
|
|
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Enable"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Enable"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Invisible"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Enable"
|
|
|
|
Var showButtonChange10 = "Enable"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Enable"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
EndIf
|
|
|
|
|
|
If startTimerChangeSuccess = "true" Then
|
|
Var TimerChangeSuccess = TimerChangeSuccess + 1
|
|
Var showButtonChange10 = "Invisible"
|
|
If TimerChangeSuccess > 5 Then
|
|
Var TimerChangeSuccess = 0
|
|
Var startTimerChangeSuccess = "false"
|
|
Var currentStage = "testchange10fail"
|
|
|
|
Coin STANDBY
|
|
CoinClear
|
|
|
|
SAVELOG "testchange10_fail"
|
|
SAVELOG "state_testchange10fail"
|
|
StatusLog "testchange10_fail"
|
|
|
|
Var startrestartTimerChange = "true"
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
If startrestartTimerChange = "true" Then
|
|
Var restartTimerChange = restartTimerChange - 1
|
|
If restartTimerChange = 0 Then
|
|
Var startrestartTimerChange = "false"
|
|
Var restartTimerChange = 3
|
|
Var showButtonChange10 = "Enable"
|
|
Var showTextundotest_testcoin = "Enable"
|
|
Coin ON
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
Var TimerbacktoHome = TimerbacktoHome - 1
|
|
|
|
If TimerbacktoHome = 0 Then
|
|
SAVELOG "timeout"
|
|
Coin STANDBY
|
|
CoinClear
|
|
SAVELOG "back_to_page_board"
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
TimerReset
|
|
|
|
</EventTimeout>
|
|
|
|
|
|
; header
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Height> 80 </Height>
|
|
<Width> 1080 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
|
|
</Image>
|
|
|
|
;back
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 20 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
StatusLog "backtohome"
|
|
Coin STANDBY
|
|
CoinClear
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
|
|
</EventClick>
|
|
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 800 </X>
|
|
<Y> 20 </Y>
|
|
<Size> 19 </Size>
|
|
<Font> fontType1 </Font>
|
|
<Color> 0xe2e2e2 </Color>
|
|
<Value> Text1_9 </Value>
|
|
</Text>
|
|
|
|
|
|
;task
|
|
|
|
<Image>
|
|
<X> 270 </X>
|
|
<Y> 140 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoinbank_header.png" </Filename>
|
|
<State> "Enable" </State>
|
|
</Image>
|
|
|
|
|
|
;group 10 bath start
|
|
|
|
<Image>
|
|
<X> 200 </X>
|
|
<Y> 230 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_10_nor.png" </Filename>
|
|
<State> showTextCoin10Nor </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 205 </X>
|
|
<Y> 230 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_10_foc.png" </Filename>
|
|
<State> showTextCoin10Foc </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 210 </X>
|
|
<Y> 230 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_10_succ.png" </Filename>
|
|
<State> showTextCoin10Succ </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 210 </X>
|
|
<Y> 230 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_10_fail.png" </Filename>
|
|
<State> showTextCoin10Fail </State>
|
|
</Image>
|
|
|
|
;group 10 bath end
|
|
|
|
|
|
;group 20 bath start
|
|
|
|
<Image>
|
|
<X> 180 </X>
|
|
<Y> 320 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_20_nor.png" </Filename>
|
|
<State> showTextBank20Nor </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 180 </X>
|
|
<Y> 320 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_20_foc.png" </Filename>
|
|
<State> showTextBank20Foc </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 175 </X>
|
|
<Y> 320 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_20_succ.png" </Filename>
|
|
<State> showTextBank20Succ </State>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 175 </X>
|
|
<Y> 320 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_20_fail.png" </Filename>
|
|
<State> showTextBank20Fail </State>
|
|
</Image>
|
|
|
|
;group 20 bath end
|
|
|
|
|
|
;group change 10 bath start
|
|
|
|
|
|
<Image>
|
|
<X> 245 </X>
|
|
<Y> 400 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_change_nor.png" </Filename>
|
|
<State> showTextChange10Nor </State>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 230 </X>
|
|
<Y> 400 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_change_foc.png" </Filename>
|
|
<State> showTextChange10Foc </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 255 </X>
|
|
<Y> 400 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_change_succ.png" </Filename>
|
|
<State> showTextChange10Succ </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 255 </X>
|
|
<Y> 400 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_change_fail.png" </Filename>
|
|
<State> showTextChange10Fail </State>
|
|
</Image>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 330 </X>
|
|
<Y> 600 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/test_change_10_page_bn.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/test_change_10_page_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> showButtonChange10 </State>
|
|
<EventClick>
|
|
Var TimerbacktoHome = 300
|
|
SAVELOG "change_btn_click"
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showButtonChange10 = "Invisible"
|
|
Change testCoinChange
|
|
Var startTimerChangeSuccess = "true"
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;group change 10 bath end
|
|
|
|
|
|
<Image>
|
|
<X> 280 </X>
|
|
<Y> 220 </Y>
|
|
<Height> 40 </Height>
|
|
<Width> 560 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoinbankwait.png" </Filename>
|
|
<State> openTextPlaseWait </State>
|
|
</Image>
|
|
|
|
|
|
;group message start
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> 700 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/messagecoinfail.png" </Filename>
|
|
<State> showTextmessagecoinfail </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> 700 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/messagebankfail.png" </Filename>
|
|
<State> showTextmessagebankfail </State>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> 800 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/messsagechangefail.png" </Filename>
|
|
<State> showTextmesssagechangefail </State>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> 700 </Y>
|
|
<Height> 60 </Height>
|
|
<Width> 590 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/messagetestallsuccess.png" </Filename>
|
|
<State> showTextmessagetestallsuccess </State>
|
|
</Image>
|
|
|
|
|
|
<Button>
|
|
<X> 200 </X>
|
|
<Y> 880 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/backtohome_testcoin.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/backtohome_testcoin_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> showTextbacktohome_testcoin </State>
|
|
<EventClick>
|
|
SAVELOG "backtohome_click"
|
|
StatusLog "backtohome"
|
|
Coin STANDBY
|
|
CoinClear
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Button>
|
|
<X> 600 </X>
|
|
<Y> 880 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/retryprocess_testcoin.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/retryprocess_testcoin_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> showTextretryprocess_testcoin </State>
|
|
<EventClick>
|
|
Var TimerbacktoHome = 300
|
|
Var currentStage = "init"
|
|
Var openTextPlaseWait = "Enable"
|
|
Var LastCoin = 0
|
|
Var TimerCountDown = 3
|
|
SAVELOG "retry_btn_click"
|
|
SAVELOG "state_test10bath"
|
|
|
|
Var showTextCoin10Nor = "Invisible"
|
|
Var showTextCoin10Foc = "Invisible"
|
|
Var showTextCoin10Succ = "Invisible"
|
|
Var showTextCoin10Fail = "Invisible"
|
|
|
|
Var showTextBank20Nor = "Invisible"
|
|
Var showTextBank20Foc = "Invisible"
|
|
Var showTextBank20Succ = "Invisible"
|
|
Var showTextBank20Fail = "Invisible"
|
|
|
|
Var showTextChange10Nor = "Invisible"
|
|
Var showTextChange10Foc = "Invisible"
|
|
Var showTextChange10Succ = "Invisible"
|
|
Var showTextChange10Fail = "Invisible"
|
|
|
|
Var showTextmessagebankfail = "Invisible"
|
|
Var showTextmessagecoinfail = "Invisible"
|
|
Var showTextmessagetestallsuccess = "Invisible"
|
|
Var showTextmesssagechangefail = "Invisible"
|
|
|
|
Var showTextundotest_testcoin = "Invisible"
|
|
Var showTextbacktohome_testcoin = "Invisible"
|
|
Var showTextretryprocess_testcoin = "Invisible"
|
|
|
|
Var showButtonChange10 = "Invisible"
|
|
Var showExitbutton = "Enable"
|
|
|
|
Var ChangeOK = 0
|
|
|
|
SAVELOG "state_init"
|
|
|
|
|
|
Coin STANDBY
|
|
CoinClear
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
;group message end
|
|
|
|
|
|
<Button>
|
|
<X> 50 </X>
|
|
<Y> info_cancel_y </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> showExitbutton </State>
|
|
<EventClick>
|
|
SAVELOG "exit_button"
|
|
StatusLog "backtohome"
|
|
Coin STANDBY
|
|
CoinClear
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
; warning before start zone start
|
|
|
|
|
|
<Image>
|
|
<X> 150 </X>
|
|
<Y> 150 </Y>
|
|
<Height> 800 </Height>
|
|
<Width> 800 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/warningbeforetestcoin.png" </Filename>
|
|
<State> popupBeforeTestCoinWarning </State>
|
|
</Image>
|
|
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 200 </X>
|
|
<Y> 800 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/beforetestcoinback_bn.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/beforetestcoinback_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> buttonBeforeTestCoinBack </State>
|
|
<EventClick>
|
|
SAVELOG "backtohome_click"
|
|
StatusLog "backtohome"
|
|
Coin STANDBY
|
|
CoinClear
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Button>
|
|
<X> 630 </X>
|
|
<Y> 800 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/beforetestcoinstart_bn.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/beforetestcoinstart_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> buttonTestCoinStart </State>
|
|
<EventClick>
|
|
SAVELOG "start test coin bank"
|
|
StatusLog "start Test Coin"
|
|
|
|
Var currentStage = "init"
|
|
Var openTextPlaseWait = "Enable"
|
|
Var popupBeforeTestCoinWarning = "Invisible"
|
|
Var buttonBeforeTestCoinBack = "Invisible"
|
|
Var buttonTestCoinStart = "Invisible"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
; warning before start zone end
|
|
|
|
|
|
; warning after end zone start
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 150 </X>
|
|
<Y> 150 </Y>
|
|
<Height> 800 </Height>
|
|
<Width> 800 </Width>
|
|
<Volume> SoundVolume </Volume>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/aftertestcoinwarning.png" </Filename>
|
|
<State> popupAfterTestCoinWarning </State>
|
|
</Image>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 630 </X>
|
|
<Y> 850 </Y>
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/aftertestcoinfinlish_bn.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/aftertestcoinfinlish_bp.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> buttonTestCoinEnd </State>
|
|
<EventClick>
|
|
SAVELOG "End test coin bank"
|
|
StatusLog "End Test Coin"
|
|
|
|
Coin STANDBY
|
|
CoinClear
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
; warning after end zone end
|
|
|
|
|
|
</Page> |