DO menu and brewing3.xml
This commit is contained in:
parent
592dcf6502
commit
3e12cbfb27
12 changed files with 395 additions and 282 deletions
Binary file not shown.
BIN
image/page_drink_disable_n2/bn_HOW TO PLAY.png
Normal file
BIN
image/page_drink_disable_n2/bn_HOW TO PLAY.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
image/page_drink_n/bn_HOW TO PLAY.png
Normal file
BIN
image/page_drink_n/bn_HOW TO PLAY.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
image/page_drink_press_n/bn_HOW TO PLAY.png
Normal file
BIN
image/page_drink_press_n/bn_HOW TO PLAY.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
|
|
@ -350,7 +350,7 @@ Name=Melon,file=page_catalog_group_pro_melon.skt
|
|||
เมโบซ่า MEBOZA น้ำเชื่อมเมล่อน น้ำเชื่อมบ๊วย โซดา และน้ำแข็ง melon, Ume , soda and ice - 12-99-02-0015 - bn_Melon_PLUM_Soda.png - - -
|
||||
ล่อนจูนาว LONJUNAO น้ำเชื่อมเมล่อน ผงมะนาว โซดา และน้ำแข็ง melon, Limenade, soda and ice - 12-99-02-0016 - bn_Melon_LIME_Soda.png - - -
|
||||
มิวกี้ล่อน MILKYLON น้ำเชื่อมเมล่อน นม ชามะลิ และน้ำแข็ง melon , milk, jasmint tea - 12-99-02-0018 - bn_Melon_Jasmine.png - - -
|
||||
|
||||
None None None None - 12-99-02-0015 - bn_HOW TO PLAY.png - - -
|
||||
|
||||
Name=Momday,file=page_catalog_momday.skt
|
||||
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 3.
|
|
|
@ -1,7 +1,3 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
|
|
@ -11,32 +7,28 @@
|
|||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.py
|
||||
#include=components/menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.py
|
||||
<?hurr
|
||||
#include=components/menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
<?hurr
|
||||
#include=components/menu_catalog_new.xml
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
<?hurr
|
||||
#generate_layout=menu_new_v2
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
</Popup>
|
||||
BIN
video/brewing_adv4.mp4
Executable file
BIN
video/brewing_adv4.mp4
Executable file
Binary file not shown.
|
|
@ -1,9 +1,27 @@
|
|||
GetFileSizeK "taobin_project/video/brewing_adv3.mp4" brewing_adv_size
|
||||
DEBUGVAR brewing_adv_size
|
||||
If brewing_adv_size = 9526548 Then
|
||||
If TamatianEnable = 1 Then
|
||||
If MayDayRunEnable = 1 Then
|
||||
GetFileSizeK "taobin_project/video/brewing_adv3.mp4" brewing_adv_size
|
||||
DEBUGVAR brewing_adv_size
|
||||
If brewing_adv_size = 9526548 Then
|
||||
Var adver_brewing_play_index = 1
|
||||
Var adver_brewing_count_down = 16
|
||||
|
||||
Var brew_vdo2 = "taobin_project/video/brewing_adv3.mp4"
|
||||
Var brew_txt2 = "taobin_project/video/brewing_txt_adv3.png"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; comment for change this file size
|
||||
|
||||
If TamatianEnable = 1 Then
|
||||
GetFileSizeK "taobin_project/video/brewing_adv4.mp4" brewing_adv_size
|
||||
DEBUGVAR brewing_adv_size
|
||||
If brewing_adv_size = 9693030 Then
|
||||
|
||||
Var adver_brewing_play_index = 1
|
||||
Var adver_brewing_count_down = 16
|
||||
|
||||
Var brew_vdo2 = "taobin_project/video/brewing_adv4.mp4"
|
||||
Var brew_txt2 = "taobin_project/video/brewing_txt_adv4.png"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ EndIf
|
|||
|
||||
|
||||
|
||||
|
||||
If BoxID = 200001 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
|
@ -91,7 +90,7 @@ EndIf
|
|||
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var TamatianEnable = 1
|
||||
Var TamatianEnable = 0
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
|
@ -99,7 +98,7 @@ EndIf
|
|||
If BoxID = 172053 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
Var MayDayRunEnable = 0
|
||||
EndIf
|
||||
|
||||
If BoxID = 172644 Then
|
||||
|
|
@ -130,6 +129,12 @@ If BoxID = 200580 Then
|
|||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
If SystemDateDayInt > 15 Then
|
||||
|
||||
Var MayDayRunEnable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 33170 Then
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@
|
|||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
|
||||
# Default
|
||||
out_xml( '\t\tVar NameDrink = "' + spl[1].replace("\\n", " ") + '"\r\n')
|
||||
out_xml( '\t\tVar NameDrinkTH = "' + spl[0].replace("\\n", " ") + '"\r\n')
|
||||
|
|
@ -251,7 +252,8 @@
|
|||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
|
||||
if spl[1] != "None":
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
||||
|
||||
|
|
@ -259,276 +261,276 @@
|
|||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[0].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
if spl[1] != "None":
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[0].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[2].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[2].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[1].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[3].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
ice_tab_hot_show = True
|
||||
shw = "$" + spl[4] + ".Button"
|
||||
if spl[4] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
if len(spl[4]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 50 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[1].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 50 </X>\r\n')
|
||||
out_xml( '\t<Y> 265 </Y>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> "' + spl[3].replace("\\n", "\n") + '" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
shw = "$" + spl[5] + ".Button"
|
||||
if spl[5] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
if len(spl[5]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 115 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 115 </X>\r\n')
|
||||
out_xml( '\t<Y> 265 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + spl[6] + ".Button"
|
||||
if spl[6] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
if len(spl[6]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 146 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<X> 180 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
else:
|
||||
out_xml( '\t<X> 183 </X>\r\n')
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
ice_tab_hot_show = True
|
||||
shw = "$" + spl[4] + ".Button"
|
||||
if spl[4] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
if len(spl[4]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 50 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if ice_tab_hot_show == True:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 50 </X>\r\n')
|
||||
out_xml( '\t<Y> 265 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
||||
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
else:
|
||||
shw = "$" + spl[5] + ".Button"
|
||||
if spl[5] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
if len(spl[5]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 115 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 115 </X>\r\n')
|
||||
out_xml( '\t<Y> 265 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + spl[6] + ".Button"
|
||||
if spl[6] == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
if len(spl[6]) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 146 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
if "inter" in param:
|
||||
out_xml( '\t<X> 180 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
else:
|
||||
out_xml( '\t<X> 183 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if ice_tab_hot_show == True:
|
||||
|
||||
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 49 </X>\r\n')
|
||||
out_xml( '\t<Y> 117 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
|
||||
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
|
||||
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
|
||||
out_xml( '\t\t)\r\n')
|
||||
if param == "old":
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err.png" </Filename>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
else:
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 84 </X>\r\n')
|
||||
out_xml( '\t<Y> 266 </Y>\r\n')
|
||||
out_xml( '\t<Size> 10 </Size>\r\n')
|
||||
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
|
||||
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
|
||||
out_xml( '\t<Value> ice_show_open </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 49 </X>\r\n')
|
||||
out_xml( '\t<Y> 117 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
|
||||
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
|
||||
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
|
||||
out_xml( '\t\t)\r\n')
|
||||
if param == "old":
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
else:
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 84 </X>\r\n')
|
||||
out_xml( '\t<Y> 266 </Y>\r\n')
|
||||
out_xml( '\t<Size> 10 </Size>\r\n')
|
||||
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
|
||||
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
|
||||
out_xml( '\t<Value> ice_show_open </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
if param == "old":
|
||||
|
|
|
|||
|
|
@ -1343,8 +1343,11 @@
|
|||
If adver_brewing_count_down > 0 Then
|
||||
Var adver_brewing_count_down = adver_brewing_count_down - 1
|
||||
|
||||
Var VideoPlayFile = "ROOT/taobin_project/video/brewing_adv3.mp4"
|
||||
|
||||
If brew_vdo2 = "" Then
|
||||
Var VideoPlayFile = "ROOT/taobin_project/video/brewing_adv3.mp4"
|
||||
Else
|
||||
Var brew_vdo2 = VideoPlayFile
|
||||
EndIf
|
||||
Var PictureFile = brew_txt2
|
||||
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@
|
|||
Var block_index_override = 0
|
||||
Var block_index_move = 0
|
||||
</Script>
|
||||
; menu_new_list 6
|
||||
; menu_new_list 7
|
||||
; ==================> Len = 11
|
||||
; - 12-99-02-0011 -
|
||||
<Block>
|
||||
|
|
@ -2019,6 +2019,99 @@
|
|||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; - - -
|
||||
; ==================> Len = 11
|
||||
; - 12-99-02-0015 -
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-99-02-0015.Button,$Sum1299020015) </State>
|
||||
<Button>
|
||||
<State> $Sum1299020015 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_HOW TO PLAY.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_HOW TO PLAY.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_HOW TO PLAY.png" </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOnClick>
|
||||
Var NameDrink = "None"
|
||||
Var NameDrinkTH = "None"
|
||||
Var DrinkDescriptionTH = "None"
|
||||
Var DrinkDescription = "None"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_HOW TO PLAY.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = $12-99-02-0015.Price
|
||||
Var PriceD3 = $-.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-99-02-0015"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-99-02-0015.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
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" "12-99-02-0015"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "-"
|
||||
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 = $12-99-02-0015.NameE
|
||||
Var menu_desc_eng_cold = $12-99-02-0015.descriptionE
|
||||
Var menu_name_thai_cold = $12-99-02-0015.Name
|
||||
Var menu_desc_thai_cold = $12-99-02-0015.description
|
||||
|
||||
Var menu_name_eng_blender = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
<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> $Sum1299020015 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; - - -
|
||||
</FrameScroll>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue