Merge branch 'smoothie_tbp' of ssh://192.168.10.159:/1TBHDD/ikong/taobin_project into masterpiece

This commit is contained in:
wanlop run 2025-05-08 10:24:51 +07:00
commit 478e2cb321
95 changed files with 3593 additions and 347 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

View file

@ -30,6 +30,13 @@
Var EnableMultiInstanceFromBoxID = 1
EndIf
<<<<<<< HEAD
If BoxID = 210699 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf
=======
If BoxID = 174565 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf
@ -37,4 +44,5 @@
If BoxID = 173319 Then
Var EnableMultiInstanceFromBoxID = 0
EndIf
EndIf
>>>>>>> 6467e5f893ec61fc1c783c5b4e790ea2d74d664c

View file

@ -14,10 +14,10 @@ Else
Var video_file_name = video_file_name + ".mp4"
If EventTurnOn = 1 Then
GetFileSizeK "taobin_project/inter/aus/video/taobin_thank1_event.mp4" MainfileSize
GetFileSizeK "taobin_project/inter/tha/video/taobin_thank1_event.mp4" MainfileSize
DEBUGVAR MainfileSize
If MainfileSize = 6749397 Then
Var video_file_name = "ROOT/taobin_project/inter/aus/video/taobin_thank1_event.mp4"
Var video_file_name = "ROOT/taobin_project/inter/tha/video/taobin_thank1_event.mp4"
EndIf
EndIf
EndIf

View file

@ -0,0 +1,2 @@
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
RootLayoutVisible 15 "show"

View file

@ -53,7 +53,7 @@ If MenuKidButtonState = "Enable" Then
EndIf
If CocktailShow = "true" Then
If CocktailShow = "true" Then
OpenRedirect "/taobin_project/inter/tha/xml/page_catalog_group_cocktail.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/health.ev"
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/tha/xml/multi/" + layoutVersion
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "/page_catalog_group_cocktail.lxml"
@ -78,10 +78,13 @@ Var InstanceTabOpenFile9 = InstanceTabOpenFile9 + "/page_catalog_group_frozen_fr
Var InstanceTabOpenFile11 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile12 = "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
Var InstanceTabOpenFile10 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile14 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile15 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile15 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml
Var InstanceTabOpenFile13 = "ROOT/taobin_project/inter/tha/xml/multi/tab_menu.lxml"
TabMenuVisibleInst 99
@ -89,10 +92,10 @@ TabMenuVisibleInst 99
DEBUGVAR Not#CountDownForMulti
DEBUGVAR InstanceTabOpenFile2
DEBUGVAR InstanceTabOpenFile2
DEBUGVAR InstanceTabOpenFile3
DEBUGVAR InstanceTabOpenFile4
DEBUGVAR InstanceTabOpenFile5
DEBUGVAR InstanceTabOpenFile5
DEBUGVAR InstanceTabOpenFile6
DEBUGVAR InstanceTabOpenFile7
@ -107,10 +110,10 @@ DEBUGVAR CocktailShow
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
Var CatalogLayoutV3Loaded = 1
LanguageShow = "ENG"
LanguageShow = "ENG"

View file

@ -159,6 +159,7 @@
If SpiralModeFrozenFruit = 1 Then
Var Menu0Selected = "Enable"
Var MenuVSelected2 = "Invisible"
EndIf
If SpiralModeGoods = 1 Then

View file

@ -12,6 +12,9 @@
TopView "show"
; On open
; helper
RootLayoutVisible 15 "hide"
Machine WakeUp
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
@ -35,6 +38,8 @@
SAVELOG "======================================= RefreshAll Languages ================================"
EndIf
Var BaseOnPageBoard = 0
Var NextPage = "-"
Var Seeker.thankLidFlag = 0
@ -257,7 +262,12 @@
; setvar SpiralOnline true
Var ButtonSpiralStage = "Invisible"
If SpiralOnline = "true" Then
Var ButtonSpiralStage = "Enable"
If SpiralModeFrozenFruit = 1 Then
Var ButtonFrozenSmoothie = "Enable
Var ButtonSpiralStage = "Invisible"
Else
Var ButtonSpiralStage = "Enable"
EndIf
EndIf

View file

@ -15,12 +15,12 @@
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_v2/"
EndIf
If LanguageShow = "MYANMAR" Then
If LanguageShow = "MYANMAR" Then
Var show_eng = "true"
Var DirImage2 = "ROOT/taobin_project/image/drink_option_mmr/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_mmr/"
EndIf
If LanguageShow = "MSC" Then
If LanguageShow = "MSC" Then
Var DirImage2 = "ROOT/taobin_project/inter/tha/image/drink_option_msc/"
Var DirImageAlter = "ROOT/taobin_project/inter/tha/image/page3_2_msc/"
EndIf
@ -35,10 +35,26 @@
DEBUGVAR Menu1Selected
If SpiralOnline = "true" Then
If Seeker = "curr" Then
If SpiralModeFrozenFruit = 1 Then
If Menu0Selected = "PressForever" Then
Else
Var Menu0Selected = "Enable"
EndIf
Var MenuVSelected2 = "Invisible"
EndIf
EndIf
EndIf
DEBUGVAR Menu0Selected
</EventOpen>
<Timeout> 10000 </Timeout>
<EventTimeout>
<EventTimeout>
TimerReset
@ -65,7 +81,7 @@
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 9
TabMenuVisibleInst 9
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
@ -83,11 +99,11 @@
Var NextPage = "-"
Var OpenFromMulti = 1
Var OpenFromPageBoard = 1
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>
@ -102,7 +118,7 @@
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 2
TabMenuVisibleInst 2
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
@ -116,10 +132,10 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 3
TabMenuVisibleInst 3
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
@ -223,7 +239,7 @@
<FilenamePress> Var( DirImageAlter + "/bp_Pepsi_7up.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 8
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
@ -267,4 +283,3 @@
</ListView1>
</Popup>

View file

@ -14,10 +14,10 @@
<EventOnShow>
;include="ROOT/taobin_project/inter/tha/xml/multi/menu_catalog_default_init.lxml"
Var Menu0Selected = "PressForever"
;include="ROOT/taobin_project/inter/tha/xml/multi/menu_catalog_default_init.lxml"
Var Menu0Selected = "PressForever"
SAVELOG " Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected"
Var Timeout = 0
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_show_and_refresh.lxml"
@ -44,15 +44,15 @@
Else
Var ice_tab_process_show = "Invisible"
EndIf
GetVisible inst_show_frozen_fruit
If inst_show_frozen_fruit = 1 Then
If inst_show_frozen_fruit_counter > 0 Then
DEBUGVAR inst_show_frozen_fruit_counter
Var inst_show_frozen_fruit_counter = inst_show_frozen_fruit_counter - 1
If inst_show_frozen_fruit_counter = 0 Then
@ -61,7 +61,7 @@
EndIf
EndIf
EndIf
@ -70,7 +70,7 @@
Var RefreshFrozenFruitMenu = 0
SAVELOG "OPEN FROM 3"
Open "ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_frozen_fruit.lxml"
EndIf
EndIf
; setvarint ScriptFrozenMenu 1
If ScriptFrozenMenu = 1 Then

View file

@ -1,5 +1,5 @@
<?hurr
#include=menu_head.py
<?hurr
#include=menu_head.py
?>
<Popup>
@ -16,10 +16,10 @@
<EventOnShow>
;include="ROOT/taobin_project/inter/tha/xml/multi/menu_catalog_default_init.lxml"
Var Menu0Selected = "PressForever"
;include="ROOT/taobin_project/inter/tha/xml/multi/menu_catalog_default_init.lxml"
Var Menu0Selected = "PressForever"
SAVELOG " Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected Menu0Selected"
Var Timeout = 0
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_show_and_refresh.lxml"
@ -46,15 +46,15 @@
Else
Var ice_tab_process_show = "Invisible"
EndIf
GetVisible inst_show_frozen_fruit
If inst_show_frozen_fruit = 1 Then
If inst_show_frozen_fruit_counter > 0 Then
DEBUGVAR inst_show_frozen_fruit_counter
Var inst_show_frozen_fruit_counter = inst_show_frozen_fruit_counter - 1
If inst_show_frozen_fruit_counter = 0 Then
@ -63,7 +63,7 @@
EndIf
EndIf
EndIf
@ -72,7 +72,7 @@
Var RefreshFrozenFruitMenu = 0
SAVELOG "OPEN FROM 3"
Open "ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_frozen_fruit.lxml"
EndIf
EndIf
; setvarint ScriptFrozenMenu 1
If ScriptFrozenMenu = 1 Then
@ -96,7 +96,7 @@
<?hurr
<?hurr
#include=menu_new_layout_gen_v3.py
?>

View file

@ -0,0 +1,737 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= Help Center ================================"
RootLayoutVisible 3 "show"
RootLayoutVisible 13 "hide"
; helper
RootLayoutVisible 15 "show"
DEBUGVAR FromPaymentCash
DEBUGVAR FromSmoothieProcess
DEBUGVAR FromBrewingProcess
Var show_btn_next_help = "Invisible"
Var Problem_Cash_State[0] = "Enable"
Var Problem_Cash_State[1] = "Enable"
Var Problem_Cash_State[2] = "Enable"
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var Problem_Process_State[0] = "Enable"
Var Problem_Process_State[1] = "Enable"
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
If Timeout > 120 Then
SAVELOG "Timeout"
If BaseOnPageBoard = 1 Then
Var BaseOnPageBoard = 0
Var LanguageButtonEnable = "Enable"
Var ButtonLanguageCurrentXPosition = 990
Var ButtonLanguageCurrentYPosition = 608
Var ButtonLanguageListXPosition = 970
Var ButtonLanguageListYPosition = 590
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
Else
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
EndIf
EndIf
Var Timeout = Timeout + 1
Refresh
TimerReset
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
;inter-image
If LanguageShow = "ENG" Then
EndIf
If LanguageShow = "THAI" Then
EndIf
If LanguageShow = "MYANMAR" Then
EndIf
If LanguageShow = "MSC" Then
EndIf
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
If FromPaymentCash = "Enable" Then
Var LanguageButtonEnable = "Invisible"
Else
Var LanguageButtonEnable = "Enable"
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<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 BaseOnPageBoard = 1 Then
Var BaseOnPageBoard = 0
Var LanguageButtonEnable = "Enable"
Var ButtonLanguageCurrentXPosition = 990
Var ButtonLanguageCurrentYPosition = 608
Var ButtonLanguageListXPosition = 970
Var ButtonLanguageListYPosition = 590
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
Else
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
EndIf
EndIf
</EventClick>
</Button>
<Text>
<X> 300 </X>
<Y> 420 </Y>
<Width> 500 </Width>
<Height> 72 </Height>
<Language>
<ID> 002300 </ID>
</Language>
</Text>
<Text>
<X> 115 </X>
<Y> 550 </Y>
<Width> 500 </Width>
<Height> 46 </Height>
<Language>
<ID> 002299 </ID>
</Language>
</Text>
<FrameScroll>
<X> 110 </X>
<Y> 620 </Y>
<Width> 1080 </Width>
<Height> 1080 </Height>
<ScrollHeight> 1080 </ScrollHeight>
<Scroll> "Vertical" </Scroll>
<Column> 1 </Column>
<Block>
<State> "Enable" </State>
<Width> 1080 </Width>
<Height> "auto" </Height>
<MarginTop> 20 </MarginTop>
<ListView1>
<Width> 986 </Width>
<Height> "auto" </Height>
<Align> "vertical"</Align>
<State> "Enable" </State>
;for FromPaymentCash
<Row1>
<Width> 986 </Width>
<Height> "auto" </Height>
<State> FromPaymentCash </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<State> Problem_Cash_State[0] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Cash_State[0] = "PressForever"
Var Problem_Cash_State[1] = "Enable"
Var Problem_Cash_State[2] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 100 </Y>
<State> Problem_Cash_State[1] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Cash_State[0] = "Enable"
Var Problem_Cash_State[1] = "PressForever"
Var Problem_Cash_State[2] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 200 </Y>
<State> Problem_Cash_State[2] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Cash_State[0] = "Enable"
Var Problem_Cash_State[1] = "Enable"
Var Problem_Cash_State[2] = "PressForever"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Text>
<X> 100 </X>
<Y> 0 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Cash_State[0] </State>
<Language>
<ID> 002301 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 100 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Cash_State[1] </State>
<Language>
<ID> 002302 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 200 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Cash_State[2] </State>
<Language>
<ID> 002303 </ID>
</Language>
</Text>
</Row1>
; for FromBrewingProcess
<Row1>
<Width> 986 </Width>
<Height> "auto" </Height>
<State> FromBrewingProcess </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<State> Problem_Brewing_State[0] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "PressForever"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 100 </Y>
<State> Problem_Brewing_State[1] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "PressForever"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 200 </Y>
<State> Problem_Brewing_State[2] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "PressForever"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 300 </Y>
<State> Problem_Brewing_State[3] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "PressForever"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 400 </Y>
<State> Problem_Brewing_State[4] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "PressForever"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 500 </Y>
<State> Problem_Brewing_State[5] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "PressForever"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 600 </Y>
<State> Problem_Brewing_State[6] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "PressForever"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 700 </Y>
<State> Problem_Brewing_State[7] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "PressForever"
Var Problem_Brewing_State[8] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 800 </Y>
<State> Problem_Brewing_State[8] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Brewing_State[0] = "Enable"
Var Problem_Brewing_State[1] = "Enable"
Var Problem_Brewing_State[2] = "Enable"
Var Problem_Brewing_State[3] = "Enable"
Var Problem_Brewing_State[4] = "Enable"
Var Problem_Brewing_State[5] = "Enable"
Var Problem_Brewing_State[6] = "Enable"
Var Problem_Brewing_State[7] = "Enable"
Var Problem_Brewing_State[8] = "PressForever"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Text>
<X> 100 </X>
<Y> 0 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[0] </State>
<Language>
<ID> 002304 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 100 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[1] </State>
<Language>
<ID> 002305 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 200 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[2] </State>
<Language>
<ID> 002306 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 300 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[3] </State>
<Language>
<ID> 002307 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 400 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[4] </State>
<Language>
<ID> 002308 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 500 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[5] </State>
<Language>
<ID> 002309 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 600 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[6] </State>
<Language>
<ID> 002310 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 700 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[7] </State>
<Language>
<ID> 002311 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 800 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Brewing_State[8] </State>
<Language>
<ID> 002303 </ID>
</Language>
</Text>
</Row1>
; FromSmoothieProcess
<Row1>
<Width> 986 </Width>
<Height> "auto" </Height>
<State> FromSmoothieProcess </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<State> Problem_Process_State[0] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Process_State[0] = "PressForever"
Var Problem_Process_State[1] = "Enable"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 100 </Y>
<State> Problem_Process_State[1] </State>
<Filename> "ROOT/taobin_project/image/page_help_center/cb_uncheck_problem.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/cb_checked_problem.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Problem_Process_State[0] = "Enable"
Var Problem_Process_State[1] = "PressForever"
Var show_btn_next_help = "Enable"
Refresh
</EventClick>
</Button>
<Text>
<X> 100 </X>
<Y> 0 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Process_State[0] </State>
<Language>
<ID> 002312 </ID>
</Language>
</Text>
<Text>
<X> 100 </X>
<Y> 100 </Y>
<Width> 500 </Width>
<Height> 75 </Height>
<State> Problem_Process_State[1] </State>
<Language>
<ID> 002303 </ID>
</Language>
</Text>
</Row1>
</ListView1>
</Block>
</FrameScroll>
; next
<Button>
<X> 225 </X>
<Y> 1685 </Y>
<State> show_btn_next_help </State>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_next_help.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_next_help.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_help_center/bp_next_help.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center_sending.lxml"
;Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
</EventClick>
</Button>
<Text>
<X> 300 </X>
<Y> 1715 </Y>
<State> show_btn_next_help </State>
<Width> 500 </Width>
<Height> 75 </Height>
<Language>
<X> 0 </X>
<Y> 0 </Y>
<ID> 002350 </ID>
</Language>
</Text>
<EventUnitTest1>
</EventUnitTest1>
</Popup>

View file

@ -0,0 +1,558 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= Help Center ================================"
RootLayoutVisible 3 "show"
Var Timeout = 0
Var TelephoneNumber = ""
Var ShowTextNumber = "Enable"
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
Var Tel_Confirm_State = "Invisible"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
SAVELOG MachineStage
Var Timeout = Timeout + 1
If Timeout > 300 Then
If MachineStage = "remove-cup" Then
Open "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"
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"
EndIf
EndIf
EndIf
TimerReset
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
;inter-image
If LanguageShow = "ENG" Then
EndIf
If LanguageShow = "THAI" Then
EndIf
If LanguageShow = "MYANMAR" Then
EndIf
If LanguageShow = "MSC" Then
EndIf
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
If FromPaymentCash = "Enable" Then
Var LanguageButtonEnable = "Invisible"
Else
Var LanguageButtonEnable = "Enable"
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<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
</EventClick>
</Button>
<Text>
<X> 300 </X>
<Y> 420 </Y>
<Width> 500 </Width>
<Height> 72 </Height>
<Language>
<ID> 002300 </ID>
</Language>
</Text>
; helper
<Image>
<X> 440 </X>
<Y> 552 </Y>
<Width> 210 </Width>
<Height> 311 </Height>
<Filename> "ROOT/taobin_project/image/page_help_center/helper.png" </Filename>
</Image>
<Text>
<X> 0 </X>
<Y> 900 </Y>
<Language>
<ID> 002353 </ID>
</Language>
</Text>
<Image>
<X> 257 </X>
<Y> 1035 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/img3.png" </Filename>
</Image>
<Image>
<X> 399 </X>
<Y> 1080 </Y>
<State> ShowTextNumber </State>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/text15.png" </Filename>
</Image>
<Image>
<X> 298 </X>
<Y> 1055 </Y>
<State> ShowTextNumber </State>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/Group.png" </Filename>
</Image>
<Button>
<X> 343 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_1.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "1"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_2.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "2"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_3.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "3"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 343 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_4.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "4"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_5.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "5"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_6.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_6.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "6"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 343 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_7.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_7.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "7"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_8.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_8.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "8"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_9.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_9.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "9"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1545 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_0.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_0.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "0"
Trim TelephoneNumber MaxPhoneNumber
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowTextNumber = "Invisible"
TimerReset
Refresh
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1545 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_back-1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_back-1.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Trim TelephoneNumber -1
StrLen TelephoneNumber TelNumLen
If TelNumLen < MinPhoneNumber Then
Var Tel_Confirm_State = "Invisible"
EndIf
If TelNumLen = 0 Then
Var ShowTextNumber = "Enable"
EndIf
;Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1060 </Y>
<Width> 1080 </Width>
<Align> Center </Align>
<Size> 48 </Size>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Refresh> "Enable" </Refresh>
<Value> TelephoneNumber </Value>
<Format> Telnum-mask-1 </Format>
</Text>
; confirm next
<Button>
<X> 652 </X>
<Y> 1735 </Y>
<Refresh> "Enable" </Refresh>
<State> Tel_Confirm_State </State>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_accept_help.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_accept_help.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
</EventClick>
</Button>
<Text>
<X> 585 </X>
<Y> 1765 </Y>
<State> Tel_Confirm_State </State>
<Width> 500 </Width>
<Height> 75 </Height>
<Language>
<X> 0 </X>
<Y> 0 </Y>
<ID> 002352 </ID>
</Language>
</Text>
<Button>
<X> 64 </X>
<Y> 1735 </Y>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_back_to_help.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bn_back_to_help.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
<Text>
<X> 115 </X>
<Y> 1765 </Y>
<Width> 250 </Width>
<Height> 75 </Height>
<Language>
<X> 0 </X>
<Y> 0 </Y>
<ID> 002351 </ID>
</Language>
</Text>
<EventUnitTest1>
</EventUnitTest1>
</Popup>

View file

@ -0,0 +1,35 @@
<Popup>
<Width> 1080</Width>
<Height> 1920 </Height>
<EventOpen>
RootLayoutVisible 13 "hide"
;OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
If Timeout > 66 Then
SAVELOG "Timeout"
TabMenuVisibleInst 99
If Seeker = "next" Then
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
SAVELOG "Back"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
</Popup>

View file

@ -5,11 +5,11 @@
; - ** topping.
; - TelephoneNumber
; - Market Code
; -
; -
; Set
; - Amount 0 baht
;
;
<Popup>
<Cache> "Enable" </Cache>
@ -25,9 +25,8 @@
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 1
Var OverrideVideoThankyou = 1
Var IgnoreLidStrawAll = 1
Open "ROOT/taobin_project/xml/page_thankyou.xml"
</EventOpen>
@ -38,27 +37,15 @@
If TimeOutSmoothiesProcess > 0 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
If TimeOutSmoothiesProcess = 0 Then
Var OverrideVideoThankyou = 1
Var IgnoreLidStrawAll = 1
Var ModeFreeEnable = 2
Var PriceDrink = 30
Var DiscountDrink = PriceDrink
Var StrawState = "Enable"
Var LidState = "Enable"
Var Seeker.get_a_straw = StrawState
Var Seeker.get_a_lid = LidState
Var Seeker.showname = " Smoothie "
Var Seeker.PictureDrink = ""
Var Seeker.CollectPointMain = 1
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
@ -72,45 +59,46 @@
<Video>
<X> 0 </X>
<Y> 380 </Y>
<Y> 500 </Y>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4" </Filename>
<Filename> VideoSmoothieProcess </Filename>
</Video>
<Text>
<X> 0 </X>
<Y> 1337 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 1201 </ID>
</Language>
</Text>
;<Text>
;<X> 0 </X>
;<Y> 1337 </Y>
;<Width> 1080 </Width>
;<Height> 85 </Height>
;<Align> Center </Align>
;<Language>
;<ID> 1201 </ID>
;</Language>
;</Text>
<Button>
<X> 77 </X>
<Y> 1531 </Y>
<Filename> Var(DirImage + "/bn_main_button.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_button.png") </FilenamePress>
<X> 210 </X>
<Y> 1431 </Y>
<State> Show_btn_process </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_get_blend.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_get_blend.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/smoothie/proccess/bd_get_blend.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var SmoothieProcessState = "press"
__CMD "UseArm" "2" "-" "-"
Machine InsertCupAndOpen
Machine InsertCupAndOpen
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1571 </Y>
<Y> 1451 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
@ -119,4 +107,23 @@
</Language>
</Text>
; second time
<Text>
<Refresh> "Enable" </Refresh>
<X> CountDown_x </X>
<Y> 1540 </Y>
<Size> 72 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> TimeOutSmoothiesProcess </Value>
</Text>
<Text>
<Refresh> "Enable" </Refresh>
<X> Second_x </X>
<Y> 1560 </Y>
<Size> 52 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> "S" </Value>
</Text>

View file

@ -14,12 +14,16 @@
Machine WakeUp
RootLayoutVisible 3 "show"
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
DEBUGVAR ToppingNewShow
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/sometime/campaign_sound.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/ticket_time_blending.ev"
DEBUGVAR OpenFromPageBoard
If OpenFromPageBoard = 1 Then
Var OpenFromPageBoard = 0
@ -52,26 +56,117 @@
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 120
Var FromSmoothieProcess = "Enable"
Var FromPaymentCash = "Invisible"
Var FromBrewingProcess = "Invisible"
Var TimeOutHandPoint = 0
Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0
Var Show_btn_process = "Enable"
Var Showhelper = "Invisible"
Var EnableBtnLangWithHelper = 1
Var VideoSmoothieProcess = "ROOT/taobin_project/animation01/Taobin_empty.mp4"
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess < 100 Then
Var Second_x = 580
Var CountDown_x = 475
EndIf
If TimeOutSmoothiesProcess > 99 Then
Var Second_x = 600
Var CountDown_x = 460
EndIf
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
Var ArmIDForMakeOrder = 0
If CH9992_Status = "READY" Then
Var ArmIDForMakeOrder = 2
EndIf
If CH9994_Status = "READY" Then
Var ArmIDForMakeOrder = 4
EndIf
DEBUGVAR ArmIDForMakeOrder
__CMD "ui-load-playlist" 0 SelectDrink "-"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
Var TimeOutHandPoint = TimeOutHandPoint + 1
If TextDoorButtonID = 001202 Then
If Show_btn_process = "Disable" Then
Var ShowHandPoint = "Invisible"
Else
If TimeOutHandPoint > 9 Then
If MotionHandPoint = 0 Then
Var ShowHandPoint = "Enable"
Var MotionHandPoint = 1
Else
Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0
EndIf
EndIf
EndIf
Else
Var ShowHandPoint = "Invisible"
EndIf
If Show_btn_process = "Disable" Then
Var VideoSmoothieProcess = "ROOT/taobin_project/video/TaoBin_Tao_Pun_motion_proof3_pause.mp4"
Var Showhelper = "Enable"
Var Show_btn_help = "Invisible"
Else
If EnableHelperShow = 1 Then
Var Show_btn_help = "Enable"
Else
Var Show_btn_help = "Invisible"
EndIf
Var VideoSmoothieProcess = "ROOT/taobin_project/video/TaoBin_Tao_Pun_motion_proof3.mp4"
Var Showhelper = "Invisible"
EndIf
If TimeOutSmoothiesProcess < 100 Then
If TimeOutSmoothiesProcess < 10 Then
Var Second_x = 560
Var CountDown_x = 495
Else
Var Second_x = 580
Var CountDown_x = 475
EndIf
EndIf
If TimeOutSmoothiesProcess > 99 Then
Var Second_x = 600
Var CountDown_x = 460
EndIf
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess > 0 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
If Show_btn_process = "Disable" Then
; do not thing
Else
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
@ -79,7 +174,7 @@
DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
DEBUGVAR CupOnArm
DEBUGVAR DoorCupPosition
@ -89,9 +184,21 @@
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
DEBUGVAR SensorDoorCupStatus
DEBUGVAR ArmIDForMakeOrder
If CH9992_Status = "READY" Then
If ArmIDForMakeOrder = 2 Then
Var ChannelArmForProccessStatus = CH9992_Status
EndIf
If ArmIDForMakeOrder = 4 Then
Var ChannelArmForProccessStatus = CH9994_Status
EndIf
DEBUGVAR ChannelArmForProccessStatus
If ChannelArmForProccessStatus = "READY" Then
If DoorCupPosition = "bottom" Then
If SmoothieProcessState = "idle" Then
@ -101,25 +208,28 @@
Var TextDoorButtonID = 001203
Else
EndIf
EndIf
Else
If DoorCupPosition = "top" Then
Var TextDoorButtonID = 001204
If SmoothieProcessState = "press" Then
Var SmoothieProcessState = "insert"
EndIf
Else
If SmoothieProcessState = "idle" Then
Else
If SmoothieProcessState = "press" Then
Else
Var TextDoorButtonID = 001205
EndIf
EndIf
EndIf
EndIf
@ -130,40 +240,42 @@
Var CountDownCertainConfuse = CountDownCertainConfuse - 1
If CountDownCertainConfuse = 0 Then
Machine DoorClose
Machine DoorClose
EndIf
EndIf
EndIf
Else
If CH9992_Status = "RUNNING" Then
If ChannelArmForProccessStatus = "RUNNING" Then
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206
Var SelectDrink = "12-01-07-0001"
Var TextDoorButtonID = 001206
Var SelectDrink = Seeker.selected_a_drink
Var SelectSugarID = ""
Machine StrawOrder
Topping "Select" SelectDrink
Var SmoothieProcessState = "blending"
Var SmoothieProcessState = "blending"
EndIf
If SmoothieProcessState = "blending" Then
Menu "set-name" "Smoothie "
Menu "set-image" Seeker.PictureDrink
Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf
DEBUGVAR TextDoorButtonID
@ -171,7 +283,9 @@
TimerReset
</EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING
;DEBUGVAR Var [ChannelArmForProccessStatus] = RUNNING
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
@ -183,32 +297,25 @@
<EventLanguageOnChange>
DEBUGVAR LanguageShow
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventClick>
</Button>
;
;
;
; zone
; zone
;
;
;
@ -217,45 +324,95 @@
<Video>
<X> 0 </X>
<Y> 380 </Y>
<Y> 500 </Y>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4" </Filename>
<Filename> VideoSmoothieProcess </Filename>
</Video>
; helper
;<Image>
;<X> 420 </X>
;<Y> 652 </Y>
;<State> Showhelper </State>
;<Width> 240 </Width>
;<Height> 341 </Height>
;<Filename> "ROOT/taobin_project/image/page_help_center/helper.png" </Filename>
;</Image>
; Showhelper
;<Text>
;<X> 0 </X>
;<Y> 1080 </Y>
;<State> Showhelper </State>
;<Language>
;<ID> 002409 </ID>
;</Language>
;</Text>
<Text>
<X> 0 </X>
<Y> 1337 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 1201 </ID>
</Language>
</Text>
; helper button
<Button>
<X> 940 </X>
<Y> 420 </Y>
<State> Show_btn_help </State>
<Filename> "ROOT/taobin_project/image/page_payment/helper.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
; helper button lead
<Button>
<X> 940 </X>
<Y> 420 </Y>
<State> Showhelper </State>
<Filename> "ROOT/taobin_project/image/page_help_center/help_lead.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
</EventClick>
</Button>
<Button>
<X> 77 </X>
<Y> 1531 </Y>
<Filename> Var(DirImage + "/bn_main_button.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_button.png") </FilenamePress>
<X> 210 </X>
<Y> 1431 </Y>
<State> Show_btn_process </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_get_blend.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_get_blend.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/smoothie/proccess/bd_get_blend.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var SmoothieProcessState = "press"
__CMD "UseArm" "2" "-" "-"
Machine InsertCupAndOpen
If DoorCupPosition = "top" Then
Else
Var ArmIDForMakeOrderStr = "" + ArmIDForMakeOrder
DEBUGVAR ArmIDForMakeOrderStr
__CMD "UseArm" ArmIDForMakeOrderStr "-" "-"
Machine InsertCupAndOpen
EndIf
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1571 </Y>
<Y> 1451 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
@ -264,28 +421,63 @@
</Language>
</Text>
; second time
<Text>
<Refresh> "Enable" </Refresh>
<X> CountDown_x </X>
<Y> 1540 </Y>
<Size> 72 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> TimeOutSmoothiesProcess </Value>
</Text>
<Text>
<Refresh> "Enable" </Refresh>
<X> Second_x </X>
<Y> 1560 </Y>
<Size> 52 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> "S" </Value>
</Text>
<Image>
<X> 725 </X>
<Y> 1431 </Y>
<State> ShowHandPoint </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/hand_point.png" </Filename>
<Image>
; cancel
<Button>
<X> 337 </X>
<Y> 1743 </Y>
<Filename> Var(DirImage + "/bn_cancel.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cancel.png") </FilenamePress>
<X> 210 </X>
<Y> 1700 </Y>
<State> Show_btn_process </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_2.xml"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1767 </Y>
<Y> 1724 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 001210 </ID>
<ID> 002402 </ID>
</Language>
</Text>

View file

@ -0,0 +1,469 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= page_smoothie_suggest_and_process_2.xml ================================"
; On open
TopView "show"
; On open
Machine WakeUp
RootLayoutVisible 3 "show"
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
DEBUGVAR ToppingNewShow
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/sometime/campaign_sound.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/ticket_time_blending.ev"
Var NextPage = "-"
If Seeker = "curr" Then
Machine DoorLidClose
EndIf
CoinVending OFF
; Clear value
Topping "clear" "-"
Var DirImage = "ROOT/taobin_project/image/smoothie/proccess"
Var ProcessCupDebugText = ""
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess < 101 Then
If TimeOutSmoothiesProcess < 11 Then
Var CountDown_x_1 = 515
Var Second_x_1 = 560
Else
Var CountDown_x_1 = 485
Var Second_x_1 = 560
EndIf
EndIf
If TimeOutSmoothiesProcess > 98 Then
Var CountDown_x_1 = 485
Var Second_x_1 = 585
EndIf
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
; time moving
If TimeOutSmoothiesProcess < 101 Then
If TimeOutSmoothiesProcess < 11 Then
Var CountDown_x_1 = 515
Var Second_x_1 = 560
Else
Var CountDown_x_1 = 485
Var Second_x_1 = 560
EndIf
EndIf
If TimeOutSmoothiesProcess > 98 Then
Var CountDown_x_1 = 485
Var Second_x_1 = 585
EndIf
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess > 0 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
DEBUGVAR CH9991_Status
DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
DEBUGVAR CupOnArm
DEBUGVAR DoorCupPosition
DEBUGVAR CupChecking
DEBUGVAR CupArmMove
DEBUGVAR buttonRemoveCup
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
DEBUGVAR SensorDoorCupStatus
If CH9992_Status = "READY" Then
If DoorCupPosition = "bottom" Then
If SmoothieProcessState = "idle" Then
Var TextDoorButtonID = 001202
Else
If SmoothieProcessState = "insert" Then
Var TextDoorButtonID = 001203
Else
EndIf
EndIf
Else
If DoorCupPosition = "top" Then
Var TextDoorButtonID = 001204
If SmoothieProcessState = "press" Then
Var SmoothieProcessState = "insert"
EndIf
Else
If SmoothieProcessState = "idle" Then
Else
If SmoothieProcessState = "press" Then
Else
Var TextDoorButtonID = 001205
EndIf
EndIf
EndIf
EndIf
If AnyArmConfuse = 1 Then
If CountDownCertainConfuse > 0 Then
Var CountDownCertainConfuse = CountDownCertainConfuse - 1
If CountDownCertainConfuse = 0 Then
Machine DoorClose
EndIf
EndIf
EndIf
Else
If CH9992_Status = "RUNNING" Then
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206
Var SelectDrink = Seeker.selected_a_drink
Var SelectSugarID = ""
Topping "Select" SelectDrink
Var SmoothieProcessState = "blending"
EndIf
If SmoothieProcessState = "blending" Then
Menu "set-name" "Smoothie "
Menu "set-image" Seeker.PictureDrink
Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf
DEBUGVAR TextDoorButtonID
Refresh
TimerReset
</EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING
<EventLanguageOnChange>
DEBUGVAR LanguageShow
If LanguageShow = "THAI" Then
EndIf
If LanguageShow = "ENG" Then
EndIf
If LanguageShow = "MYANMAR" Then
EndIf
If LanguageShow = "MSC" Then
EndIf
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
DEBUGVAR OpenFileXML
Open OpenFromXML
</EventClick>
</Button>
;
;
;
; zone
;
;
;
<Image>
<X> 185 </X>
<Y> 570 </Y>
<Width> 722 </Width>
<Height> 732 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/tao_sad.png" </Filename>
</Image>
<Text>
<X> 300 </X>
<Y> 420 </Y>
<Width> 500 </Width>
<Height> 72 </Height>
<Language>
<ID> 002400 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 550 </Y>
<Language>
<ID> 002405 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1290 </Y>
<Language>
<ID> 002407 </ID>
</Language>
</Text>
; cancel
<Button>
<X> 210 </X>
<Y> 1500 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var TimeOutSmoothiesProcess = 120
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
;include="ROOT/taobin_project/inc/return_condition.ev"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1530 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002402 </ID>
</Language>
</Text>
; go back
<Button>
<X> 210 </X>
<Y> 1650 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_back_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_back_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
DEBUGVAR OpenFromXML
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open OpenFromXML
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1682 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002403 </ID>
</Language>
</Text>
; second time
<Text>
<Refresh> "Enable" </Refresh>
<X> CountDown_x_1 </X>
<Y> 1743 </Y>
<Width> 150 </Width>
<Height> 72 </Height>
<Size> 44 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> TimeOutSmoothiesProcess </Value>
</Text>
<Image>
<Refresh> "Enable" </Refresh>
<X> Second_x_1 </X>
<Y> 1760 </Y>
<Width> 23 </Width>
<Height> 30 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/second.png" </Filename>
</Image>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ProcessCupDebugText </Value>
</Text>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "V01 "</Value>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventUnitTest1>
<EventUnitTest4>
Var StrawGetMoreState = "Invisible"
Var bg_lidProblem_ST = "Enable"
Var GetLidButtonState2 = "Invisible"
Var bg_lidProblem_ST2 ="Enable"
Var XStraw = 376
Var EnableGetMoreStrawFileName2 = "Invisible"
Var bg_strawProblem_ST2 ="Enable"
</EventUnitTest4>
<EventUnitTest2>
Var MachineState_Result = 0
Var waitAckPay = 1
Var BREW_COUNT_DOWN_FROM_APP = "on"
Var CountDownBrewing = 122
Var MachineStage = "testing"
Var BREW_CNT = 122
Var InternationalEnable = 1
DEBUGVAR InternationalEnable
Var LanguageObjectShow = "Enable"
Var NoLangObjectShow = "Invisible"
Var Top2Timeout = 19
DEBUGVAR CountDownBrewing
;Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_lid_straw.xml"
</EventUnitTest2>
; Initial for jump to page_brewing3.xml
<EventUnitTest3>
Open "ROOT/taobin_project/inter/tha/xml/page_collect_point_1.lxml"
Open "ROOT/taobin_project/xml/page_check_member2.xml"
</EventUnitTest3>
<EventUnitTest5>
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
</EventUnitTest5>
<EventUnitTest6>
Open "ROOT/taobin_project/xml/page_before_check_member.xml"
</EventUnitTest6>
<EventUnitTest7>
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
</EventUnitTest7>
<EventUnitTest8>
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"
</EventUnitTest8>
</Popup>

View file

@ -0,0 +1,380 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= page_smoothie_suggest_and_process_3.xml ================================"
; On open
TopView "show"
; On open
Machine WakeUp
RootLayoutVisible 3 "show"
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
DEBUGVAR ToppingNewShow
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/sometime/campaign_sound.ev"
Var NextPage = "-"
If Seeker = "curr" Then
Machine DoorLidClose
EndIf
CoinVending OFF
; Clear value
Topping "clear" "-"
Var DirImage = "ROOT/taobin_project/image/smoothie/proccess"
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 0
Var Timeout = 0
DEBUGVAR TimeOutSmoothiesProcess
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
DEBUGVAR CH9991_Status
DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
DEBUGVAR CupOnArm
DEBUGVAR DoorCupPosition
DEBUGVAR CupChecking
DEBUGVAR CupArmMove
DEBUGVAR buttonRemoveCup
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
DEBUGVAR SensorDoorCupStatus
DEBUGVAR Timeout
If Timeout > 66 Then
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
If CH9992_Status = "READY" Then
If DoorCupPosition = "bottom" Then
If SmoothieProcessState = "idle" Then
Var TextDoorButtonID = 001202
Else
If SmoothieProcessState = "insert" Then
Var TextDoorButtonID = 001203
Else
EndIf
EndIf
Else
If DoorCupPosition = "top" Then
Var TextDoorButtonID = 001204
If SmoothieProcessState = "press" Then
Var SmoothieProcessState = "insert"
EndIf
Else
If SmoothieProcessState = "idle" Then
Else
If SmoothieProcessState = "press" Then
Else
Var TextDoorButtonID = 001205
EndIf
EndIf
EndIf
EndIf
If AnyArmConfuse = 1 Then
If CountDownCertainConfuse > 0 Then
Var CountDownCertainConfuse = CountDownCertainConfuse - 1
If CountDownCertainConfuse = 0 Then
Machine DoorClose
EndIf
EndIf
EndIf
Else
If CH9992_Status = "RUNNING" Then
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206
Var SelectDrink = Seeker.selected_a_drink
Var SelectSugarID = ""
Topping "Select" SelectDrink
Var SmoothieProcessState = "blending"
EndIf
If SmoothieProcessState = "blending" Then
Menu "set-name" "Smoothie "
Menu "set-image" Seeker.PictureDrink
;Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf
Var Timeout = Timeout + 1
Refresh
TimerReset
</EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING
<EventLanguageOnChange>
DEBUGVAR LanguageShow
If LanguageShow = "THAI" Then
Var warning_time_x = 220
Var warning_time_y = 570
EndIf
If LanguageShow = "ENG" Then
Var warning_time_x = 240
Var warning_time_y = 570
EndIf
If LanguageShow = "MYANMAR" Then
Var warning_time_x = 110
Var warning_time_y = 555
EndIf
If LanguageShow = "MSC" Then
Var warning_time_x = 350
Var warning_time_y = 570
EndIf
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
DEBUGVAR OpenFileXML
Open OpenFromXML
</EventClick>
</Button>
;
;
;
; zone
;
;
;
<Image>
<X> 185 </X>
<Y> 570 </Y>
<Width> 722 </Width>
<Height> 732 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/tao_sad.png" </Filename>
</Image>
; warning time
<Image>
<Refresh> "Enable" </Refresh>
<X> warning_time_x </X>
<Y> warning_time_y </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/clock.png" </Filename>
</Image>
<Text>
<X> 50 </X>
<Y> 550 </Y>
<Language>
<ID> 002408 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1320 </Y>
<Language>
<ID> 002406 </ID>
</Language>
</Text>
; cancel to home
<Button>
<X> 210 </X>
<Y> 1730 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var TimeOutSmoothiesProcess = 120
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
;include="ROOT/taobin_project/inc/return_condition.ev"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1760 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002404 </ID>
</Language>
</Text>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ProcessCupDebugText </Value>
</Text>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "V01 "</Value>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventUnitTest1>
<EventUnitTest4>
Var StrawGetMoreState = "Invisible"
Var bg_lidProblem_ST = "Enable"
Var GetLidButtonState2 = "Invisible"
Var bg_lidProblem_ST2 ="Enable"
Var XStraw = 376
Var EnableGetMoreStrawFileName2 = "Invisible"
Var bg_strawProblem_ST2 ="Enable"
</EventUnitTest4>
<EventUnitTest2>
Var MachineState_Result = 0
Var waitAckPay = 1
Var BREW_COUNT_DOWN_FROM_APP = "on"
Var CountDownBrewing = 122
Var MachineStage = "testing"
Var BREW_CNT = 122
Var InternationalEnable = 1
DEBUGVAR InternationalEnable
Var LanguageObjectShow = "Enable"
Var NoLangObjectShow = "Invisible"
Var Top2Timeout = 19
DEBUGVAR CountDownBrewing
;Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_lid_straw.xml"
</EventUnitTest2>
; Initial for jump to page_brewing3.xml
<EventUnitTest3>
;Open "ROOT/taobin_project/inter/tha/xml/page_collect_point_1.lxml"
Open "ROOT/taobin_project/xml/page_check_member2.xml"
</EventUnitTest3>
<EventUnitTest5>
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
</EventUnitTest5>
<EventUnitTest6>
Open "ROOT/taobin_project/xml/page_before_check_member.xml"
</EventUnitTest6>
<EventUnitTest7>
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
</EventUnitTest7>
<EventUnitTest8>
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"
</EventUnitTest8>
</Popup>

View file

@ -6,20 +6,25 @@
<Volume> SoundVolume </Volume>
<EventOpen>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
Machine WakeUp
Var BugFlag = 0
CRLFToSpace showname
CRLFToSpace showdesc
Var MachineEvent = 0
Var MatchineSpiralStage = "-"
Var NextButtonState = "Invisible"
;- Begin
Var PriceDrinkNoTop = PriceDrink
Var PriceDrinkTmp = PriceDrink
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
Var Timeout = 0
;SAVELOG PriceDrinkTmp
;- End
@ -41,19 +46,19 @@
DEBUGVAR backGroundAddExtra
DEBUGVAR backGroundAddShotPremium
DEBUGVAR MultiPayEnable
DEBUGVAR CART_COUNT
Var btnAddCart = "Invisible"
If MultiPayEnable = "true" Then
If MultiPayEnable = "true" Then
Var btnAddCart = "Enable"
If CART_COUNT = 3 Then
Var btnAddCart = "Invisible"
Var btnAddCart = "Invisible"
EndIf
EndIf
Var LidDeactiveButton = "Invisible"
Var StrawDeactiveButton = "Invisible"
Var LidDeactiveButton = "Invisible"
Var StrawDeactiveButton = "Invisible"
Machine DoorClose
Machine DoorLidClose
@ -63,7 +68,7 @@
Var NEW_MULTI = "Invisible"
Var high_light_drink_type = "Invisible"
Var text_hot_color = "0x84776F"
Var text_cold_color = "0x84776F"
Var text_blender_color = "0x84776F"
@ -104,20 +109,20 @@
If hot_button_state = "Disable2" Then
Var text_price_d1 = ""
Else
Var text_price_d1 !assigned StringFmt( PriceD1 , DisplayFormatFull, PreScaleConvertShow)
Var text_price_d1 !assigned StringFmt( PriceD1 , DisplayFormatFull, PreScaleConvertShow)
EndIf
If cold_button_state = "Disable2" Then
Var text_price_d2 = ""
Else
Var text_price_d2 !assigned StringFmt( PriceD2 , DisplayFormatFull, PreScaleConvertShow)
Var text_price_d2 !assigned StringFmt( PriceD2 , DisplayFormatFull, PreScaleConvertShow)
EndIf
If blend_button_state = "Disable2" Then
Var text_price_d3 = ""
Else
Var text_price_d3 !assigned StringFmt( PriceD3 , DisplayFormatFull, PreScaleConvertShow)
Var text_price_d3 !assigned StringFmt( PriceD3 , DisplayFormatFull, PreScaleConvertShow)
EndIf
DEBUGVAR LanguageShowByIndex
@ -134,27 +139,31 @@
CRLFToSpace showname
CRLFToSpace showdesc
Var Seeker.PictureDrink = PictureDrink
Var Seeker.showname = showname
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
<EventTimeout>
DEBUGVAR Timeout
Var Timeout = Timeout + 1
If Timeout > 40 Then
Var Timeout = 0
If Seeker = "next" Then
If Seeker = "next" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
Open "ROOT/taobin_project/xml/page_catalog.xml"
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
EndIf
If MultiPayEnable = "true" Then
If MultiPayEnable = "true" Then
If NEW_MULTI = "Invisible" Then
Var NEW_MULTI = "Enable"
Else
@ -164,18 +173,96 @@
If Seeker = "curr" Then
If DoorCupPosition = "bottom" Then
; It normal
; It normal
Var EmergencyStop = "false"
Else
Var EmergencyStop = "true"
EndIf
EndIf
If MachineEvent = 1 Then
If MatchineSpiralStage = "-" Then
Else
If MatchineSpiralStage = "spiral-valid" Then
Function 2
Else
; Verify error
DEBUGVAR MachineSpiralErrorCode
Open "ROOT/taobin_project/xml/page_spiral_invalid_failed.xml"
EndIf
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
DEBUGVAR InternationalEnable
SAVELOG "EventLanguageOnChange menu -list"
If InternationalEnable = 1 Then
If CountryName = "Thailand" Then
Var show_eng_button_stage = "Invisible"
Var LanguageButtonEnable = "Enable"
EndIf
If CountryName = "HongKong" Then
Var show_eng_button_stage = "Invisible"
Var LanguageButtonEnable = "Invisible"
Var BtnLangToggleIndex = "Enable"
EndIf
Else
Var LanguageButtonEnable = "Invisible"
Var show_eng_button_stage = "Enable"
EndIf
If LanguageShow = "ENG" Then
Var showname_max_size = 58
Var warning_image_x = 220
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 132
EndIf
If LanguageShow = "THAI" Then
Var showname_max_size = 68
Var warning_image_x = 335
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
If LanguageShow = "MSC" Then
Var showname_max_size = 68
Var warning_image_x = 350
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
If LanguageShow = "MYANMAR" Then
Var showname_max_size = 68
Var warning_image_x = 300
Var warning_image_y = 1333
Var warning_text_x = 10
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_topping_frozen_fruit_select.lxml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
@ -196,7 +283,7 @@
<FilenamePress> show_btp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
<EventClick>
;
</EventClick>
</LangSwitch>
@ -205,17 +292,17 @@
DEBUGVAR LanguageShowByIndex
DEBUGVAR LanguageShow
If SelectDrinkType = 1 Then
Var showname = NameLang[IndexDrinktType][LanguageShowByIndex]
Var showdesc = DescLang[IndexDrinktType][LanguageShowByIndex]
Else
Var showname = aliasName[LanguageShowByIndex]
Var showdesc = aliasName[LanguageShowByIndex]
EndIf
BackslashNToEnter showname
BackslashNToEnter showdesc
CRLFToSpace showname
@ -233,16 +320,16 @@
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
<EventClick>
;Open PreviseXMLFileName2
DEBUGVAR OpenFromXML
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open OpenFromXML
</EventClick>
</Button>
@ -251,12 +338,16 @@
Else
Var MachineEvent = 1
DEBUGVAR LinkProductCodeAnotherMachine[0]
DEBUGVAR LinkProductCodeAnotherMachine[1]
DEBUGVAR LinkProductCodeAnotherMachine[2]
Function 2
Var MatchineSpiralStage = "-"
GenHashWithTimeStamp SpiralRef
SPIRAL_VERIFY LinkProductCodeAnotherMachine[0] SpiralRef
EndIf
@ -266,7 +357,7 @@
; same
<Image>
<X> 374 </X>
<Y> 382 </Y>
<Y> 752 </Y>
<Width> 331 </Width>
<Height> 436 </Height>
<Filename> PictureDrink </Filename>
@ -276,14 +367,14 @@
<Image>
<X> 374 </X>
<Y> 399 </Y>
<State> eval(
<State> eval(
If IsSmoRet = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
)
</State>
<Filename> "ROOT/taobin_project/image/topping2/blender_icon.png" </Filename>
</Image>
@ -291,66 +382,70 @@
; Text head
<Text>
<X> 0 </X>
<Y> 752 </Y>
<Y> 602 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 68 </Size>
<MaxSize> showname_max_size </MaxSize>
<Size> Auto </Size>
<MaxLine> 2 </MaxLine>
<Font> KanitMediumTTF </Font>
<Color> 0x513C2F </Color>
<Value> showname </Value>
</Text>
; same
<Text>
<X> 0 </X>
<Y> 836 </Y>
<Y> 1082 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 24 </Size>
<Font> KanitLightTTF </Font>
<Size> 68 </Size>
<Font> KanitMediumTTF </Font>
<Color> 0xEE8C62 </Color>
<Value> text_price_d3 </Value>
</Text>
; same
<Text>
<X> 25 </X>
<Y> 1232 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 32 </Size>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<Value> showdesc </Value>
</Text>
; warning time
<Image>
<Refresh> "Enable" </Refresh>
<X> warning_image_x </X>
<Y> warning_image_y </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/time.png" </Filename>
</Image>
<Text>
<Refresh> "Enable" </Refresh>
<X> warning_text_x </X>
<Y> warning_text_y </Y>
<Language>
<X> 0 </X>
<Y> 19 </Y>
<ID> 002290 </ID>
</Language>
</Text>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
; back
<Button>
<X> 44 </X>
<Y> 1785 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_cancel.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_cancel.png"</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Seeker = "next" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventClick>
<Language>
<X> 53 </X>
<Y> 16 </Y>
<Width> 120 </Width>
<Height> 42 </Height>
<ID> 000074 </ID>
</Language>
</Button>
@ -365,7 +460,7 @@
<FilenamePress> Var( DirImage + "/bp_add.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
<EventClick>
Var PriceDrink = PriceDrinkTmp
SAVELOG "USER press next ( topping ) - new"
@ -380,25 +475,25 @@
If StrawState = "Press" Then
Machine StrawOrder
Machine StrawOrder
Var LedLidBlink = "true"
EndIf
If LidState = "Press" Then
Machine LidOrder
Machine LidOrder
Var LedLidBlink = "true"
EndIf
Var StrawState = "Enable"
Var LidState = "Enable"
;
;
Var SelectDrink = UserSelectProductCode
; Set drink
; Set drink
Topping "Select" UserSelectProductCode
; Set option toppinng and pack
; Set option toppinng and pack
Topping "Select1-ID" topping1
Topping "Select2-ID" topping2
Topping "Select3-ID" topping3
@ -419,7 +514,7 @@
EndIf
EndIf
EndIf
Var CartUpdate = "true"
</EventClick>
</Button>
@ -431,30 +526,31 @@
;<Color> "0x00BDFF" </Color>
<Interval> 500 </Interval>
<Filename> Var( DirImage + "/new_multi.png" ) </Filename>
<EventClick>
<EventClick>
</EventClick>
</Button>
; next
<Button>
<X> 673 </X>
<Y> 1785 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_next.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_next.png" </FilenamePress>
<State> NextButtonState </State>
<X> 350 </X>
<Y> 1422 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_next2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_next2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
<EventClick>
;Var Seeker = "curr"
DEBUGVAR PriceDrinkTmp
;Var Seeker.PriceDrink = PriceDrinkTmp
Var PriceDrink = PriceDrinkTmp
SAVELOG "USER press next ( topping ) - new"
If SugarState1 = "PressForever" Then
@ -548,38 +644,38 @@
If StrawState = "Press" Then
Machine StrawOrder
Machine StrawOrder
Var LedLidBlink = "true"
EndIf
If LidState = "Press" Then
Machine LidOrder
Machine LidOrder
Var LedLidBlink = "true"
Var bg_lidProblem_ST = "Enable"
Var bg_lidProblem_ST = "Enable"
Else
Var bg_lidProblem_ST = "Invisible"
EndIf
If SelectDrinkType = 0 Then
Else
Var StrawState = "Enable"
Var LidState = "Enable"
EndIf
;
;
Var SelectDrink = UserSelectProductCode
Var Seeker.selected_a_drink = UserSelectProductCode
DEBUGVAR Seeker.selected_a_drink
; Set drink
; Set drink
If Seeker = "curr" Then
Topping "Select" UserSelectProductCode
; Set option toppinng and pack
; Set option toppinng and pack
Topping "Select1-ID" topping1
Topping "Select2-ID" topping2
Topping "Select3-ID" topping3
@ -593,7 +689,7 @@
Topping "__select" UserSelectProductCode
; Set option toppinng and pack
; Set option toppinng and pack
Topping "__select1-id" topping1
Topping "__select2-id" topping2
Topping "__select3-id" topping3
@ -611,8 +707,9 @@
EndIf
DEBUGVAR Seeker
DEBUGVAR Seeker.ExtendData
DEBUGVAR Seeker.ExtendData
Machine StrawOrder
Var Seeker.PictureDrink = PictureDrink
Var Seeker.showname = showname
@ -629,7 +726,7 @@
EndIf
GetLongTimeInMinute LastTimeClickOrder
If CART_COUNT = 0 Then
@ -637,8 +734,9 @@
Else
If SelectDrinkType = 1 Then
Var SmoothieToPayment = 1
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
EndIf
@ -646,7 +744,7 @@
Var high_light_drink_type = "Enable"
EndIf
Else
If CART1_STATUS = "EMPTY" Then
Cart "AddMenuID" 1
Else
@ -669,12 +767,17 @@
</EventClick>
<Language>
<X> 64 </X>
<Y> 19 </Y>
<ID> 000073 </ID>
</Language>
</Button>
<Text>
<X> 420 </X>
<Y> 1442 </Y>
<Width> 250 </Width>
<Height> 75 </Height>
<Language>
<ID> 002291 </ID>
</Language>
</Text>
@ -716,7 +819,7 @@
Var img_cold_dis = "/bt_cold_disable.png"
Var img_cold_dis2 = "/bt_cold_disable2.png"
EndIf
If img_smth_no_flag = 1 Then
SAVELOG "Smoothies change img. 1"
Var img_smth = "/bt_smoothie_no.png"
@ -751,12 +854,12 @@
DEBUGVAR menu_name_thai_cold
SAVELOG "FUNCTION2"
Var TOPPING_PRICE = 0
Var SelectDrinkType = 0
; Set default
If SelectCountDrinkType = 1 Then
If DefaultDrinkType = 1 Then
@ -777,7 +880,7 @@
Var normal_button_state = "PressForever"
Var SelectDrinkType = 1
EndIf
Var IndexDrinktType = 1
EndIf
If DefaultDrinkType = 3 Then
@ -808,7 +911,7 @@
Machine PreparCup
EndIf
If cold_button_state = "PressForever" Then
Var PriceDrinkNoTop = PriceD2
Var UserSelectProductCode = PD_CODE2
@ -829,7 +932,7 @@
Machine PreparCup
EndIf
If blend_button_state = "PressForever" Then
Var PriceDrinkNoTop = PriceD3
Var UserSelectProductCode = PD_CODE3
@ -857,7 +960,7 @@
BackslashNToEnter showdesc
CRLFToSpace showname
CRLFToSpace showdesc
DEBUGVAR PriceDrinkNoTop
DEBUGVAR PriceDiff
@ -873,18 +976,18 @@
Var TOPPING_PRICE = 0
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
Var showText7 = "Enable"
SAVELOG "Select premi normal shot"
Else
If showShotEnable = "Press" Then
If showShotEnable = "Press" Then
If blendedState = "Press" Then
Var PriceDrinkTmp = PriceDrinkNoTop
EndIf
@ -895,11 +998,11 @@
;Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
Var showText7 = "Enable"
SAVELOG "Select add normal shot"
@ -907,7 +1010,7 @@
If blendedState = "Disable" Then
Var blendedState = "Enable"
EndIf
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
@ -935,9 +1038,9 @@
Var topping6 = toppingID6index1
Var DisableUsingCode = "false"
EndIf
DEBUGVAR OatMilkEnable
DEBUGVAR MenuCodeName1
DEBUGVAR MenuCodeName1_State
@ -950,7 +1053,7 @@
EndIf
EndIf
EndIf
DEBUGVAR SelectDrinkType
@ -968,7 +1071,7 @@
SAVELOG PriceDrinkTmp
If RoadShow = "true" Then
Var PriceDrinkTmpShow = "Free"
DEBUGVAR SelectDrink2
@ -982,7 +1085,8 @@
Var Timeout = 0
Var NextButtonState = "Enable"
RefreshAll
</Function2>
@ -990,5 +1094,8 @@
;
<EventUnitTest1>
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
</EventUnitTest1>
</Page>

View file

@ -0,0 +1,5 @@
If TimeOutSmoothiesProcess > -1 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess
Else
Var TimeOutSmoothiesProcess = 120
EndIf

View file

@ -0,0 +1,52 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= Helper Icon ================================"
</EventOpen>
<EventOnShow>
;include="ROOT/taobin_project/inter/tha/xml/helper_show_and_refresh.lxml"
Var Timeout = 0
SetInstanceIgnoreTouch
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
Refresh
TimerReset
</EventTimeout>
; helper button
<Button>
<X> 920 </X>
<Y> 608 </Y>
<Filename> "ROOT/taobin_project/image/page_payment/helper.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var CurrHelpCenter = 1
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
</Popup>

View file

@ -1382,6 +1382,15 @@ Name=bubble tea,file=page_catalog_group_pro_buble_tea.skt
Name=FrozenFruit,file=page_catalog_group_frozen_fruit.skt,topping_xml_file=page_topping_frozen_fruit_select.lxml,parameter=show-blend-only
<<<<<<< HEAD
มะม่วงปั่น Mango Smoothie มะม่วงปั่น แช่แข็ง Frozen mango smoothies - - 12-00-07-0000 bn_frozen_mango.png - - - -
มะม่วงเต่าปั่น Mango Tao Pun มะม่วง Real Mango - - 12-06-03-0001 blended_mango_only.png
มะม่่วงลิ้นจี่เต่าปั่น Mango Lychee Tao Pun มะม่วง ลิ้นจี่ Real Mango Lychee - - 12-06-03-0002 blended_mango_lychee.png
มะม่วงสตรอเบอรีเต่าปั่น Mango Strawberry Tao Pun มะม่วง สตรอเบอรี Real Mango Strawberry - - 12-06-03-0003 blended_mango_strawberry.png
มะม่วงสละเต่าปั่น Mango Salak Tao Pun มะม่วง สละ Real Mango Salak - - 12-06-03-0004 blended_mango_sala.png
มะม่วงมัทฉะเต่าปั่น Mango Pure Matcha Tao Pun มะม่วง มัทฉะ Real Mango Matcha - - 12-06-03-0005 blended_mango_greentea.png
มะม่วงชาไต้หวันเต่าปั่น Mango Taiwanese Tea Tao Pun มะม่วง ชาไต้หวัน Real Mango TaiwaneseTea - - 12-06-03-0006 blended_mango_taiwanese_tea.png
=======
มะม่วงปั่น Mango Smoothie มะม่วงปั่น แช่แข็ง Frozen mango smoothies - - 12-00-07-0000 bn_frozen_mango.png - - - posi1 - - - -
มะม่วงเต่าปั่น Mango Tao Pun มะม่วง Real Mango - - 12-06-03-0001 blended_mango_only.png - - - posi1 - - - -
มะม่่วงลิ้นจี่เต่าปั่น Mango Lychee Tao Pun มะม่วง ลิ้นจี่ Real Mango Lychee - - 12-06-03-0002 blended_mango_lychee.png - - - posi1 - - - -
@ -1389,6 +1398,7 @@ Name=FrozenFruit,file=page_catalog_group_frozen_fruit.skt,topping_xml_file=page_
มะม่วงสละเต่าปั่น Mango Salak Tao Pun มะม่วง สละ Real Mango Salak - - 12-06-03-0004 blended_mango_sala.png - - - posi1 - - - -
มะม่วงมัทฉะเต่าปั่น Mango Pure Matcha Tao Pun มะม่วง มัทฉะ Real Mango Matcha - - 12-06-03-0005 blended_mango_greentea.png - - - posi1 - - - -
มะม่วงชาไต้หวันเต่าปั่น Mango Taiwanese Tea Tao Pun มะม่วง ชาไต้หวัน Real Mango TaiwaneseTea - - 12-06-03-0006 blended_mango_taiwanese_tea.png - - - posi1 - - - -
>>>>>>> 6467e5f893ec61fc1c783c5b4e790ea2d74d664c

Can't render this file because it has a wrong number of fields in line 3.

BIN
video/Mixer_proof3.mp4 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -8,6 +8,8 @@
Var ChildrenFree = 0
Var KBankCashlessMachine = 0
Var SmoothieToPayment = 0
Var OreoDueEnable = 0
Var OreoForFreeEnable = 0
@ -317,4 +319,4 @@ If BoxID = 176757 Then
Var SaveOrderNameAndPictureEnable = 1
EndIf
DEBUGVAR SystemDateDayOfWeek
DEBUGVAR SystemDateDayOfWeek

View file

@ -6,6 +6,8 @@
<Volume> SoundVolume </Volume>
<EventOpen>
RootLayoutVisible 3 "hide"
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/payext_setup.ev"
Var SendNotiPaySuccess = 2
@ -1138,7 +1140,6 @@
Else
Var SelectMenuBetweenBrewEnable1Blink = "Invisible"
EndIf
DEBUGVAR CountUpBrewing

View file

@ -32,6 +32,7 @@
Var credit_card_enable = ""
READ_FILE "/mnt/sdcard/credit_card_enable" credit_card_enable
Var BaseOnPageBoard = 1
Var eng_enable = "true"
Var thai_enable = "true"
@ -134,6 +135,8 @@
Var ShowButtonClick_WTC = "Invisible"
Var ShowButtonClickFull_WTC = "Invisible"
Var BtnLangToggleIndex = "Invisible"
;SAVELOG DisplayType
If DisplayType = "2" Then
@ -1312,7 +1315,39 @@
If EnableMultiInstanceFromBoxID = 1 Then
If CountryName = "Thailand" Then
; enable helper
Var EnableHelperShow = 0
;Var FromDrinkOk = 1
Var CurrHelpCenter = 0
If EnableHelperShow = 1 Then
; enable btn_change_langs
Var EnableBtnLangWithHelper = 1
Var LanguageButtonEnable = "Enable"
Var ButtonLanguageCurrentXPosition = 990
Var ButtonLanguageCurrentYPosition = 608
Var ButtonLanguageListXPosition = 970
Var ButtonLanguageListYPosition = 590
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RootLayoutVisible 3 "show"
If FromDrinkOk = 1 Then
Var TimeOutShowHelpCenter = 15
Var FromSmoothieProcess = "Invisible"
Var FromPaymentCash = "Invisible"
Var FromBrewingProcess = "Enable"
RootLayoutVisible 15 "show"
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
Else
RootLayoutVisible 15 "hide"
EndIf
Else
RootLayoutVisible 3 "hide"
EndIf
Var EnableMultiInstance = "true"
Var MyanmarLangEnable = "true"
Var InternationalShow = 0
@ -1326,6 +1361,18 @@
Var InternationalShow = 0
EndIf
If BoxID = 210699 Then
Var SpiralOnline = "true"
Var SpiralModeFrozenFruit = 1
Var InternationalShow = 1
EndIf
If BoxID = 105005 Then
Var SpiralOnline = "true"
Var SpiralModeFrozenFruit = 1
Var InternationalShow = 1
EndIf
; test payment
Var New_Payment = 1
@ -1455,7 +1502,17 @@
;DEBUGVAR LivenessControlVersion
;DEBUGVAR Not#CameraSettingStatus
RootLayoutVisible 3 "hide"
If EnableMultiInstanceFromBoxID = 1 Then
If CountryName = "Thailand" Then
If EnableHelperShow = 1 Then
RootLayoutVisible 3 "show"
Else
RootLayoutVisible 3 "hide"
EndIf
Else
RootLayoutVisible 3 "hide"
EndIf
EndIf
If SELLSTATUS = "DEACTIVE" Then
OpenInst 0 "/ROOT/xml/offline.xml"
@ -2060,6 +2117,9 @@ PRICE "Reset" "-"
DEBUGVAR InternationalEnable
DEBUGVAR CountryName
Var BaseOnPageBoard = 0
If InternationalEnable = 1 Then
If CountryName = "Thailand" Then
SAVELOG " Thailand Thailand Thailand Thailand Pooon Pooon Pooon Pooon Pooon"
@ -2221,11 +2281,41 @@ PRICE "Reset" "-"
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
EndIf
; for count helper show
If EnableHelperShow = 1 Then
If FromDrinkOk = 1 Then
If TimeOutShowHelpCenter > 0 Then
Var TimeOutShowHelpCenter = TimeOutShowHelpCenter - 1
EndIf
If TimeOutShowHelpCenter = 0 Then
Var FromDrinkOk = 0
If CurrHelpCenter = 1 Then
;do not thing
Else
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
EndIf
EndIf
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
<EventLanguageOnChange>
Var LanguageButtonEnable = "Enable"
Var ButtonLanguageCurrentXPosition = 990
Var ButtonLanguageCurrentYPosition = 608
Var ButtonLanguageListXPosition = 970
Var ButtonLanguageListYPosition = 590
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
<EventEnd>
SAVELOG "EVENT END"
@ -2297,6 +2387,8 @@ PRICE "Reset" "-"
<Volume> SoundVolume </Volume>
<EventClick>
Var BaseOnPageBoard = 0
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
If CocktailShow = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
@ -2344,6 +2436,7 @@ PRICE "Reset" "-"
<EventClick>
Var NextPage = "-"
Var BaseOnPageBoard = 0
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
@ -2403,6 +2496,7 @@ PRICE "Reset" "-"
SAVELOG "click ShowButtonClickFull"
Var NextPage = "-"
Var BaseOnPageBoard = 0
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
If SpiralOnline = "true" Then
If InternationalEnable = 1 Then

View file

@ -5,7 +5,7 @@
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
RootLayoutVisible 3 "hide"
If New_Payment = 1 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"

View file

@ -5,7 +5,8 @@
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
RootLayoutVisible 3 "hide"
Var waitAckPay = 0
Var ChangeFlag = 0

View file

@ -293,6 +293,9 @@
Var EnableDoorJamAlert = 0
; helper show in page_board
Var FromDrinkOk = 1
</EventOpen>
<Timeout> 500 </Timeout>
<EventTimeout>

View file

@ -436,7 +436,11 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Var TxRef1 = ""
CreateTxRef1 TxRef1
Else
@ -447,7 +451,11 @@
Var PaidPaymentFromNextStage = 1
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
@ -463,7 +471,11 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Var TxRef1 = ""
CreateTxRef1 TxRef1
Else
@ -474,7 +486,11 @@
Var PaidPaymentFromNextStage = 1
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
@ -1296,6 +1312,21 @@
Var X_CASH3 = 664 - 113
EndIf
; helper
Var FromSmoothieProcess = "Invisible"
Var FromPaymentCash = "Enable"
Var FromBrewingProcess = "Invisible"
If EnableHelperShow = 1 Then
Var Showhelper = "Enable"
Else
Var Showhelper = "Invisible"
EndIf
; langs
Var EnableBtnLangWithHelper = 0
</EventOpen>
<EventActionOk>
@ -1376,7 +1407,11 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
;Var TxRef1 = ""
;CreateTxRef1 TxRef1
EndIf
@ -1384,7 +1419,11 @@
Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif"
Var BrewingTextThai = "เตรียมแก้ว"
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
@ -1930,12 +1969,20 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
EndIf
Var Seeker.CreditCard = 1
Var Seeker.CreditCardRef = CreditCardRef
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
EndIf
@ -2178,8 +2225,12 @@
If TestLoopMakeDrink = 1 Then
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
@ -2210,7 +2261,11 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Var TxRef1 = ""
CreateTxRef1 TxRef1
Else
@ -2221,7 +2276,11 @@
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
Else
If CancelFlag = 0 Then
@ -2762,7 +2821,25 @@
EndIf
</EventVDCancle>
; helper button
<Button>
<X> 990 </X>
<Y> 430 </Y>
<State> Showhelper </State>
<Filename> "ROOT/taobin_project/image/page_payment/helper.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/xml/page_payment_cash.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
;RootLayoutVisible 15 "show"
</EventClick>
</Button>
<Image>
@ -2893,8 +2970,12 @@
Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif"
Var MachineStage = "make-drink"
Var BrewingTextThai = "เตรียมแก้ว"
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
;Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
EndIf
@ -3745,11 +3826,19 @@ eval(
If IgnoreNetCore = "true" Then
If Seeker = "curr" Then
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Else
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
</EventClick>
</Button>
@ -3766,9 +3855,12 @@ eval(
</Text>
<EventUnitTest1>
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
</EventUnitTest1>

View file

@ -220,7 +220,11 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Var TxRef1 = ""
CreateTxRef1 TxRef1
@ -232,7 +236,11 @@
Var DrinkPaid = SelectDrink
Var PaidPaymentFromNextStage = 1
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
EndIf
Var ReqAdddata22 = 0

View file

@ -0,0 +1,77 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 7 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml"
EndIf
TimerReset
Refresh
</EventTimeout>
<EventActionOk>
</EventActionOk>
;include="ROOT/taobin_project/inc/video.inc"
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/video/taobin_thank2.mp4" </Filename>
</Video>
<Image>
<X> 84 </X>
<Y> 1314 </Y>
<Width> 911 </Width>
<Height> 265 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bg_empty.png" </Filename>
</Image>
<Text>
<X> 0 </X>
<Y> 1344 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002433 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1430 </Y>
<Align> Center </Align>
<Language>
<ID> 002434 </ID>
</Language>
</Text>
;include="ROOT/taobin_project/inc/video.inc"
</Popup>

View file

@ -0,0 +1,76 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var ShowSwapVDO = "ROOT/taobin_project/spiral/video/sp01.mp4"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 3 Then
;include="ROOT/taobin_project/inc/return_condition.ev"
EndIf
TimerReset
Refresh
</EventTimeout>
<EventActionOk>
</EventActionOk>
<Image>
<X> 89 </X>
<Y> 700 </Y>
<Width> 902 </Width>
<Height> 902 </Height>
<Filename> "ROOT/taobin_project/spiral/image/page_spiral/spiral_fail.png" </Filename>
</Image>
<Image>
<X> 84 </X>
<Y> 1314 </Y>
<Width> 911 </Width>
<Height> 265 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bg_empty.png" </Filename>
</Image>
<Text>
<X> 0 </X>
<Y> 1344 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002430 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1430 </Y>
<Align> Center </Align>
<Language>
<ID> 002432 </ID>
</Language>
</Text>
;include="ROOT/taobin_project/inc/video.inc"
</Popup>

View file

@ -0,0 +1,76 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var ShowSwapVDO = "ROOT/taobin_project/spiral/video/sp01.mp4"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 3 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
TimerReset
Refresh
</EventTimeout>
<EventActionOk>
</EventActionOk>
<Image>
<X> 89 </X>
<Y> 700 </Y>
<Width> 902 </Width>
<Height> 902 </Height>
<Filename> "ROOT/taobin_project/spiral/image/page_spiral/spiral_fail.png" </Filename>
</Image>
<Image>
<X> 84 </X>
<Y> 1314 </Y>
<Width> 911 </Width>
<Height> 265 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bg_empty.png" </Filename>
</Image>
<Text>
<X> 0 </X>
<Y> 1344 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002430 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1430 </Y>
<Align> Center </Align>
<Language>
<ID> 002431 </ID>
</Language>
</Text>
;include="ROOT/taobin_project/inc/video.inc"
</Popup>

111
xml/page_spiral_sell.xml Normal file
View file

@ -0,0 +1,111 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var LastMakeSpiralResult = 0
Var ShowSwapVDO = "ROOT/taobin_project/spiral/video/sp01.mp4"
GenHashWithTimeStamp SpiralRef
Var Seeker.sprial_product_code = LinkProductCodeAnotherMachine[0]
DEBUGVAR Seeker.sprial_product_code
Var ServiceCredit = Seeker.sprial_product_code
SPIRAL_SELL ServiceCredit SpiralRef
Var TimeOutSmoothiesProcess = 120
Var Seeker.SmoothieToPayment = SmoothieToPayment
Var NextSmoothie = 0
DEBUGVAR Seeker.SmoothieToPayment
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
; test
;If Timeout > 10 Then
; Var LastMakeSpiralResult = 2
;EndIf
DEBUGVAR LastMakeSpiralResult
If LastMakeSpiralResult = 1 Then
Var SessionID4 = MachineSpiralID
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralVMName
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralSlotID
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + ServiceCredit
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + 1
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralRemaining
Var SpiralPayDetail="locker:S:0:"
Var SpiralPayDetail = SpiralPayDetail + SessionID4
DEBUGVAR SpiralPayDetail
Var Seeker.sprial_pay_detail = SpiralPayDetail
If Seeker = "next" Then
Var NextOrder = "true"
Var NextSmoothie = 1
Open "ROOT/taobin_project/xml/page_spiral_before_conti.xml"
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
EndIf
If LastMakeSpiralResult = 2 Then
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/spiral_pay_fail.ev"
Open "ROOT/taobin_project/xml/page_spiral_failed.xml"
EndIf
If Timeout > 120 Then
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/spiral_pay_fail.ev"
Open "ROOT/taobin_project/xml/page_spiral_failed.xml"
EndIf
TimerReset
Refresh
</EventTimeout>
<Video>
<X> 0 </X>
<Y> 700 </Y>
<Width> 1080</Width>
<Height> 840 </Height>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> ShowSwapVDO </Filename>
;<Filename> "ROOT/taobin_project/spiral/video/sp01.mp4" </Filename>
</Video>
<EventActionOk>
</EventActionOk>
;include="ROOT/taobin_project/inc/video.inc"
</Popup>

View file

@ -7,6 +7,9 @@
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
RootLayoutVisible 3 "hide"
Var CountDownThankyou = 3
Var CountDownBrewing = BrewTime
Var CountUpBrewing = 0

View file

@ -8,6 +8,9 @@
<EventOpen>
; This page Seeker must curr
; On open
Var CountDownThankyou = 4
Var CountDownBrewing = BrewTime
Var CountUpBrewing = 0
@ -49,14 +52,14 @@
EndIf
;inter-image
If LanguageShow = "MYANMAR" Then
If LanguageShow = "MYANMAR" Then
Var BottomText = PicturePath + "text_bottom_eng.png"
Var DirImage = "ROOT/taobin_project/image/page_thankyou_mmr"
EndIf
If LanguageShow = "MSC" Then
If LanguageShow = "MSC" Then
Var BottomText = PicturePath + "text_bottom_eng.png"
@ -116,16 +119,17 @@
Var DirImage = "ROOT/taobin_project/image/complete_en/"
EndIf
;inter-image
If LanguageShow = "MYANMAR" Then
Var DirImage = "ROOT/taobin_project/image/complete_mmr/"
Var DirImage2 = "ROOT/taobin_project/image/complete_mmr/"
EndIf
If LanguageShow = "MSC" Then
Var DirImage = "ROOT/taobin_project/inter/hkg/image/complete_msc/"
Var DirImage2 = "ROOT/taobin_project/inter/hkg/image/complete_msc/"
EndIf
If LanguageShow = "MTC" Then
Var DirImage = "ROOT/taobin_project/inter/hkg/image/complete_mtc/"
Var DirImage2 = "ROOT/taobin_project/inter/hkg/image/complete_mtc/"
EndIf
Var txtDrinkOKState = "Invisible"
@ -141,7 +145,13 @@
;include=ROOT/taobin_project/inc/remove_cup_event_open.inc
SAVELOG "Thank you conti version TCT6"
Var buttonRemoveCup = "Invisible"
SAVELOG "Thank you conti version TCT7"
SAVELOG "Support NextSmoothie"
DEBUGVAR NextSmoothie
DEBUGVAR Seeker.SmoothieToPayment
;PendingFlag InternationalEnable
;PendingFlag New_Payment
@ -177,7 +187,7 @@
SAVELOG "Make next order by take-cup with close-maintenance 2"
Var error_code_stop_now = 1221
If DoorCupPosition = "bottom" Then
@ -190,7 +200,7 @@
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
Open "ROOT/taobin_project/xml/page_cannotConti.xml "
EndIf
@ -201,29 +211,29 @@
SAVELOG "Make next order by take-cup with close-maintenance 3"
Var error_code_stop_now = CupErrorCodeForNextOrder
If DoorCupPosition = "bottom" Then
Else
Var error_code_stop_now = 1296
__CMD "error-code-1296" 0 "-" "-"
EndIf
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
Var LastMakeDrinkResult = "fail"
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
EndIf
; setvarint Timeout2 888
If Timeout2 > 890 Then
__CMD "cup-error-code" "-" "-" "-"
DEBUGVAR CupErrorCodeForNextOrder
EndIf
@ -243,7 +253,7 @@
__CMD "check-cup" Seeker.selected_a_drink "-" "-"
; old condition
; old condition
If HaveCup = "false" Then
If MachineStage = "show-menu" Then
@ -272,8 +282,8 @@
DEBUGVAR CountDownThankyou
; run test;
If CountDownThankyou = 0 Then
; obsolete
If CountDownThankyou = 99 Then
; reset all var
DEBUGVAR MachineStage
@ -288,6 +298,7 @@
If MachineStage = "show-menu" Then
If HaveCup = "false" Then
Var LastMakeDrinkResult = "-"
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
@ -335,18 +346,32 @@
Var MachineState_Result = 0
If MenuReadyForCup = "YES" Then
; smoothie next
If NextSmoothie = 1 Then
DEBUGVAR Seeker
DEBUGVAR Seeker.SmoothieToPayment
Var NextSmoothie = 0
If Seeker.SmoothieToPayment = 1 Then
Var TimeOutSmoothiesProcess = 120
Var Seeker.SmoothieToPayment = 0
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
EndIf
EndIf
Var LastMakeDrinkResult = "-"
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 Seeker.selected_a_drink SelectSugarID
If CountryName = "Thailand" Then
If New_Payment = 1 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"
If New_Payment = 1 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"
Else
Open "ROOT/taobin_project/xml/page_brewing3.xml"
Open "ROOT/taobin_project/xml/page_brewing3.xml"
EndIf
Else
@ -355,12 +380,12 @@
Open Brew3Inter
Else
;obsolete
If New_Payment = 1 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"
If New_Payment = 1 Then
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"
Else
Open "ROOT/taobin_project/xml/page_brewing3.xml"
Open "ROOT/taobin_project/xml/page_brewing3.xml"
EndIf
EndIf
EndIf
EndIf
EndIf
@ -382,6 +407,9 @@
;include=ROOT/taobin_project/inc/remove_cup_step.inc
If Timeout2 < 3 Then
Var buttonRemoveCup = "Invisible"
EndIf
If buttonRemoveCup = "Invisible" Then
If show_eng = "true" Then
@ -390,30 +418,30 @@
Var MachineErrorDetailAll = " กรุณานำแก้วออกก่อนครับ/คะ"
EndIf
;inter-text
If LanguageShow = "MYANMAR" Then
If LanguageShow = "MYANMAR" Then
Var MachineErrorDetailAll = " ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။"
EndIf
If LanguageShow = "MSC" Then
If LanguageShow = "MSC" Then
Var MachineErrorDetailAll = " 请拿杯子。"
EndIf
If LanguageShow = "MTC" Then
If LanguageShow = "MTC" Then
Var MachineErrorDetailAll = " 請拿杯子。"
EndIf
Else
Else
If CupChecking = "true" Then
If show_eng = "true" Then
Var MachineErrorDetailAll = " Please take a cup."
Else
Var MachineErrorDetailAll = " กรุณานำแก้วออกก่อนครับ/คะ"
EndIf
EndIf
;inter-text
If LanguageShow = "MYANMAR" Then
If LanguageShow = "MYANMAR" Then
Var MachineErrorDetailAll = " ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။"
EndIf
If LanguageShow = "MSC" Then
If LanguageShow = "MSC" Then
Var MachineErrorDetailAll = " 请拿杯子。"
EndIf
If LanguageShow = "MTC" Then
If LanguageShow = "MTC" Then
Var MachineErrorDetailAll = " 請拿杯子。"
EndIf
Else
@ -423,25 +451,28 @@
Var MachineErrorDetailAll = " กรุณากดปุ่ม แล้วนำแก้วออกก่อนครับ/คะ"
EndIf
;inter-text
If LanguageShow = "MYANMAR" Then
If LanguageShow = "MYANMAR" Then
Var MachineErrorDetailAll = " ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။"
EndIf
If LanguageShow = "MSC" Then
If LanguageShow = "MSC" Then
Var MachineErrorDetailAll = " 按按钮取杯子。"
EndIf
If LanguageShow = "MTC" Then
If LanguageShow = "MTC" Then
Var MachineErrorDetailAll = " 按按鈕取杯子。"
EndIf
EndIf
EndIf
If Timeout2 < 3 Then
Var MachineErrorDetailAll = "..."
EndIf
DEBUGVAR MenuReadyForCup
If MenuReadyForCup = "YES" Then
If DoorCupPosition = "bottom" Then
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + "1"
@ -454,9 +485,9 @@
DEBUGVAR CountDownForShowMenuNextOrderToBrew
DEBUGVAR Seeker.selected_a_drink
If CountDownForShowMenuNextOrderToBrew = 3 Then
EndIf
@ -475,7 +506,7 @@
Var buttonRemoveCup = "Invisible"
Else
EndIf

View file

@ -15,7 +15,7 @@ If Seeker.PayWithQR = 0 Then
Var PayO2 = Seeker.CoffeePinNumber
EndIf
EndIf
DEBUGVAR Seeker
DEBUGVAR TelephoneNumber
Var TelephoneNumberExt = TelephoneNumber
If TelephoneNumberExt = "" Then
@ -24,3 +24,10 @@ EndIf
__CMD "SetTelNum" TelephoneNumberExt Seeker.ORDER_ID Seeker.VendingTSID
Var payOrderChannel = "/XML|" + Seeker.OrderChanel
__CMD "SetPayType" Seeker.ORDER_ID payOrderChannel ""
DEBUGVAR Seeker.SmoothieToPayment
If Seeker.SmoothieToPayment = 1 Then
SAVELOG "[FROZEN-FRUIT] Set spiral pay detail"
__CMD "SprialPayDetail" Seeker.sprial_pay_detail "-" "-"
EndIf

View file

@ -0,0 +1,66 @@
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/addpoint.ev"
Var SelectDrink = Seeker.selected_a_drink
Var ExtendData = Seeker.ExtendData
Var ServiceAmount2 = Seeker.ServiceAmount2
Var SessionID2 = SelectSlot + ":"
Var SessionID2 = SessionID2 + ExtendData
Var CreditReference = Seeker.CreditReferenceTmp
Var VendingDiscount = Seeker.VendingDiscount
Var VendingCampaign = Seeker.VendingCampaign
Var TxReference = Seeker.TxRef1
Var VendingOrderID = Seeker.ORDER_ID
Var PayType = "newpay"
Var ServiceType = "coffee-payment"
Var ServiceCredit = SelectDrink
Var SuggestID = ""
Var PayDetail = "2/S:0/0/"
Var SessionID4 = MachineSpiralID
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralVMName
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralSlotID
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + ServiceCredit
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + 1
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralRemaining
Var PayDetail = PayDetail + "|locker:F:"
Var PayDetail = PayDetail + MachineSpiralErrorCode
Var PayDetail = PayDetail + ":"
Var PayDetail = PayDetail + SessionID4
Var PayDetail = PayDetail + "/XML|"
Var PayDetail = PayDetail + Seeker.OrderChanel
If Seeker.CodeChannel = 1 Then
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + ""
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + Seeker.VendingCode
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + SelectDrink
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + BoxID
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + "S"
Var SessionID2 = SessionID2 + "/"
Var SessionID2 = SessionID2 + Seeker.CodeNumber
Var SessionID2 = SessionID2 + "/"
Var PayDetail2 = Seeker.PayDetail2
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
Else
Var PayDetail2 = Seeker.PayDetail2
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
EndIf

View file

@ -19,6 +19,7 @@
EndIf
If CountryName = "Thailand" Then
Var BtnLangToggleIndex = "Invisible"
TRY topview2_script
EndIf

View file

@ -8,6 +8,12 @@
; On open
Machine AndroidTemperatureUpdateNow
DEBUGVAR CH9991_Status
DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status
DEBUGVAR GetFreeFromError
Var info_startX = 11
Var info_1Y = 250
Var info_2Y = 320