new pepween imgs & white text

This commit is contained in:
Pakin 2023-10-02 11:12:44 +07:00
parent 4862b5fd23
commit 37a4db7b92
34 changed files with 618 additions and 1119 deletions

View file

@ -5,7 +5,7 @@
touch_less_gen = True
else:
touch_less_gen = False
print ("######################################################################################################")
idx_of_eng = 2
out_xml('<FrameScroll> \r\n')
@ -260,6 +260,16 @@
out_xml( '\t</EventOnClick>\r\n')
out_xml( '\t</Button>\r\n')
menu_color_font = None
desc_color_font = None
sppromo = pd_code_2.split("-") if pd_code_2 != "##-##-##-####" else pd_code_3.split("-")
if int(sppromo[len(sppromo) - 1][2:]) > 52 and int(sppromo[len(sppromo) - 1][2:]) < 67:
menu_color_font = '0xFFFFFF'
desc_color_font = '0xFFFFFF'
if spl[1] != "None":
@ -270,7 +280,7 @@
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<Color> 0x322B26 </Color>\r\n' if menu_color_font == None else '\t<Color> '+menu_color_font+' </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')
@ -281,7 +291,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<Color> 0x6F5F51 </Color>\r\n' if menu_color_font == None else '\t<Color> '+menu_color_font+' </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')
@ -294,7 +304,7 @@
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<Color> 0x322B26 </Color>\r\n' if menu_color_font == None else '\t<Color> '+menu_color_font+' </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')
@ -305,7 +315,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<Color> 0x6F5F51 </Color>\r\n' if menu_color_font == None else '\t<Color> '+menu_color_font+' </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')

File diff suppressed because it is too large Load diff