WTC+SGP: change theme on page catalog group, WIP fix bug unexpect gen

This commit is contained in:
Pakin 2024-08-08 13:42:56 +07:00
parent ef2de0b8b7
commit 33edbc4df9
44 changed files with 6069 additions and 5527 deletions

View file

@ -459,7 +459,7 @@
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> 0x322B26 </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> HeadlineColor2 </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))
@ -478,7 +478,7 @@
out_xml( '\t<Size> 14 </Size>\r\n',export_to=cloneTextExport(menu_key, lambda y_pos: int(y_pos + 11)))
out_xml( '\t<Width> 222 </Width>\r\n',export_to=cloneTextExport(menu_key, lambda y_pos: int(y_pos * 1.5)))
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> BodyTextColor2 </Color>\r\n',export_to=cloneTextExport(menu_key))
#out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<LanguageGroup>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng].replace("\n","\\n") + '</LanguageSlot1>\r\n',export_to=cloneTextExport(menu_key))
@ -498,6 +498,7 @@
out_xml( '\t<Y> 264 </Y>\r\n',export_to=cloneTextExport(menu_key, lambda y_pos: y_pos * 2 + 10))
if gen_ss and (not is_sm or ", " in spl[idx_img][8]):
print("use ss: caused by multi_pro_gen=", multi_pro_gen, ", is_sm=", is_sm)
# expect season mode
out_xml('\t<Width> 390 </Width>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
out_xml('\t<Height> 44 </Height>\r\n',export_to=cloneTextExport(menu_key, block_output=True))
@ -570,8 +571,8 @@
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\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')
@ -643,8 +644,8 @@
mods=lambda w: int(w * 2)))
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\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))
if "inter" in param:
if "free" in param:
@ -715,8 +716,8 @@
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> 0x6F5F51 </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\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))
if "inter" in param:
if "free" in param:
@ -801,7 +802,7 @@
lambda y_pos: y_pos + 11
))
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> 0xDE794E </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Color> WTCMediumBlueColor </Color>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<State> ice_tab_process_show </State>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t<Value> ice_show_open </Value>\r\n',export_to=cloneTextExport(menu_key))
out_xml( '\t</Text>\r\n',export_to=cloneTextExport(menu_key))