Do thai / eng

This commit is contained in:
kong 2020-10-28 16:32:20 +07:00
parent 7777314616
commit d4224415aa
21 changed files with 1089 additions and 377 deletions

View file

@ -35,6 +35,23 @@
Var topping1 = "1"
Var BugFlag = 0
If show_eng = "true" Then
;Var pageImage = "ROOT/taobin_project/image/page2_en/page2"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Var showname = NameDrink
Var showdesc = DrinkDescription
Else
;Var pageImage = "ROOT/taobin_project/image/page2"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
</EventOpen>
<Timeout> 30000 </Timeout>
<EventTimeout>
@ -42,6 +59,41 @@
</EventTimeout>
<Button>
<X> 990 </X>
<Y> 438 </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"
Else
Var show_eng = "true"
EndIf
If show_eng = "true" Then
;Var pageImage = "ROOT/taobin_project/image/page2_en/page2"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Var showname = NameDrink
Var showdesc = DrinkDescription
Else
;Var pageImage = "ROOT/taobin_project/image/page2"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
RefreshAll
</EventClick>
</Button>
<Image>
<X> 0 </X>
<Y> 0 </Y>
@ -64,22 +116,7 @@
</Button>
<EventMachine>
;Open "ROOT/xml/page_topping_sugar_only.xml"
;SAVELOG TOPPING1
;SAVELOG TOPPING2
;If TOPPING1 = "Powder Sugar" Then
; If TOPPING2 = "Hot water 3 step" Then
; If SubMenuProductCode1 = "-" Then
; Open "ROOT/xml/page_topping_hot_menu.xml"
; Else
; Open "ROOT/xml/page_topping_hot_menu_coffee.xml"
; EndIf
; Else
; Open "ROOT/xml/page_topping_sugar_only.xml"
; EndIf
;EndIf
;Open "ROOT/xml/page_page3_alter.xml"
SAVELOG TOPPING1
SAVELOG MenuCodeName
@ -141,7 +178,7 @@
<Size> 72 </Size>
<Font> KanitMediumTTF </Font>
<Color> 0x513C2F </Color>
<Value> NameDrink </Value>
<Value> showname </Value>
</Text>
<Text>
@ -152,7 +189,7 @@
<Size> 24 </Size>
<Font> KanitLightTTF </Font>
<Color> 0x6F5F51 </Color>
<Value> DrinkDescription </Value>
<Value> showdesc </Value>
</Text>