THAI: Added Jemila sound

This commit is contained in:
Kenta420 2024-09-22 00:27:03 +07:00
parent bfbaac6752
commit e454479817
25 changed files with 3461 additions and 2887 deletions

View file

@ -7,13 +7,13 @@
return price_list[product_code_3]
else:
return '"-"'
def GetPrice(price_list, product_code):
if product_code in price_list:
return price_list[product_code]
else:
return '"-"'
def GetOriginalPrice_Old(original_price_list, product_code_1, product_code_2, product_code_3):
if product_code_1 in original_price_list:
return original_price_list[product_code_1]
@ -23,13 +23,13 @@
return original_price_list[product_code_3]
else:
return '"-"'
def GetOriginalPrice(original_price_list, product_code):
if product_code in original_price_list:
return original_price_list[product_code]
else:
return '"-"'
def GetTricker(tricker_list, product_code_1, product_code_2, product_code_3):
if product_code_1 in tricker_list:
return tricker_list[product_code_1]
@ -44,7 +44,7 @@
if "v2" in param:
print("Version 1 ignore ")
else:
else:
menu_white_color_catalog = False
menu_xml_var = ""
if current_file_name == "page_catalog_group_recommend.skt":
@ -53,12 +53,12 @@
else:
touch_less_gen = False
button_add_string = ""
if current_file_name == "page_catalog_group_recommend_double_pro.skt":
double_pro_gen = True
else:
double_pro_gen = False
if current_file_name == "page_catalog_group_recommend_triple_pro.skt":
triple_pro_gen = True
else:
@ -133,7 +133,7 @@
menu_white_color_catalog = True
else:
from_my_mint_promotion = False
if current_file_name == "page_catalog_group_pro_bad_valentine.skt":
from_bad_valentine = True
# menu_white_color_catalog = True
@ -242,7 +242,7 @@
else:
from_cocoa77 = False
cocoa77_fix_price = False
if current_file_name == "page_catalog_group_pro_passion_mint.skt":
passion_mint = True
passion_mint_fix_price = {
@ -272,6 +272,11 @@
else:
from_robinson_beauty = False
if current_file_name == "page_catalog_group_pro_jemila.skt":
from_jemila = True
else:
from_jemila = False
#print ("######################################################################################################")
idx_of_eng = 2
out_xml('<FrameScroll> \r\n')
@ -289,7 +294,7 @@
out_xml('<Column> 2 </Column>\r\n')
else:
out_xml('<Column> 4 </Column>\r\n')
out_xml('<Script>\r\n')
out_xml('<Script>\r\n')
if "all" in verbose:
print("current_file_name " + current_file_name)
@ -317,10 +322,10 @@
out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
out_xml('\tEndIf\r\n')
out_xml('</Script>\r\n')
pd_code_available = '##-##-##-####'
count = 0
count_test = 0
@ -345,19 +350,19 @@
out_xml('\t<Color> "0xeae6e1" </Color>\r\n')
out_xml('\t<QRColor> "0x513C2F" </Color>\r\n')
out_xml('\t<Height> 150 </Height>\r\n')
#out_xml('\t<State> TouchLessQrStg </State>\r\n')
#out_xml('\t<Service> "Herr" </Service>\r\n')
out_xml('\t<State> TouchLessQrStg </State>\r\n')
out_xml('\t<Service> testservice </Service>\r\n')
out_xml('\t</QRCode>\r\n')
out_xml('</Block>\r\n')
out_xml(';dummy_layout.inc\r\n')
if double_pro_gen == True or triple_pro_gen:
out_xml(';dummy_layout.inc\r\n')
def GenListMenu():
for spl in menu_new_list:
#product_code = s
@ -365,11 +370,11 @@
continue
if spl[0].startswith("TAG"):
out_xml( '\t;' + spl[0] + '\r\n')
out_xml( '\t;' + spl[0] + '\r\n')
continue
out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
menu_img = spl[7]
out_xml( '\t; '+ spl[4] + ' ' + spl[5] + ' ' + spl[6]+ ' \r\n')
out_xml( '<Block>\r\n')
@ -377,7 +382,7 @@
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
out_xml('\t<Width> 225 </Width>\r\n')
out_xml('\t<Height> 296 </Height>\r\n')
str_con = ""
str_con = ""
str_con_var = ""
if spl[4] != '-':
str_con += spl[4] + '.Button,'
@ -385,22 +390,22 @@
str_con += spl[5] + '.Button,'
if spl[6] != '-':
str_con += spl[6] + '.Button,'
if spl[4] != '-':
str_con_var += spl[4] + '-'
if spl[5] != '-':
str_con_var += spl[5] + '-'
if spl[6] != '-':
str_con_var += spl[6] + '-'
str_con_var = str_con_var.replace("-", "")
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
str_con += "Disable=Invisible,"
str_con += "$Sum" + str_con_var
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
pd_code_1 = spl[4]
pd_stage1 = '$' + spl[4] + '.Button'
if spl[4] == "-" or len(spl[4]) == 0 :
@ -412,22 +417,22 @@
if spl[5] == "-" or len(spl[5]) == 0:
pd_code_2 = pd_code_available
pd_stage2 = '"Disable2"'
pd_code_3 = spl[6]
pd_stage3 = '$' + spl[6] + '.Button'
if spl[6] == "-" or len(spl[6]) == 0:
pd_code_3 = pd_code_available
pd_stage3 = '"Disable2"'
out_xml( '\t<Button>\r\n')
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
if menu_img.startswith("#"):
out_xml( '\t<Filename> '+ menu_img[1:] + '_resting </Filename>\r\n')
out_xml( '\t<FilenamePress> '+ menu_img[1:] + '_press </FilenamePress>\r\n')
out_xml( '\t<FilenameDisable> '+ menu_img[1:] + '_disable </FilenameDisable>\r\n')
out_xml( '\t<FilenameDisable> '+ menu_img[1:] + '_disable </FilenameDisable>\r\n')
else:
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
out_xml( '\t<FilenamePress> "' + new_default_dir_press + '/'+ menu_img +'" </FilenamePress>\r\n')
@ -443,23 +448,23 @@
else:
out_xml( '\t<OverlayImage> xmlpro( '+spl[5]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
menu_xml_var = 'xmlpro( '+spl[5]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
out_xml( '\t<EventOnClick> \r\n')
# Default
# Default
out_xml( '\t\tVar NameDrink = "' + spl[1].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar NameDrinkTH = "' + spl[0].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[2].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar DrinkDescription = "' + spl[3].replace("\\n", " ") + '"\r\n')
if menu_img.startswith("#"):
out_xml( '\t\tVar PictureDrink = bn_oreo_vo_get1_full_path\r\n')
else:
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n')
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
if rerun_fix_price:
@ -499,11 +504,11 @@
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n')
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
@ -512,12 +517,12 @@
out_xml( '\t\tVar OverlayMenuFilter !assigned ' + menu_xml_var + '\r\n')
out_xml( '\t\tDEBUGVAR OverlayMenuFilter\r\n')
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n')
@ -566,16 +571,16 @@
out_xml( '\t\tVar menu_desc_eng_blender = $' + pd_code_3 + '.descriptionE\r\n')
out_xml( '\t\tVar menu_name_thai_blender = $' + pd_code_3 + '.Name\r\n')
out_xml( '\t\tVar menu_desc_thai_blender = $' + pd_code_3 + '.description\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n')
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n')
out_xml( '\t\tDEBUGVAR PD_STAGE_3\r\n')
out_xml( '\t\tVar SelectDrinkType = 0\r\n')
if fixed_price > 0:
out_xml( '\t\tVar From15THBPro = 1 \r\n')
@ -606,24 +611,27 @@
if from_nam_hom_coconut:
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
if passion_mint:
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
if from_robinson_beauty:
out_xml( '\t\tVar FromRobinsonBeautyPro = 1 \r\n')
out_xml( '\t\tVar FromRobinsonBeautyPro = 1 \r\n')
if from_jemila:
out_xml( '\t\tVar FromJemilaPro = 1 \r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\t'+ button_add_string +'\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t</EventOnClick>\r\n')
out_xml( '\t</Button>\r\n')
@ -631,7 +639,7 @@
if "all" in verbose:
print("len= " + str(len( spl) ) )
menu_color_font = None
@ -641,8 +649,8 @@
if menu_white_color_catalog == True:
menu_color_font = '0xFFFFFF'
desc_color_font = '0xFFFFFF'
if spl[1] != "None":
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
@ -667,7 +675,7 @@
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')
@ -691,7 +699,7 @@
out_xml( '\t<Value> "' + spl[3].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
if spl[4] != "TAOTIM":
if spl[4] != "TAOTIM":
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
@ -707,11 +715,11 @@
if len(spl[4]) == 0 :
shw = '"Invisible"'
ice_tab_hot_show = False
if spl[4] == "TAOTIM":
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')
@ -733,13 +741,13 @@
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')
@ -774,7 +782,7 @@
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_ice_show = True
shw = "$" + spl[5] + ".Button"
@ -789,7 +797,7 @@
if spl[4] == "TAOTIM":
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')
@ -849,7 +857,7 @@
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_blend_show = True
if spl[4] == "TAOTIM":
@ -902,7 +910,7 @@
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')
@ -940,7 +948,7 @@
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')
@ -958,7 +966,7 @@
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')
@ -970,7 +978,7 @@
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')
@ -1007,7 +1015,7 @@
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')
@ -1051,7 +1059,7 @@
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
out_xml('\t<Width> 225 </Width>\r\n')
out_xml('\t<Height> 296 </Height>\r\n')
str_con = ""
str_con = ""
str_con_var = ""
if spl[8] != '-':
str_con += spl[8] + '.Button,'
@ -1059,22 +1067,22 @@
str_con += spl[9] + '.Button,'
if spl[6] != '-':
str_con += spl[10] + '.Button,'
if spl[8] != '-':
str_con_var += spl[8] + '-'
if spl[9] != '-':
str_con_var += spl[9] + '-'
if spl[10] != '-':
str_con_var += spl[10] + '-'
str_con_var = str_con_var.replace("-", "")
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
str_con += "Disable=Invisible,"
str_con += "$Sum" + str_con_var
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
pd_code_1 = spl[8]
pd_stage1 = '$' + spl[8] + '.Button'
if spl[8] == "-" or len(spl[8]) == 0 :
@ -1086,16 +1094,16 @@
if spl[9] == "-" or len(spl[9]) == 0:
pd_code_2 = pd_code_available
pd_stage2 = '"Disable2"'
pd_code_3 = spl[10]
pd_stage3 = '$' + spl[10] + '.Button'
if spl[10] == "-" or len(spl[10]) == 0:
pd_code_3 = pd_code_available
pd_stage3 = '"Disable2"'
out_xml( '\t<Button>\r\n')
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
@ -1113,17 +1121,17 @@
else:
out_xml( '\t<OverlayImage> xmlpro( '+spl[9]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
menu_xml_var = 'xmlpro( '+spl[9]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
out_xml( '\t<EventOnClick> \r\n')
# Default
# Default
out_xml( '\t\tVar NameDrink = "' + spl[1].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar NameDrinkTH = "' + spl[0].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[2].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar DrinkDescription = "' + spl[3].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n')
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
if wednesday_melon_fix_price:
@ -1151,11 +1159,11 @@
out_xml( '\t\tVar PriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar PriceD3 = $' + spl[10] + '.Price\r\n')
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
@ -1164,13 +1172,13 @@
out_xml( '\t\tVar OverlayMenuFilter !assigned ' + menu_xml_var + '\r\n')
out_xml( '\t\tDEBUGVAR OverlayMenuFilter\r\n')
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n')
@ -1219,10 +1227,10 @@
out_xml( '\t\tVar menu_desc_eng_blender = $' + pd_code_3 + '.descriptionE\r\n')
out_xml( '\t\tVar menu_name_thai_blender = $' + pd_code_3 + '.Name\r\n')
out_xml( '\t\tVar menu_desc_thai_blender = $' + pd_code_3 + '.description\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n')
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n')
@ -1239,16 +1247,16 @@
if from_lipit_pro:
out_xml( '\t\tVar FromLipitPro = 1 \r\n')
if from_tea_time_pro:
out_xml( '\t\tVar FromTeaTimePro = 1 \r\n')
if wednesday_melon_fix_price:
out_xml( '\t\tVar FromWednesdayMelonPro = 1 \r\n')
if from_nam_hom_coconut:
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
@ -1256,22 +1264,25 @@
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
if from_robinson_beauty:
out_xml( '\t\tVar FromRobinsonBeautyPro = 1 \r\n')
out_xml( '\t\tVar FromRobinsonBeautyPro = 1 \r\n')
if from_jemila:
out_xml( '\t\tVar FromJemilaPro = 1 \r\n')
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')
out_xml( '\t\t\r\n')
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')
@ -1295,7 +1306,7 @@
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')
@ -1342,7 +1353,7 @@
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')
@ -1361,7 +1372,7 @@
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')
@ -1385,7 +1396,7 @@
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_ice_show = True
shw = "$" + spl[9] + ".Button"
@ -1444,9 +1455,9 @@
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[9])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_blend_show = True
shw = "$" + spl[10] + ".Button"
@ -1504,9 +1515,9 @@
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[10])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.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')
@ -1524,7 +1535,7 @@
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')
@ -1536,7 +1547,7 @@
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')
@ -1573,7 +1584,7 @@
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')
@ -1605,12 +1616,12 @@
out_xml( '</Block>\r\n')
if spl[0].startswith("TAG"):
out_xml( '\t;' + spl[0] + '\r\n')
out_xml( '\t;' + spl[0] + '\r\n')
count_test = count_test + 1
#if count_test > 8 :
# break
if multi_pro_gen:
for i in range(1, 5):
@ -1641,8 +1652,8 @@
else:
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
GenListMenu()
out_xml('</FrameScroll>\r\n')
@ -1661,4 +1672,4 @@
out_xml('</EventClick>\r\n')
out_xml('</Button>\r\n')