add checkin and add test coin bank in Rootman

This commit is contained in:
SEK 2024-09-05 15:49:29 +07:00
parent 0f60d3b677
commit a06c11514e
15 changed files with 205 additions and 237 deletions

View file

@ -16,7 +16,7 @@
Var startTimerChangeSuccess = "false"
Var restartTimerChange = 3
Var startrestartTimerChange = "false"
Var TimerbacktoHome = 60
Var TimerbacktoHome = 300
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
Var TestCoinLine2 = "total amount "
@ -24,14 +24,19 @@
Var RemainAmountStr1 = 0
Var LastCoin = 0
Var openTextPlaseWait = "Enable"
Var currentStage = "init"
Var coinChange = 10
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 showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Invisible"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -70,10 +75,12 @@
DEBUGVAR LastCoin
DEBUGVAR CoinAmount
StatusLog "On testcoinbank"
</EventOpen>
<EventCoin>
Var TimerbacktoHome = 60
Var TimerbacktoHome = 300
Var LastCoin = CoinAmount - LastCoin
Var RemainAmountStr1 !assigned StringFmt( LastCoin, DisplayFormat, PreScaleConvertShow )
@ -86,22 +93,6 @@
DEBUGVAR LastCoin
DEBUGVAR CoinAmount
If currentStage = "test5bath" Then
If intosw = 0 Then
Var intosw = 1
If LastCoin = 5 Then
SAVELOG "test5bath_pass"
StatusLog "test5bath_pass"
Var currentStage = "test10bath"
SAVELOG "state_test10bath"
Else
SAVELOG "test5bath_fail"
StatusLog "test5bath_fail"
Var currentStage = "test5fail"
SAVELOG "state_test5bath_fail"
EndIf
EndIf
EndIf
If currentStage = "test10bath" Then
@ -139,15 +130,6 @@
EndIf
If currentStage = "test5fail" Then
If LastCoin = 5 Then
SAVELOG "test5bath_pass"
StatusLog "test5bath_pass"
Var currentStage = "test10bath"
SAVELOG "state_test10bath"
EndIf
EndIf
If currentStage = "test10fail" Then
If LastCoin = 10 Then
@ -190,7 +172,7 @@
</EventCoin>
<EventChangeStatus>
Var TimerbacktoHome = 60
Var TimerbacktoHome = 300
DEBUGVAR ChangeStatus
If ChangeStatus = "payout-end" Then
Var ChangeOK = 1
@ -225,94 +207,26 @@
<EventTimeout>
DEBUGVAR currentStage
Var TimerCountDown = TimerCountDown - 1
If currentStage = "init" Then
Var TimerCountDown = TimerCountDown - 1
If TimerCountDown = 0 Then
Coin ON
Var currentStage = "test5bath"
Var currentStage = "test10bath"
Var openTextPlaseWait = "Invisible"
SAVELOG "state_test5bath"
SAVELOG "state_test10bath"
EndIf
EndIf
If currentStage = "test5bath" Then
Var showTextCoin5Foc = "Enable"
Var showTextCoin5Succ = "Invisible"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Enable"
Var showTextCoin10Foc = "Invisible"
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 = "Invisible"
Var showTextbacktohome_testcoin = "Invisible"
Var showTextretryprocess_testcoin = "Invisible"
Var showExitbutton = "Enable"
EndIf
If currentStage = "test5fail" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Invisible"
Var showTextCoin5Fail = "Enable"
Var showTextCoin10Nor = "Enable"
Var showTextCoin10Foc = "Invisible"
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 = "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 = "test10bath" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Enable"
@ -346,9 +260,6 @@
If currentStage = "test10fail" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -382,9 +293,8 @@
If currentStage = "test20bath" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -417,9 +327,7 @@
If currentStage = "test20fail" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -453,9 +361,7 @@
If currentStage = "testchange10" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -489,46 +395,51 @@
If currentStage = "finish" Then
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
Var showTextCoin10Succ = "Enable"
Var showTextCoin10Succ = "Invisible"
Var showTextCoin10Fail = "Invisible"
Var showTextBank20Nor = "Invisible"
Var showTextBank20Foc = "Invisible"
Var showTextBank20Succ = "Enable"
Var showTextBank20Succ = "Invisible"
Var showTextBank20Fail = "Invisible"
Var showTextChange10Nor = "Invisible"
Var showTextChange10Foc = "Invisible"
Var showTextChange10Succ = "Enable"
Var showTextChange10Succ = "Invisible"
Var showTextChange10Fail = "Invisible"
Var showButtonChange10 = "Invisible"
Var showTextmessagebankfail = "Invisible"
Var showTextmessagecoinfail = "Invisible"
Var showTextmessagetestallsuccess = "Enable"
Var showTextmessagetestallsuccess = "Invisible"
Var showTextmesssagechangefail = "Invisible"
Var showTextundotest_testcoin = "Invisible"
Var showTextbacktohome_testcoin = "Enable"
Var showTextretryprocess_testcoin = "Enable"
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 showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Enable"
Var showTextCoin5Fail = "Invisible"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -600,7 +511,7 @@
Coin STANDBY
CoinClear
SAVELOG "back_to_page_board"
Open "ROOT/taobin_project/xml/page_board.xml"
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
EndIf
@ -629,6 +540,7 @@
<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"
@ -661,48 +573,11 @@
</Image>
;group 5 bath start
<Image>
<X> 190 </X>
<Y> 235 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_5_foc.png" </Filename>
<State> showTextCoin5Foc </State>
</Image>
<Image>
<X> 200 </X>
<Y> 235 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_5_succ.png" </Filename>
<State> showTextCoin5Succ </State>
</Image>
<Image>
<X> 200 </X>
<Y> 235 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/testcoin_5_fail.png" </Filename>
<State> showTextCoin5Fail </State>
</Image>
;group 5 bath end
;group 10 bath start
<Image>
<X> 200 </X>
<Y> 320 </Y>
<Y> 230 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
@ -712,7 +587,7 @@
<Image>
<X> 205 </X>
<Y> 320 </Y>
<Y> 230 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
@ -722,7 +597,7 @@
<Image>
<X> 210 </X>
<Y> 320 </Y>
<Y> 230 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -732,7 +607,7 @@
<Image>
<X> 210 </X>
<Y> 320 </Y>
<Y> 230 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -747,7 +622,7 @@
<Image>
<X> 180 </X>
<Y> 410 </Y>
<Y> 320 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
@ -757,7 +632,7 @@
<Image>
<X> 180 </X>
<Y> 410 </Y>
<Y> 320 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
@ -767,7 +642,7 @@
<Image>
<X> 175 </X>
<Y> 410 </Y>
<Y> 320 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -778,7 +653,7 @@
<Image>
<X> 175 </X>
<Y> 410 </Y>
<Y> 320 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -794,7 +669,7 @@
<Image>
<X> 245 </X>
<Y> 500 </Y>
<Y> 400 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -805,7 +680,7 @@
<Image>
<X> 230 </X>
<Y> 500 </Y>
<Y> 400 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -815,7 +690,7 @@
<Image>
<X> 255 </X>
<Y> 500 </Y>
<Y> 400 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -825,7 +700,7 @@
<Image>
<X> 255 </X>
<Y> 500 </Y>
<Y> 400 </Y>
<Height> 60 </Height>
<Width> 590 </Width>
<Volume> SoundVolume </Volume>
@ -844,11 +719,11 @@
<Volume> SoundVolume </Volume>
<State> showButtonChange10 </State>
<EventClick>
Var TimerbacktoHome = 60
Var TimerbacktoHome = 300
SAVELOG "change_btn_click"
Var showTextundotest_testcoin = "Invisible"
Var showButtonChange10 = "Invisible"
Change coinChange
Change testCoinChange
Var startTimerChangeSuccess = "true"
</EventClick>
</Button>
@ -921,9 +796,10 @@
<State> showTextbacktohome_testcoin </State>
<EventClick>
SAVELOG "backtohome_click"
StatusLog "backtohome"
Coin STANDBY
CoinClear
Open "ROOT/taobin_project/xml/page_board.xml"
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
@ -938,17 +814,13 @@
<Volume> SoundVolume </Volume>
<State> showTextretryprocess_testcoin </State>
<EventClick>
Var TimerbacktoHome = 60
Var TimerbacktoHome = 300
Var currentStage = "init"
Var openTextPlaseWait = "Enable"
Var LastCoin = 0
Var TimerCountDown = 3
SAVELOG "retry_btn_click"
SAVELOG "state_test5bath"
Var showTextCoin5Foc = "Invisible"
Var showTextCoin5Succ = "Invisible"
Var showTextCoin5Fail = "Invisible"
SAVELOG "state_test10bath"
Var showTextCoin10Nor = "Invisible"
Var showTextCoin10Foc = "Invisible"
@ -988,34 +860,7 @@
</Button>
<Button>
<X> 750 </X>
<Y> 1200 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/undotest_testcoin.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/undotest_testcoin_bp.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> "Invisible" </State>
<EventClick>
Var TimerbacktoHome = 60
SAVELOG "undo_btn_click"
If currentStage = "test10bath" Then
Var currentStage = "test5bath"
SAVELOG "state_test5bath"
EndIf
If currentStage = "test20bath" Then
Var currentStage = "test10bath"
SAVELOG "state_test10bath"
EndIf
If currentStage = "testchange10" Then
Var currentStage = "test20bath"
SAVELOG "state_test20bath"
EndIf
</EventClick>
</Button>
;group message end
@ -1031,11 +876,112 @@
<State> showExitbutton </State>
<EventClick>
SAVELOG "exit_button"
StatusLog "backtohome"
Coin STANDBY
CoinClear
Open "ROOT/taobin_project/xml/page_board.xml"
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>