DO multi-lnag

This commit is contained in:
kong 2023-02-17 17:50:13 +07:00
parent 623002c863
commit 93a524c1a6
10 changed files with 559 additions and 179 deletions

View file

@ -292,6 +292,8 @@
Var showname = aliasName[LanguageShowByIndex]
Var showdesc = aliasName[LanguageShowByIndex]
BackslashNToEnter showname
BackslashNToEnter showdesc
</EventOpen>
<Timeout> 1000 </Timeout>
@ -469,11 +471,17 @@
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
CRLFToSpace showdesc
Var Timeout = 0
</EventLanguageOnChange>
@ -1203,6 +1211,15 @@
DEBUGVAR TOPPING2
Refresh
EndIf
If TOPPING2 = "add-show-1106" Then
Var ShotCoffeePremium = "Enable"
Var showShotEnable = "Invisible"
Var ExtraTopping = "Enable"
DEBUGVAR TOPPING2
Refresh
EndIf
If ShotCoffeePremium = "Enable" Then
Var toppingID2price2Conv !assigned StringFmt( toppingID2price2 , DisplayFormat, PreScaleConvertShow)
@ -2561,6 +2578,15 @@
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bg_top_shot2.png" </Filename>
</Image>
<Text>
<X> 120 </X>
<Y> 4 </Y>
<Language>
<ID> 000102 </ID>
</Language>
<Width> 800 </Width>
<Height> 65 </Height>
</Text>
<Button>
<X> 40 </X>
@ -2641,6 +2667,16 @@
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bg_top_shot2.png" </Filename>
</Image>
<Text>
<X> 120 </X>
<Y> 4 </Y>
<Language>
<ID> 000100 </ID>
</Language>
<Width> 800 </Width>
<Height> 65 </Height>
</Text>
;
<Button>
<X> 40 </X>
@ -3843,18 +3879,11 @@
<Text>
<X> 543 </X>
<Y> 920 </Y>
<State> high_light_drink_type </State>
<Font> KanitTTF </Font>
<Size> 36 </Size>
<Width> 1080 </Width>
<Color> 0xFF0000 </Color>
<Value> eval(
If show_eng = "true" Then
Var return = "Please choose drink type"
Else
Var return ="โปรดเลือกประเภทเครื่องดื่ม"
EndIf
)</Value>
<State> high_light_drink_type </State>
<Language>
<ID> 000075 </ID>
</Language>
</Text>
<Text>