SGP: disable all blend menus, update remove cup button
This commit is contained in:
parent
db68244735
commit
21dbd367e6
14 changed files with 150999 additions and 143915 deletions
|
|
@ -885,3 +885,9 @@ PEPSI Max BANANA 52-05-02-0077 1 14 56 23 13 24 120 14:00 23
|
|||
PEPSI Max YUZU 52-05-02-0076 1 14 53 23 13 24 120 4:00 23
|
||||
PEPSI MINT 52-05-02-0068 1 14 59 12 23 24 120 15:00 23
|
||||
Almost Dirty 52-21-02-0071 1 2 3 4 5 6 7 24 66 6:06 32
|
||||
ICED SANTA GINGER 12-03-02-0081 1 7 22 23 24 49 10:01 23
|
||||
ICED SANTA GINGER 12-23-02-0081 1 7 22 23 24 49 10:01 23
|
||||
CHOCO SNOWFLAKE SMOOTHIE 12-03-03-0088 1 15 7 22 40 41 24 49 10:01 23
|
||||
REINDEER PEPPERMINT SMOOTHIE 12-03-03-0089 1 59 7 19 41 24 49 10:01 23
|
||||
ICED CHRISTMAS CAFE LATTE 12-01-02-0084 1 6 7 12 22 23 24 49 10:01 23
|
||||
ICED CHRISTMAS CAFE LATTE 12-21-02-0084 1 6 7 12 22 23 24 49 10:01 23
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 40.
|
|
|
@ -22,6 +22,8 @@
|
|||
Var ice_tab_process_show = "Invisible"
|
||||
EndIf
|
||||
|
||||
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
|
||||
|
||||
|
||||
If NextPage = "-" Then
|
||||
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@
|
|||
return
|
||||
# print("get", expected_key, tryGetFromMap(map, expected_key))
|
||||
map[expected_key] += value_to_set
|
||||
|
||||
|
||||
def adjustPosition(value: str, modifiers):
|
||||
result = modifiers(int(value))
|
||||
return result
|
||||
|
||||
|
||||
def removePartOfText(value: str, part: str, repl = None):
|
||||
if repl != None:
|
||||
return value.replace(part, repl)
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
"key": key,
|
||||
"append": appendValueInMap
|
||||
}
|
||||
|
||||
|
||||
def cloneTextExport(key: str | list, mods=None, remove=None, replace=None, block_output=False, block_append=False):
|
||||
return {
|
||||
"source": season_pass_menu_big_btn_ui,
|
||||
|
|
@ -52,9 +52,9 @@
|
|||
|
||||
|
||||
def GenMenuProductCodeBlock(spl, str_hot_product_code, str_cold_product_code, str_blend_product_code):
|
||||
|
||||
|
||||
gen_ss = "set-" in spl[idx_img][8]
|
||||
|
||||
|
||||
if (str_hot_product_code.startswith('52-01') or str_cold_product_code.startswith('52-01') or str_blend_product_code.startswith('52-01')) and gen_season_pass and current_file_name == "page_catalog_group_recommend_multi_pro.skt":
|
||||
return
|
||||
|
||||
|
|
@ -63,46 +63,46 @@
|
|||
"product_code": f"{str_hot_product_code}.{str_cold_product_code}.{str_blend_product_code}",
|
||||
"point": "init",
|
||||
"from_ss": gen_ss
|
||||
})
|
||||
})
|
||||
menu_img = spl[ idx_img][1]
|
||||
out_xml( '\t; '+ str_hot_product_code + ' ' + str_cold_product_code + ' ' + str_blend_product_code+ ' \r\n')
|
||||
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
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 = ""
|
||||
#print("#########################################################################################################################")
|
||||
#print( str( spl))
|
||||
#print("#########################################################################################################################")
|
||||
if str_hot_product_code != '-':
|
||||
str_con += str_hot_product_code + '.Button,'
|
||||
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con += str_cold_product_code + '.Button,'
|
||||
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con += str_blend_product_code + '.Button,'
|
||||
|
||||
|
||||
if str_hot_product_code != '-':
|
||||
str_con_var += str_hot_product_code + '-'
|
||||
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con_var += str_cold_product_code + '-'
|
||||
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con_var += str_blend_product_code + '-'
|
||||
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True or (multi_pro_gen and gen_season_pass):
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
|
||||
|
||||
|
||||
pd_code_1 = str_hot_product_code
|
||||
pd_stage1 = '$' + str_hot_product_code + '.Button'
|
||||
|
|
@ -115,16 +115,16 @@
|
|||
if str_cold_product_code == "-" or len(str_cold_product_code) == 0:
|
||||
pd_code_2 = pd_code_available
|
||||
pd_stage2 = '"Disable2"'
|
||||
|
||||
|
||||
pd_code_3 = str_blend_product_code
|
||||
pd_stage3 = '$' + str_blend_product_code + '.Button'
|
||||
if str_blend_product_code == "-" or len(str_blend_product_code) == 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')
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
is_sm = True
|
||||
if pd_code_1.startswith('52-01') or pd_code_2.startswith('52-01') or pd_code_3.startswith('52-01'):
|
||||
is_v1 = True
|
||||
|
||||
|
||||
if int(current_set_season_pass) not in season_pass_menu.keys():
|
||||
season_pass_menu[int(current_set_season_pass)] = []
|
||||
print("Add season: ", season_pass_menu)
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
# season_pass_menu[int(current_set_season_pass)].append(spl)
|
||||
# if "#" not in pd_code_1 and (pd_code_1+f".{spl[ idx_name][1]}") not in season_pass_menu[int(current_set_season_pass)]:
|
||||
# season_pass_menu[int(current_set_season_pass)].append(pd_code_1+f".{spl[ idx_name][1]}")
|
||||
|
||||
|
||||
# if "#" not in pd_code_2 and (pd_code_2+f".{spl[ idx_name][1]}") not in season_pass_menu[int(current_set_season_pass)]:
|
||||
# season_pass_menu[int(current_set_season_pass)].append(pd_code_2+f".{spl[ idx_name][1]}")
|
||||
|
||||
|
|
@ -181,13 +181,13 @@
|
|||
season_pass_menu_script[key] = ""
|
||||
season_pass_menu_big_btn_ui[key] = ""
|
||||
season_pass_menu_big_btn_ui[key + ".overlay"] = ""
|
||||
|
||||
|
||||
|
||||
|
||||
else:
|
||||
season_n = spl[idx_img][8].split('-')[1]
|
||||
is_sm = False
|
||||
is_v1 = False
|
||||
|
||||
|
||||
if "sm" in spl[idx_img][8]:
|
||||
is_sm = True
|
||||
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
# season_pass_menu[int(season_n)].append(spl)
|
||||
# if "#" not in pd_code_1 and (pd_code_1+f".{spl[ idx_name][1]}") not in season_pass_menu[int(season_n)]:
|
||||
# season_pass_menu[int(season_n)].append(pd_code_1+f".{spl[ idx_name][1]}")
|
||||
|
||||
|
||||
# if "#" not in pd_code_2 and (pd_code_2+f".{spl[ idx_name][1]}") not in season_pass_menu[int(season_n)]:
|
||||
# season_pass_menu[int(season_n)].append(pd_code_2+f".{spl[ idx_name][1]}")
|
||||
|
||||
|
|
@ -253,10 +253,10 @@
|
|||
|
||||
if getOverlayGrade(pd_code_1) != None:
|
||||
overlay_string1 += 'xmlpro( '+pd_code_1+', '+'"ROOT/taobin_project/inter/sgp/image/menu_overlay_set/grade'+gradePD1+ "/button_overlay_"+ gradePD1Sugar + overlay_position+'.png")'
|
||||
|
||||
|
||||
if getOverlayGrade(pd_code_2) != None:
|
||||
overlay_string2 += 'xmlpro( '+pd_code_2+', '+'"ROOT/taobin_project/inter/sgp/image/menu_overlay_set/grade'+gradePD2+ "/button_overlay_"+ gradePD2Sugar + overlay_position+'.png")'
|
||||
|
||||
|
||||
if getOverlayGrade(pd_code_3) != None:
|
||||
overlay_string3 += 'xmlpro( '+pd_code_3+', '+'"ROOT/taobin_project/inter/sgp/image/menu_overlay_set/grade'+gradePD3+ "/button_overlay_"+ gradePD3Sugar + overlay_position+'.png")'
|
||||
# Overlay Tag for catalog page
|
||||
|
|
@ -279,23 +279,23 @@
|
|||
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[ idx_of_eng_des].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar NameDrinkTH = "' + spl[ idx_of_eng].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[ idx_of_thai].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescription = "' + spl[ idx_of_thai_des].replace("\\n", " ") + '"\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
if gen_ss:
|
||||
print("start copy script use key ========== ", menu_key)
|
||||
|
||||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n', export_to=packExport(menu_key))
|
||||
|
||||
out_xml( '\t\tVar PriceD1 = $' + str_hot_product_code + '.Price\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PriceD2 = $' + str_cold_product_code + '.Price\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PriceD3 = $' + str_blend_product_code + '.Price\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n', export_to=packExport(menu_key))
|
||||
|
|
@ -312,7 +312,7 @@
|
|||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[0]['+ str(x) +'] = "'+ get_desc_lang( pd_code_1 , x)+'"\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[1]['+ str(x) +'] = "'+ get_name_lang( pd_code_2 , x)+'"\r\n', export_to=packExport(menu_key))
|
||||
for x in range( max_can_have_lang):
|
||||
|
|
@ -326,7 +326,7 @@
|
|||
|
||||
|
||||
out_xml( '\t\t; end lang \r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n', export_to=packExport(menu_key))
|
||||
|
|
@ -334,7 +334,7 @@
|
|||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n', export_to=packExport(menu_key))
|
||||
|
|
@ -383,17 +383,17 @@
|
|||
#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', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_3\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar SelectDrinkType = 0\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
|
||||
# Overlay Filter
|
||||
out_xml( '\t\tVar OverlayMenuFilter = \"\"\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tVar OverlayMenuFilter1 = \"\"\r\n', export_to=packExport(menu_key))
|
||||
|
|
@ -423,7 +423,7 @@
|
|||
return if_block + else_block
|
||||
|
||||
if overlay_string1 != "":
|
||||
out_xml( get_overlay_filter(1, pd_code_1, overlay_string1), export_to=packExport(menu_key))
|
||||
out_xml( get_overlay_filter(1, pd_code_1, overlay_string1), export_to=packExport(menu_key))
|
||||
if overlay_string2 != "":
|
||||
out_xml( get_overlay_filter(2, pd_code_2, overlay_string2), export_to=packExport(menu_key))
|
||||
if overlay_string3 != "":
|
||||
|
|
@ -432,35 +432,35 @@
|
|||
|
||||
|
||||
out_xml( '\t\tVar OverlayMenuFilter = "' + overlay_string_for_topping_first_open + '\"\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\t\r\n', export_to=packExport(menu_key))
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.lxml"\r\n')
|
||||
out_xml( '\t\t\r\n', export_to=packExport(menu_key))
|
||||
|
||||
|
||||
# if menu_key.startswith("s"):
|
||||
# print(f"preview script of {menu_key}", tryGetFromMap(season_pass_menu_script, menu_key))
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n', export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> 16 </X>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Y> 164 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: y_pos * 2 + 30))
|
||||
out_xml( '\t<Size> 22 </Size>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: int(y_pos * 1.5)))
|
||||
out_xml( '\t<Width> 222 </Width>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: int(y_pos * 1.5)))
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Color> HeadlineColor </Color>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t<LanguageGroup>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -469,7 +469,7 @@
|
|||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot6>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</LanguageGroup>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
out_xml( '\t<Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -529,7 +529,7 @@
|
|||
out_xml( '\t<Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> 16 </X>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Y> 264 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: y_pos * 2 + 10))
|
||||
|
||||
if gen_ss and (not is_sm or ", " in spl[idx_img][8]):
|
||||
|
|
@ -547,16 +547,16 @@
|
|||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/inter/whatthecup/sgp/image/event/season_pass/drink_option_en/hot_db.png" </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
||||
out_xml( '\t</Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> TextPriceMenuHotX </X>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
mods=lambda y_pos: y_pos * 2 - 10,
|
||||
menu_key,
|
||||
mods=lambda y_pos: y_pos * 2 - 10,
|
||||
remove="TextPriceMenuHotX",
|
||||
replace="48"))
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
mods=lambda y_pos: y_pos * 2 + 15,
|
||||
menu_key,
|
||||
mods=lambda y_pos: y_pos * 2 + 15,
|
||||
remove="TextPriceMenuY",
|
||||
replace="264"))
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n',export_to=cloneTextExport(
|
||||
|
|
@ -566,24 +566,24 @@
|
|||
replace="12"
|
||||
))
|
||||
out_xml( '\t<Width> 220 </Width>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
mods=lambda w: int(w * 2)))
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Color> WTCBlueColor </Color>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<ColorDisable> WTCWhiteColor </ColorDisable>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[ idx_hot_product_code] + '.Price ) </Value>\r\n')
|
||||
|
||||
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n',export_to=cloneTextExport(menu_key))
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_hot_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
||||
shw = "$" + str_cold_product_code + ".Button"
|
||||
|
|
@ -601,9 +601,9 @@
|
|||
mods=lambda x: x + 65
|
||||
))
|
||||
out_xml( '\t<Y> 264 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: y_pos * 2 + 10))
|
||||
|
||||
|
||||
if gen_ss and (not is_sm or ", " in spl[idx_img][8]):
|
||||
# expect season mode
|
||||
out_xml('\t<Width> 134 </Width>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
|
@ -615,11 +615,11 @@
|
|||
else:
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n',export_to=cloneTextExport(menu_key, block_append=True))
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key, block_append=True))
|
||||
|
||||
|
||||
if gen_ss and (not is_sm or "," in spl[idx_img][8]):
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/inter/whatthecup/sgp/image/event/season_pass/drink_option_en/cold.png" </Filename>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/inter/whatthecup/sgp/image/event/season_pass/drink_option_en/cold_db.png" </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
||||
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
|
@ -640,10 +640,10 @@
|
|||
remove="TextPriceMenuSize",
|
||||
replace="12"))
|
||||
out_xml( '\t<Width> 220 </Width>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
mods=lambda w: int(w * 2)))
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t<Color> WTCBlueColor </Color>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<ColorDisable> WTCWhiteColor </ColorDisable>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -655,7 +655,7 @@
|
|||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_cold_product_code + '.Price ) </Value>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + str_blend_product_code + ".Button"
|
||||
|
|
@ -673,10 +673,10 @@
|
|||
mods=lambda x: x + 130
|
||||
))
|
||||
out_xml( '\t<Y> 264 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
mods=lambda y_pos: y_pos * 2 + 10
|
||||
))
|
||||
|
||||
|
||||
if gen_ss and (not is_sm or ", " in spl[idx_img][8]):
|
||||
# expect season mode
|
||||
out_xml('\t<Width> 134 </Width>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
|
@ -684,11 +684,11 @@
|
|||
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n',export_to=cloneTextExport(menu_key, block_append=True))
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key, block_append=True))
|
||||
|
||||
|
||||
if gen_ss and (not is_sm or "," in spl[idx_img][8]):
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/inter/whatthecup/sgp/image/event/season_pass/drink_option_en/blend.png" </Filename>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/inter/whatthecup/sgp/image/event/season_pass/drink_option_en/blend_db.png" </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
||||
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
|
@ -711,11 +711,11 @@
|
|||
remove="TextPriceMenuSize",
|
||||
replace="12"))
|
||||
out_xml( '\t<Width> 220 </Width>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
mods=lambda w: int(w * 2)))
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Color> WTCBlueColor </Color>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<ColorDisable> WTCWhiteColor </ColorDisable>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -727,11 +727,11 @@
|
|||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_blend_product_code + '.Price ) </Value>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> 81 </X>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Y> 264 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: y_pos * 2 + 10))
|
||||
out_xml( '\t<State> \r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\teval( \r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -747,7 +747,7 @@
|
|||
out_xml( '\t\t\tEndIf\r\n',export_to=cloneTextExport(menu_key))
|
||||
else:
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\tElse\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -759,7 +759,7 @@
|
|||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> 49 </X>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Y> 117 </Y>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
|
@ -791,11 +791,11 @@
|
|||
out_xml( '\t</State>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Image>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<X> 84 </X>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t<Y> 266 </Y>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
menu_key,
|
||||
lambda y_pos: y_pos * 2 + 10))
|
||||
out_xml( '\t<Size> 10 </Size>\r\n',export_to=cloneTextExport(
|
||||
menu_key,
|
||||
|
|
@ -833,12 +833,12 @@
|
|||
# if gen_ss and not is_sm:
|
||||
# out_xml('\t<Color> 0x322B26 </Color>',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
# out_xml( '\t<Value> \"UNAVAILABLE\" </Value>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
|
||||
|
||||
|
||||
out_xml( '\t<Language>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t\t<ID> 000013 </ID> \r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Language>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Align> center-vertical-horizontal </Align>\r\n',export_to=cloneTextExport(menu_key))
|
||||
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))
|
||||
|
||||
|
|
@ -848,10 +848,12 @@
|
|||
"point": "end",
|
||||
"from_ss": gen_ss
|
||||
})
|
||||
|
||||
|
||||
def GenMenuBlock(spl, idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
|
||||
if "skip_blend" in param:
|
||||
spl[ idx_name][ idx_blend_product_code] = "-"
|
||||
GenMenuProductCodeBlock(spl, spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
|
||||
|
||||
|
||||
|
||||
idx_lang_malay = 5
|
||||
idx_lang_japan = 4
|
||||
|
|
@ -868,8 +870,8 @@
|
|||
idx_hot_product_code = 7
|
||||
idx_cold_product_code = idx_hot_product_code + 1
|
||||
idx_blend_product_code = idx_cold_product_code + 1
|
||||
|
||||
#
|
||||
|
||||
#
|
||||
idx_hot_product_code2 = idx_hot_product_code
|
||||
idx_cold_product_code2 = idx_cold_product_code
|
||||
idx_blend_product_code2 = idx_blend_product_code
|
||||
|
|
@ -878,20 +880,20 @@
|
|||
idx_of_thai = 0
|
||||
idx_of_thai_des = 1
|
||||
print ("--------------------------------------------------------------------------------------------------------------------------")
|
||||
|
||||
|
||||
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend.skt":
|
||||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_multi_pro.skt":
|
||||
multi_pro_gen = True
|
||||
else:
|
||||
multi_pro_gen = False
|
||||
|
||||
|
||||
print("Found multi pro skt: ", multi_pro_gen )
|
||||
|
||||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
|
|
@ -906,11 +908,11 @@
|
|||
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')
|
||||
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
|
||||
if touch_less_gen == False or multi_pro_gen:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
|
|
@ -932,10 +934,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
|
||||
|
|
@ -960,12 +962,12 @@
|
|||
# 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')
|
||||
|
|
@ -979,7 +981,7 @@
|
|||
# continue
|
||||
if len(spl) == 1:
|
||||
if spl[0].startswith("TAG"):
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
print("Have TAGESP")
|
||||
continue
|
||||
print( '\t; '+ spl[ idx_name][ idx_hot_product_code] + ' ' + spl[ idx_name][ idx_cold_product_code] + ' ' + spl[ idx_name][ idx_blend_product_code] + ' \r\n')
|
||||
|
|
@ -1027,6 +1029,8 @@
|
|||
print("\t\t==> ignore ")
|
||||
else:
|
||||
print("\t\t==> gen ")
|
||||
if "skip_blend" in param:
|
||||
blend_pd[ idx] = "-"
|
||||
GenMenuProductCodeBlock(spl, hot_pd[ idx], cold_pd[ idx], blend_pd[ idx] )
|
||||
else:
|
||||
GenMenuBlock(spl, idx_hot_product_code, idx_cold_product_code, idx_blend_product_code)
|
||||
|
|
@ -1038,7 +1042,7 @@
|
|||
if len( spl[idx_name] ) >= 11:
|
||||
if spl[ idx_name][ idx_hot_product_code2] != "-" or spl[ idx_name][ idx_cold_product_code2] != "-" or spl[ idx_name][ idx_blend_product_code2] != "-":
|
||||
GenMenuBlock(spl, idx_hot_product_code2, idx_cold_product_code2, idx_blend_product_code2)
|
||||
|
||||
|
||||
|
||||
if multi_pro_gen:
|
||||
print("multi_pro_gen")
|
||||
|
|
@ -1067,7 +1071,7 @@
|
|||
out_xml(";season-sm-block"+'\r\n')
|
||||
GenListMenu()
|
||||
out_xml(";end-season-sm-block"+'\r\n')
|
||||
|
||||
|
||||
out_xml('\t\t</FrameScroll>\r\n')
|
||||
out_xml('\t\t</Block>\r\n')
|
||||
out_xml(';endblock'+str(i)+'\r\n')
|
||||
|
|
@ -1092,6 +1096,8 @@
|
|||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
# if "v2" in param:
|
||||
|
||||
|
||||
out_xml(';include="ROOT/taobin_project/inc/button_remove_cup.inc"\r\n')
|
||||
# if "v2" in param:
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -229,23 +229,7 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
; zone cup on arm
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
|
||||
If CheckCupStateDoorCupClose = "done" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
|
||||
|
||||
|
||||
Refresh
|
||||
|
|
@ -711,6 +695,8 @@
|
|||
<Value> ShowNetworkProblemText </Value>
|
||||
</Text>
|
||||
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
; Cart
|
||||
<Button>
|
||||
<X> 915 </X>
|
||||
|
|
@ -801,5 +787,6 @@
|
|||
DEBUGVAR buttonRemoveCup
|
||||
</EventUnitTest3>
|
||||
|
||||
;include="ROOT/inc/remove_cup_tag_on_arm.inc"
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue