Merge branch 'master' of ssh://192.168.10.159:/1TBHDD/ikong/taobin_project

This commit is contained in:
pichet 2023-01-18 15:30:59 +07:00
commit 8aa3bee6fd
86 changed files with 61328 additions and 35205 deletions

View file

@ -7,9 +7,16 @@ if param == "old":
out_xml(f.read())
f.close()
else:
print("new layout catalog enable.")
f = open( directory_to_process + "/menu_catalog_new.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()
if "v2" in param:
print("new layout catalog ============================> inter.")
f = open( directory_to_process + "/menu_catalog_new.lxml", "r")
#print(f.read())
out_xml(f.read())
f.close()
else:
print("new layout catalog enable.")
f = open( directory_to_process + "/menu_catalog_new.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()

335
xml/menu_catalog_new.lxml Normal file
View file

@ -0,0 +1,335 @@
; notice enable heathy menu
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR ICE_PROCESS_STATUS
If ICE_PROCESS_STATUS = 2 Then
Var ice_tab_process_show = "Enable"
Var ice_show_open = ice_tab_text + ICE_PROCESS_TXT
Else
Var ice_tab_process_show = "Invisible"
EndIf
If NextPage = "-" Then
Else
If CupOnArm = "true" Then
If Timeout > 9 Then
SAVELOG "COA9"
Open NextPage
EndIf
Else
If Timeout > 30 Then
SAVELOG "COA30"
Open NextPage
EndIf
EndIf
EndIf
If Timeout > 60 Then
SAVELOG "Timeout"
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
If BrewCommand = "RefreshAll" Then
Var BrewCommand = "-"
Open CurrentXMLFileName2
EndIf
If Seeker = "curr" Then
If DoorCupPosition = "bottom" Then
; It normal
Var EmergencyStop = "false"
Else
Var EmergencyStop = "true"
;Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf
If IgnoreNetCore = "true" Then
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
<EventLanguageChange>
Refresh
</EventLanguageChange>
; under line
<Image>
<X> 0 </X>
<Y> 494 </Y>
<Filename> "ROOT/taobin_project/image/page3/tab_line_bottom.png" </Filename>
</Image>
; under line
<Image>
<X> 0 </X>
<Y> 358 </Y>
<Filename> "ROOT/taobin_project/image/page3/bg1.png" </Filename>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 381 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventClick>
</Button>
<Button>
<X> 1000 </X>
<Y> 381 </Y>
<Filename> show_btn </Filename>
<FilenamePress> show_btp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
If show_eng = "true" Then
Var show_eng = "false"
Var text_unavailable = "หมด###size=32"
Else
Var show_eng = "true"
Var text_unavailable = "UNAVAILABLE###size=16"
EndIf
Open CurrentXMLFileName2
</EventClick>
</Button>
;
<ListView1>
<Width> 1080 </Width>
<Height> "auto" </Height>
<X> 0 </X>
<Y> 395 </Y>
<Row2>
<State>"Enable"</State>
<Width> 896 </Width>
<Height> 102 </Height>
<Button>
<Layout> "linear" </Layout>
<State> Menu1Selected </State>
<Filename> Var( DirImageAlter + "/bn_recommend2.png" )</Filename>
<FilenamePress> Var( DirImageAlter + "/bp_recommend2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG "Click rec"
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu2Selected </State>
<Filename> Var( DirImageAlter + "/bn_coffee2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_coffee2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu3Selected </State>
<Filename> Var( DirImageAlter + "/bn_tea2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_tea2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu4Selected </State>
<Filename> Var( DirImageAlter + "/bn_cho_ca2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_cho_ca2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu7Selected </State>
<Filename> Var( DirImageAlter + "/bn_protein2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_protein2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu11Selected </State>
<Filename> Var( DirImageAlter + "/bn_appfast2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_appfast2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu21Selected </State>
<Filename> Var( DirImageAlter + "/bn_forkid2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_forkid2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu22Selected </State>
<Filename> Var( DirImageAlter + "/bn_health.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_health.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_health.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu8Selected </State>
<Filename> Var( DirImageAlter + "/bn_cocktail.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu6Selected </State>
<Filename> Var( DirImageAlter + "/bn_sodada2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_sodada2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> MenuVSelected2 </State>
<Filename> Var( DirImageAlter + "/bn_vending2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_vending2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/spiral/xml/page_catalog_vending_machine.xml"
</EventClick>
</Button>
</Row2>
</ListView1>
<EventWebApp>
DEBUGVAR web_ready
If web_ready = "true" Then
If web_ref = QRCODE99x Then
Var web_readyOK = web_ready
Var web_telnumOK = web_telnum
Var web_app_prepar = "true"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
EndIf
Else
EndIf
</EventWebApp>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -146,7 +146,7 @@
Var CocktailShow = "false"
Var RoadShow = "false"
EndIf
Var TermTemOnline = "false"
Var TaobinOnline = "false"

View file

@ -293,6 +293,13 @@
Var EnableSelectMenuBetweenBrew = "Invisible"
EndIf
If NeedUpgrade = "true" Then
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
Var EnableSelectMenuBetweenBrew = "Invisible"
EndIf
DEBUGVAR NeedUpgrade
Var CreditCardVoid = 0

View file

@ -251,6 +251,9 @@
<Color> "0xeae6e1" </Color>
</Image>
<EventLanguageChange>
Refresh
</EventLanguageChange>
; back
@ -310,7 +313,7 @@
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
; eng
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.lxml"
</EventClick>
<Language>
@ -332,7 +335,7 @@
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.lxml"
</EventClick>
<Language>
@ -354,7 +357,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_tea.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
</EventClick>
<Language>
@ -375,7 +379,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_milk.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
</EventClick>
<Language>
@ -398,7 +403,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
</EventClick>
<Language>
@ -420,7 +426,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
</EventClick>
<Language>
@ -442,7 +449,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_other.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
</EventClick>
<Language>
<ID> 000009 </ID>
@ -467,7 +475,8 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_whey.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
</EventClick>
<Language>
@ -491,7 +500,7 @@
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_health.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_health.lxml"
</EventClick>
<Language>

View file

@ -1,111 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('best_seller_1')
product_code.append('12-01-01-0003')
product_code.append('12-01-01-0004')
product_code.append('12-01-02-0003')
product_code.append('12-03-02-0002')
product_code.append('12-03-02-0004')
product_code.append('12-02-02-0002')
product_code.append('12-02-02-0004')
product_code.append('12-02-02-0001')
product_code.append('12-02-02-0007')
product_code.append('12-02-02-0008')
product_code.append('12-05-02-0007')
product_code.append('12-05-02-0021')
product_code.append('12-05-02-0013')
product_code.append('12-05-02-0012')
product_code.append('12-05-02-0009')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
If show_eng = "true" Then
Var showthaiText = "Invisible"
Var showengText = "Enable"
Var DirImage = "ROOT/taobin_project/image/page3_en"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Else
Var showengText = "Invisible"
Var showthaiText = "Enable"
Var DirImage = "ROOT/taobin_project/image/page3"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
EndIf
Var Menu1Selected = "PressForever"
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
Var showCart = "Invisible"
If MultiPayEnable = "true" Then
If CART_COUNT = 1 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
EndIf
If CART_COUNT = 2 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
EndIf
If CART_COUNT = 3 Then
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
EndIf
EndIf
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,106 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('best_seller_1')
product_code.append('best_seller_2')
product_code.append('best_seller_3')
product_code.append('best_seller_4')
product_code.append('best_seller_5')
product_code.append('best_seller_6')
product_code.append('best_seller_7')
product_code.append('best_seller_8')
product_code.append('best_seller_9')
product_code.append('best_seller_10')
product_code.append('best_seller_11')
product_code.append('best_seller_12')
product_code.append('best_seller_13')
product_code.append('best_seller_14')
product_code.append('best_seller_15')
product_code.append('best_seller_16')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
If SpiralOnline = "true" Then
Var Menu1Selected2 = "PressForever"
Else
; coffee show
Var Menu1Selected = "PressForever"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
Var showCart = "Invisible"
If MultiPayEnable = "true" Then
If CART_COUNT = 1 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
EndIf
If CART_COUNT = 2 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
EndIf
If CART_COUNT = 3 Then
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
EndIf
EndIf
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
<Button>
<X> 780 </X>
<Y> 500 </Y>
<State> buttonRemoveCup </State>
;<Color> "0x00BDFF" </Color>
<Interval> 500 </Interval>
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
</EventClick>
</Button>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,75 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-04-02-1018')
product_code.append('12-04-02-1019')
product_code.append('12-04-02-1020')
product_code.append('12-04-02-1021')
product_code.append('12-04-02-1022')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
If SpiralOnline = "true" Then
If AppFastEnable = "true" Then
Var Menu11Selected2 = "PressForever"
Var Menu7Selected2 = "Invisible"
Else
Var Menu11Selected2 = "Invisible"
Var Menu7Selected2 = "PressForever"
EndIf
Else
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "PressForever"
EndIf
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,130 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-01-01-0001')
# Bean 3 esp
product_code.append('12-01-01-0013')
product_code.append('12-01-01-0020')
product_code.append('12-01-01-0022')
product_code.append('12-01-01-0026')
product_code.append('12-01-01-0024')
product_code.append('12-01-01-0028')
product_code.append('12-01-01-0033')
# Normal esp
product_code.append('12-11-01-0001')
product_code.append('12-01-01-0003')
# Bean 3 hot ameri
product_code.append('12-01-01-0014')
product_code.append('12-01-01-0019')
product_code.append('12-01-01-0021')
product_code.append('12-01-01-0025')
product_code.append('12-01-01-0023')
product_code.append('12-01-01-0027')
product_code.append('12-01-01-0032')
# End
product_code.append('12-01-01-0004')
product_code.append('12-01-01-0005')
product_code.append('12-01-01-0006')
product_code.append('12-01-01-0007')
product_code.append('12-01-01-0008')
product_code.append('12-01-01-0031')
product_code.append('12-01-01-0009')
product_code.append('12-01-01-0010')
product_code.append('12-01-01-0011')
product_code.append('12-01-01-0012')
product_code.append('12-01-01-0017')
# Bean 3 Dirty
product_code.append('12-01-02-0018')
product_code.append('12-01-02-0020')
product_code.append('12-01-02-0022')
product_code.append('12-01-02-0026')
product_code.append('12-01-02-0024')
product_code.append('12-01-02-0028')
product_code.append('12-01-02-0033')
# End
product_code.append('12-11-02-0001')
product_code.append('12-01-02-0001')
# Bean 3 Ice ameri
product_code.append('12-01-02-0011')
product_code.append('12-01-02-0019')
product_code.append('12-01-02-0021')
product_code.append('12-01-02-0025')
product_code.append('12-01-02-0023')
product_code.append('12-01-02-0027')
product_code.append('12-01-02-0032')
# End
product_code.append('12-01-02-0002')
product_code.append('12-11-02-0002')
product_code.append('12-01-02-0003')
product_code.append('12-01-02-0004')
product_code.append('12-01-02-0005')
product_code.append('12-01-02-0031')
product_code.append('12-01-02-0007')
product_code.append('12-01-02-0008')
product_code.append('12-01-02-0009')
product_code.append('12-01-02-0017')
#product_code.append('11-01-02-0009')
product_code.append('12-01-02-0006')
#product_code.append('')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
If SpiralOnline = "true" Then
Var Menu2Selected2 = "PressForever"
Else
; coffee show
Var Menu2Selected = "PressForever"
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,307 +0,0 @@
<?hurr
default_dir = 'ROOT/taobin_project/image/page_drink/'
default_dir2 = 'ROOT/taobin_project/image/page_drink_select/'
default_dir_press = 'ROOT/taobin_project/image/page_drink_press/'
default_dir_disable = 'ROOT/taobin_project/image/page_drink_disable/'
menu_count = 6
x1 = 44
x2 = 301
x3 = 558
x4 = 815
ystep = 899 - 571
y1 = 54
y2 = y1 + ystep*1
y3 = y1 + ystep*2
y4 = y1 + ystep*3
y5 = y1 + ystep*4
y6 = y1 + ystep*5
x_button = [
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4
]
y_button = [
y1,
y1,
y1,
y1,
y2,
y2,
y2,
y2,
y3,
y3,
y3,
y3,
y4,
y4,
y4,
y4,
y5,
y5,
y5,
y5,
y6,
y6,
y6,
y6
]
bt_pic = []
#bt_pic.append('b#_diy.png')
bt_pic.append('b#_hot_espresso.png')
bt_pic.append('b#_hot_double_espresso.png')
bt_pic.append('b#_hot_latte.png')
bt_pic.append('b#_hot_america_no.png')
bt_pic.append('b#_hot_mocha.png')
bt_pic.append('b#_hot_caramel_macchiato.png')
bt_pic.append('b#_hot_cappuccino.png')
bt_pic.append('b#_iced_epsresso.png')
bt_pic.append('b#_iced_thai_black_coffee.png')
bt_pic.append('b#_iced_lattle.png')
bt_pic.append('b#_iced_america_no.png')
bt_pic.append('b#_iced_epsresso.png')
bt_pic.append('b#_iced_thai_black_coffee.png')
bt_pic.append('b#_iced_lattle.png')
bt_pic.append('b#_iced_america_no.png')
bt_pic.append('b#_iced_mocha.png')
bt_pic.append('b#_iced_caramel_macchiato.png')
bt_pic.append('b#_iced_cappuccino.png')
#bt_pic.append('b#.png')
product_code = []
#product_code.append('##-##-##-####')
product_code.append('11-99-01-0010')
product_code.append('11-99-01-0001')
product_code.append('11-99-01-0002')
product_code.append('11-99-01-0004')
product_code.append('11-99-01-0007')
product_code.append('11-99-01-0017')
product_code.append('11-99-01-0003')
product_code.append('11-99-02-0006')
product_code.append('11-99-02-0024')
product_code.append('11-99-02-0001')
product_code.append('11-99-02-0003')
product_code.append('11-99-02-0006')
product_code.append('11-99-02-0024')
product_code.append('11-99-02-0001')
product_code.append('11-99-02-0003')
product_code.append('11-99-02-0007')
product_code.append('11-99-02-0030')
product_code.append('11-99-02-0002')
#product_code.append('')
menu_count = len( bt_pic)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<Sound> "ROOT/sounds/selectDrink.wav" </Sound>
<EventOpen>
; On open
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
TimerReset
</EventTimeout>
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
</Image>
; under line
<Image>
<X> 0 </X>
<Y> 517 </Y>
<Filename> "ROOT/taobin_project/image/page3/tab_line_bottom.png" </Filename>
</Image>
; under line
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> "ROOT/taobin_project/image/page3/bg1.png" </Filename>
</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_catalog.xml"
</EventClick>
</Button>
<Button>
<X> 990 </X>
<Y> 438 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_eng_lang.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_eng_lang.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
</EventClick>
</Button>
;bn_bestseller
<Button>
<X> 92 </X>
<Y> 418 </Y>
<Filename> "ROOT/taobin_project/image/page3/bn_bestseller.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_bestseller.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink1.xml"
</EventClick>
</Button>
<Button>
<X> 243 </X>
<Y> 418 </Y>
<State> "PressForever" </State>
<Filename> "ROOT/taobin_project/image/page3/bn_coffee.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_coffee.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink2.xml"
</EventClick>
</Button>
<Button>
<X> 397 </X>
<Y> 418 </Y>
<Filename> "ROOT/taobin_project/image/page3/bn_tea.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_tea.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
</EventClick>
</Button>
<Button>
<X> 545 </X>
<Y> 418 </Y>
<Filename> "ROOT/taobin_project/image/page3/bn_cho_ca.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_cho_ca.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
</EventClick>
</Button>
<Button>
<X> 696 </X>
<Y> 418 </Y>
<Filename> "ROOT/taobin_project/image/page3/bn_fruit.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_fruit.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
</EventClick>
</Button>
<Button>
<X> 847 </X>
<Y> 418 </Y>
<Filename> "ROOT/taobin_project/image/page3/bn_sodada.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page3/bp_sodada.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
</EventClick>
</Button>
<?hurr
#include=menu_gen_alter.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,114 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-02-01-0001')
product_code.append('12-02-01-0002')
product_code.append('12-02-01-0024')
product_code.append('12-02-01-0020')
product_code.append('12-02-01-0003')
product_code.append('12-02-01-0025')
product_code.append('12-02-01-0004')
product_code.append('12-02-01-0026')
#product_code.append('12-02-01-0005') #HOT BLACK TEA
product_code.append('12-02-01-0006')
product_code.append('12-02-01-0021')
product_code.append('12-02-01-0007')
product_code.append('12-02-01-0008')
product_code.append('12-02-01-0019')
product_code.append('12-02-01-0009')
product_code.append('12-02-01-0022')
product_code.append('12-02-01-0010')
product_code.append('12-02-01-0011')
product_code.append('12-02-01-0027')
product_code.append('12-02-01-0012')
product_code.append('12-02-01-0028')
product_code.append('12-02-01-0017')
product_code.append('12-02-01-0031')
product_code.append('12-02-01-0032')
product_code.append('12-02-02-0020')
product_code.append('12-02-02-0001')
product_code.append('12-02-02-0002')
product_code.append('12-02-02-0003')
product_code.append('12-02-02-0025')
product_code.append('12-02-02-0004')
product_code.append('12-02-02-0026')
#12-02-02-0024
product_code.append('12-02-02-0005')
product_code.append('12-02-02-0024')
product_code.append('12-02-02-0006')
product_code.append('12-02-02-0007')
product_code.append('12-02-02-0008')
product_code.append('12-02-02-0019')
product_code.append('12-02-02-0009')
product_code.append('12-02-02-0022')
product_code.append('12-02-02-0010')
product_code.append('12-02-02-0011')
product_code.append('12-02-02-0027')
product_code.append('12-02-02-0012')
product_code.append('12-02-02-0028')
product_code.append('12-05-02-0027')
product_code.append('12-02-02-0031')
product_code.append('12-02-02-0032')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
; tea
If SpiralOnline = "true" Then
Var Menu3Selected2 = "PressForever"
Else
Var Menu3Selected = "PressForever"
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,71 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-03-01-0001')
product_code.append('12-03-01-0002')
product_code.append('12-03-01-0003')
product_code.append('12-03-01-0004')
product_code.append('12-03-01-0005')
product_code.append('12-03-02-0001')
product_code.append('12-03-02-0002')
product_code.append('12-03-02-0003')
product_code.append('12-03-02-0004')
product_code.append('12-03-02-0006')
product_code.append('12-03-03-0011')
product_code.append('12-03-03-0010')
product_code.append('12-03-02-0005')
#product_code.append('12-03-02-0002')
product_code.append('12-03-02-0007')
product_code.append('12-03-03-0009')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
; cocoa
If SpiralOnline = "true" Then
Var Menu4Selected2 = "PressForever"
Else
Var Menu4Selected = "PressForever"
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,53 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
# fruite
product_code = []
product_code.append('12-05-01-0001')
product_code.append('12-05-02-0001')
product_code.append('12-05-02-0002')
product_code.append('12-05-02-0003')
product_code.append('12-05-02-0004')
product_code.append('12-05-02-0005')
product_code.append('12-05-02-0040')
product_code.append('12-05-02-0006')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,107 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-05-02-0007')
product_code.append('12-05-02-0019')
product_code.append('12-05-02-0020')
product_code.append('12-05-02-0021')
product_code.append('12-05-02-0035')
product_code.append('12-05-02-0010')
product_code.append('12-05-02-0011')
product_code.append('12-05-02-0033')
product_code.append('12-05-02-0028')
product_code.append('12-05-02-0012')
product_code.append('12-05-02-0041')
product_code.append('12-05-02-0013')
product_code.append('12-05-02-0031')
product_code.append('12-05-02-0008')
product_code.append('12-05-02-0009')
product_code.append('12-05-02-0024')
product_code.append('12-05-02-0038')
product_code.append('12-05-02-0029') # LIMENADE group
product_code.append('12-05-02-0025')
product_code.append('12-05-02-0039')
product_code.append('12-05-02-0014')
product_code.append('12-05-02-0015')
product_code.append('12-05-01-0001')
product_code.append('12-05-02-0001')
product_code.append('12-05-02-0034')
product_code.append('12-05-02-0004')
product_code.append('12-05-02-0032')
product_code.append('12-05-02-0005')
product_code.append('12-05-02-0040')
product_code.append('12-05-02-0006')
product_code.append('12-05-02-0026')
product_code.append('12-05-02-0030')
product_code.append('12-05-02-0002')
product_code.append('12-05-02-0003')
product_code.append('12-06-01-0001')
product_code.append('12-05-02-0016')
product_code.append('12-05-02-0017')
product_code.append('12-05-02-0018')
product_code.append('12-05-01-0002')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
; soda and other
If SpiralOnline = "true" Then
Var Menu6Selected2 = "PressForever"
Else
Var Menu6Selected = "PressForever"
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,84 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('12-04-02-0001')
product_code.append('12-04-02-0016')
product_code.append('12-04-02-0002')
product_code.append('12-04-02-0003')
product_code.append('12-04-02-0013')
product_code.append('12-04-02-0004')
product_code.append('12-04-02-0005')
product_code.append('12-04-02-0006')
product_code.append('12-04-02-0007')
product_code.append('12-04-02-0008')
product_code.append('12-04-02-0009')
product_code.append('12-04-02-0010')
product_code.append('12-04-02-0011')
product_code.append('12-04-02-0014')
product_code.append('12-04-02-0017')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
; protein
If SpiralOnline = "true" Then
If AppFastEnable = "true" Then
Var Menu11Selected2 = "PressForever"
Var Menu7Selected2 = "Invisible"
Else
Var Menu11Selected2 = "Invisible"
Var Menu7Selected2 = "PressForever"
EndIf
Else
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "PressForever"
EndIf
EndIf
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,66 +0,0 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('11-99-05-0001')
product_code.append('11-99-05-0002')
product_code.append('11-99-05-0003')
product_code.append('11-99-05-0004')
product_code.append('11-99-05-0005')
product_code.append('11-99-05-0006')
product_code.append('11-99-05-0007')
product_code.append('11-99-05-0008')
product_code.append('11-99-05-0009')
product_code.append('11-99-05-0010')
product_code.append('11-99-05-0012')
product_code.append('11-99-05-0013')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
; fuck!
Var Menu8Selected = "PressForever"
Var Timeout = 0
</EventOpen>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -47,9 +47,14 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -37,9 +37,14 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -37,10 +37,15 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -47,6 +47,11 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

File diff suppressed because it is too large Load diff

View file

@ -36,8 +36,9 @@
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

View file

@ -505,7 +505,6 @@
<FrameScroll>
<X> 10 </X>
<Y> 497 </Y>

File diff suppressed because it is too large Load diff

View file

@ -34,9 +34,14 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -514,7 +514,7 @@
Var block_index_override = 0
Var block_index_move = 0
</Script>
; menu_new_list 15
; menu_new_list 16
; ==================> Len = 16
; 12-03-01-0005 12-03-02-0005 12-03-03-0005
<Block>
@ -3795,7 +3795,7 @@ VOLCANO" </Value>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Cocoa Yuzu"
Var NameDrink = "COCOA YUZU"
Var NameDrinkTH = "โกโก้ยูซุ"
Var DrinkDescriptionTH = "โกโก้ และยูซุ"
Var DrinkDescription = "Cocoa and Yuzu syrup"
@ -3888,7 +3888,7 @@ VOLCANO" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "Cocoa Yuzu" </Value>
<Value> "COCOA YUZU" </Value>
</Text>
<Text>
<X> 16 </X>
@ -4029,6 +4029,258 @@ VOLCANO" </Value>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16
; - - 12-03-03-0026
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0026.Button,$Sum1203030026) </State>
<Button>
<State> $Sum1203030026 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_PinkOreo_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_PinkOreo_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_PinkOreo_smoothie.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Pink milk Oreo Vocalno"
Var NameDrinkTH = "นมชมพูปั่น โอริโอ้ภูเขาไฟ"
Var DrinkDescriptionTH = "น้ำแดงกลิ่นสละ นม น้ำตาล Oreo"
Var DrinkDescription = "Salak Syrup, Milk, Sugar Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_PinkOreo_smoothie.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0026.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0026"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0026.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-03-03-0026"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0026.NameE
Var menu_desc_eng_blender = $12-03-03-0026.descriptionE
Var menu_name_thai_blender = $12-03-03-0026.Name
Var menu_desc_thai_blender = $12-03-03-0026.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> "นมชมพูปั่น
โอริโอ้ภูเขาไฟ" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "น้ำแดงกลิ่นสละ นม น้ำตาล
Oreo" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "Pink milk
Oreo Vocalno" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Salak Syrup, Milk,
Sugar Oreo" </Value>
</Text>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
</Image>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> "Invisible" </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> "Invisible" </State>
</Image>
<Text>
<X> 115 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-0026.Button </State>
</Image>
<Text>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-0026.Button </State>
<Value> StringFmt( $12-03-03-0026.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
Var ice_tab_process_show = "Invisible"
Else
Var ice_tab_process_show = "Invisible"
EndIf
Var return = ice_tab_process_show
)
</State>
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
</Image>
<Image>
<X> 49 </X>
<Y> 117 </Y>
<State>
eval(
If $Sum1203030026 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0026.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag2_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag3_is_disable = "true" Then
Var return = "Enable"
EndIf
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
</Image>
<Text>
<X> 84 </X>
<Y> 266 </Y>
<Size> 10 </Size>
<Font> OpunMediumTTF </Font>
<Color> 0xDE794E </Color>
<State> ice_tab_process_show </State>
<Value> ice_show_open </Value>
</Text>
<Text>
<X> 48 </X>
<Y> 116 </Y>
<Size> 32 </Size>
<Width>128</Width>
<Height>64</Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1203030026 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,10 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

File diff suppressed because it is too large Load diff

View file

@ -41,6 +41,9 @@
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

View file

@ -510,6 +510,7 @@
<FrameScroll>
<Max> 16 </Max>
<X> 10 </X>
@ -1064,15 +1065,15 @@ PLANT PROTEIN" </Value>
</Block>
; - - -
; ==================> Len = 16
; - - 12-03-03-1006
; - - 12-03-03-0026
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-1006.Button,Disable=Invisible,$Sum1203031006) </State>
<State> Flag( 12-03-03-0026.Button,Disable=Invisible,$Sum1203030026) </State>
<Button>
<State> $Sum1203031006 </State>
<State> $Sum1203030026 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_PinkOreo_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_PinkOreo_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_PinkOreo_smoothie.png" </FilenameDisable>
@ -1087,13 +1088,13 @@ PLANT PROTEIN" </Value>
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-1006.Price
Var PriceD3 = $12-03-03-0026.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-1006"
Var PD_CODE3 = "12-03-03-0026"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-1006.Button
Var PD_STAGE_3 = $12-03-03-0026.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
@ -1114,7 +1115,7 @@ PLANT PROTEIN" </Value>
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-03-03-1006"
Topping "Load" "12-03-03-0026"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
@ -1127,10 +1128,10 @@ PLANT PROTEIN" </Value>
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-1006.NameE
Var menu_desc_eng_blender = $12-03-03-1006.descriptionE
Var menu_name_thai_blender = $12-03-03-1006.Name
Var menu_desc_thai_blender = $12-03-03-1006.description
Var menu_name_eng_blender = $12-03-03-0026.NameE
Var menu_desc_eng_blender = $12-03-03-0026.descriptionE
Var menu_name_thai_blender = $12-03-03-0026.Name
Var menu_desc_thai_blender = $12-03-03-0026.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
@ -1234,7 +1235,7 @@ Sugar Oreo" </Value>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-1006.Button </State>
<State> $12-03-03-0026.Button </State>
</Image>
<Text>
<X> 180 </X>
@ -1244,8 +1245,8 @@ Sugar Oreo" </Value>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-1006.Button </State>
<Value> StringFmt( $12-03-03-1006.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<State> $12-03-03-0026.Button </State>
<Value> StringFmt( $12-03-03-0026.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -1270,10 +1271,10 @@ Sugar Oreo" </Value>
<Y> 117 </Y>
<State>
eval(
If $Sum1203031006 = "Disable" Then
If $Sum1203030026 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-1006.TAG tag3_is_disable
STRCONTAIN "ERR" $12-03-03-0026.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
@ -1309,7 +1310,7 @@ Sugar Oreo" </Value>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1203031006 </State>
<State> $Sum1203030026 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,13 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

File diff suppressed because it is too large Load diff

View file

@ -42,6 +42,11 @@
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>

View file

@ -100,6 +100,8 @@
Var alphaState = "Invisible"
Var alphaState2 = "Invisible"
Var FlagalphaState2 = 0
Var alphaState2t = alphaState2
Var alphaState3 = "Invisible"
@ -303,6 +305,7 @@
Var RemainAmountStr = "Change " + Canout
Var RemainAmountStr = RemainAmountStr + "###size=90"
Else
Var FlagalphaState2 = 1
Var RemainAmountStr = "ทอน " + Canout
EndIf
EndIf
@ -434,6 +437,7 @@
If web_payment = "CASH" Then
Var alphaState2 = "Enable"
Var alphaState2t = alphaState2
EndIf
If web_payment = "QR" Then
@ -753,7 +757,7 @@
EndIf
;Open "ROOT/taobin_project/xml/page_page_camera.xml"
DEBUGVAR MenuCautionImageStage0
</EventOpen>
@ -1626,6 +1630,7 @@
Var RemainAmountStr = "Change " + Canout
Var RemainAmountStr = RemainAmountStr + "###size=90"
Else
Var FlagalphaState2 = 1
Var RemainAmountStr = "ทอน " + Canout
EndIf
EndIf
@ -1647,6 +1652,10 @@
;Var RemainAmount = 0
Var showRemaining = charOfBaht + RemainAmountStr
Var alphaState2 = "Enable"
Var alphaState2t = alphaState2
If FlagalphaState2 = 1 Then
Var alphaState2t = "Invisible"
EndIf
EndIf
@ -1811,6 +1820,7 @@
If EnoughChange = "yes" Then
Var alphaState2 = "Enable"
Var alphaState2t = alphaState2
If RoadShow = "true" Then
Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif"
@ -2534,7 +2544,7 @@
<Button>
<X> 438 </X>
<Y> 1345 </Y>
<State> alphaState2 </State>
<State> alphaState2t </State>
<Filename> Var( DirImage + "/bn_cancel.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
@ -2563,6 +2573,7 @@
EndIf
Var alphaState2 = "Invisible"
Var alphaState2t = alphaState2
Refresh

View file

@ -28,24 +28,9 @@
DEBUGVAR SelectDrink
DEBUGVAR PictureDrink
DEBUGVAR new_layout
If new_layout = "true" Then
Else
If SelectDrinkLen = 0 Then
SAVELOG "SelectDrinkLen=0"
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
If PriceDrink = 0 Then
SAVELOG "PriceDrink=0"
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
EndIf
Var SaveProductCodeSelect = SelectDrink
Var UserSelectProductCode = SelectDrink
Var SaveProductCodeSelect = "-"
Var UserSelectProductCode = "-"
Var showText4 = "Invisible"
Var showText7 = "Invisible"
@ -618,32 +603,7 @@
Var h_block_of_sugar = 210
;STRCONTAIN "Smoothie" SubMenuName11 HaveSmoothie
STRCONTAIN "Smoothie" MenuCodeName HaveSmoothie
If show_select_type = "Invisible" Then
If HaveSmoothie = "true" Then
Var blendedState = "Enable"
Var blendedStateShow = "Enable"
Var PriceDiff = SubMenuPrice1 - PriceDrinkNoTop
DEBUGVAR IsSmoRet
If IsSmoRet = "true" Then
Var blendedState = "ForceSet"
Var blendedStateTxt = "Enable"
Topping "LoadSubMenu" SubMenuProductCode1
Function 1
Else
Var blendedStateTxt = "Invisible"
EndIf
EndIf
Else
Var blendedStateShow = "Invisible"
EndIf
If IgnoreLidStraw = "true" Then
Var IgnoreLidStraw = "false"
Var ShowLidStraw = "Invisible"
@ -1561,95 +1521,6 @@
</Block>
;<Block>
;<Width> 986 </Width>
;<Height> 160 </Height>
;<MarginTop> 20 </MarginTop>
;<State> blendedStateShow </State>
;<Image>
;<Filename> Var( DirImage + "/bg_blended.png" )</Filename>
;</Image>
;
;<Button>
;<X> 40 </X>
;<Y> 72 </Y>
;<State> blendedState </State>
;<Mode> "No" </Mode>
;<Animation>
; <Style> "shake-text" </Style>
; <OnEvent> "OnValueChange" </OnEvent>
;</Animation>
;<Filename> Var( DirImage + "/bn_blended.png" ) </Filename>
;<FilenamePress> Var( DirImage + "/bp_blended.png" ) </FilenamePress>
;<FilenameDisable> Var( DirImage + "/bd_blended.png" ) </FilenameDisable>
;<FilenameForce> Var( DirImage + "/bp_blended.png" ) </FilenameForce>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
;
; SAVELOG "Press Smoothies"
;
; If blendedState = "Press" Then
; Var blendedState = "Enable"
; Else
; Var blendedState = "Press"
; EndIf
;
; Function 1
;
; Refresh
;</EventClick>
;</Button>
;
;<Button>
;<X> 896 </X>
;<Y> 79 </Y>
;<State> blendedState </State>
;<Mode> "No" </Mode>
;<Animation>
; <Style> "shake-text" </Style>
; <OnEvent> "OnValueChange" </OnEvent>
;</Animation>
;<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
;<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
;<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
;<FilenameForce> Var( DirImage + "/cb_force_checked.png" ) </FilenameForce>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
;
; SAVELOG "Press Smoothies"
;
; If blendedState = "Press" Then
; Var blendedState = "Enable"
; Else
; Var blendedState = "Press"
; EndIf
;
; Function 1
;
; Refresh
;
;</EventClick>
;</Button>
;
;<Image>
;<State> showText7 </State>
;<X> 602 </X>
;<Y> 64 </Y>
;<Filename> Var( DirImage + "/text7.png" ) </Filename>
;</Image>
;
;<Image>
;<State> blendedStateTxt </State>
;<X> 602 </X>
;<Y> 64 </Y>
;<Filename> Var( DirImage + "/text5.png" ) </Filename>
;</Image>
;
;</Block>
;
;
;
;
@ -3220,12 +3091,6 @@
;Var Seeker = "curr"
If new_layout = "true" Then
; Name , Descript
EndIf
DEBUGVAR PriceDrinkTmp
@ -3323,7 +3188,6 @@
DEBUGVAR LidState
DEBUGVAR StrawState
DEBUGVAR UserSelectProductCode
; DEBUGVAR HAVE_UV_DOOR_LID obsolete.
If StrawState = "Press" Then
@ -3347,13 +3211,8 @@
EndIf
;
If RoadShow = "true" Then
Var SelectDrink = UserSelectProductCode
Else
Var SelectDrink = UserSelectProductCode
EndIf
Var SelectDrink = UserSelectProductCode
Var Seeker.selected_a_drink = UserSelectProductCode
DEBUGVAR Seeker.selected_a_drink
@ -3408,9 +3267,13 @@
GetLongTimeInMinute LastTimeClickOrder
If CART_COUNT = 0 Then
If SelectDrinkType = 1 Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
If UserSelectProductCode = "-" Then
Else
If SelectDrinkType = 1 Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
EndIf
If SelectDrinkType = 0 Then
@ -3443,102 +3306,6 @@
</Button>
<Function1>
SAVELOG "FUNCTION1"
Var TOPPING_PRICE = 0
DEBUGVAR PriceDrinkNoTop
DEBUGVAR PriceDiff
DEBUGVAR showShotEnable
DEBUGVAR blendedState
If blendedState = "ForceSet" Then
Var TOPPING_PRICE = PriceDiff
Var UserSelectProductCode = SubMenuProductCode1
If showShotEnable = "Invisible" Then
Else
Var showShotEnable = "Disable"
EndIf
Var showText4 = "Enable"
Else
If blendedState = "Press" Then
Var TOPPING_PRICE = PriceDiff
Var UserSelectProductCode = SubMenuProductCode1
If showShotEnable = "Invisible" Then
Else
Var showShotEnable = "Disable"
EndIf
Var showText4 = "Enable"
Else
Var UserSelectProductCode = SaveProductCodeSelect
If showShotEnable = "Disable" Then
Var showShotEnable = "Enable"
EndIf
Var showText4 = "Invisible"
EndIf
EndIf
If RoadShow = "true" Then
Var PriceDrinkTmp = "Free"
Var SaveSelectDrinkRoadShow = UserSelectProductCode
EndIf
DEBUGVAR UserSelectProductCode
If showShotEnable = "Press" Then
If blendedState = "Press" Then
Var PriceDrinkTmp = PriceDrinkNoTop
EndIf
Var blendedState = "Disable"
Var TOPPING_PRICE = 0
;Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
Var showText7 = "Enable"
SAVELOG "Select add normal shot"
Else
If blendedState = "Disable" Then
Var blendedState = "Enable"
EndIf
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Var DisableUsingCode = "false"
SAVELOG "Deselect add normal shot"
Var showText7 = "Invisible"
EndIf
DEBUGVAR showShotEnable
DEBUGVAR blendedState
Var PriceDrinkTmp = PriceDrinkNoTop + TOPPING_PRICE
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Var Timeout = 0
</Function1>
<Function2>

35
xml/test_qr.xml Normal file
View file

@ -0,0 +1,35 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> 0xFFFFFF </Background>
<EventOpen>
; On open
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 15 Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<QRCode>
<X> 445 </X>
<Y> 958 </Y>
<Width> 200 </Width>
<Height> 200 </Height>
<State> "Enable" </State>
<Service>"Herr"</Service>
</QRCode>
</Page>

View file

@ -565,7 +565,7 @@
<Y> info_10Y </Y>
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
<EventClick>
Open "ROOT/taobin_project/xml/test_qr.xml"
</EventClick>
</Image>