Helper state

This commit is contained in:
Ittipat Lusuk 2025-05-09 16:17:33 +07:00
parent eb8f09734f
commit 02eca5bd5b
8 changed files with 258 additions and 105 deletions

View file

@ -30,15 +30,11 @@
If Timeout > 300 Then
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_drinkfail3.xml"
OpenInst 2 "ROOT/taobin_project/xml/page_drinkfail3.xml"
Else
If NextOrder = "true" Then
Var NextOrder = "false"
TransferVar "next" "curr"
Var Seeker = "curr"
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
If Seeker = "next" Then
RootLayoutVisible 3 "hide"
OpenInst 2 "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
@ -97,17 +93,10 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Seeker = "next" Then
RootLayoutVisible 3 "hide"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
If BoxID = 210699 Then
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center.lxml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
@ -505,8 +494,20 @@
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
DEBUGVAR TelephoneNumber
DEBUGVAR ChooseProblem
PROBLEM TelephoneNumber ChooseProblem
If MachineStage = "remove-cup" Then
OpenInst 2 "ROOT/taobin_project/xml/page_drinkfail3.xml"
Else
Open "ROOT/taobin_project/inter/tha/xml/page_help_center_sending_conti.lxml"
EndIf
EndIf
</EventClick>
</Button>