From 0e95eb8a35a22cff660338a102a9ac2dfd489f79 Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Wed, 27 Nov 2024 20:37:29 +0700 Subject: [PATCH 1/3] update gen layout --- xml/menu_new_layout_gen.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xml/menu_new_layout_gen.py b/xml/menu_new_layout_gen.py index 378adb89..b8a10f47 100644 --- a/xml/menu_new_layout_gen.py +++ b/xml/menu_new_layout_gen.py @@ -835,6 +835,8 @@ out_xml( '\t StringFmt( $' + spl[4] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) ; test\r\n') elif passion_mint: out_xml( '\t StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') + elif from_12_day_12_menu: + out_xml( '\t StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: @@ -850,6 +852,8 @@ out_xml( '\t Var( "฿" + $' + spl[4] + '.Price - 7 ) \r\n') elif passion_mint: out_xml( '\t "฿' + str(GetPrice(passion_mint_fix_price, spl[4])) + '" \r\n') + elif from_12_day_12_menu: + out_xml( '\t "฿' + str(GetPrice(price_12_day_12_menu, spl[4])) + '" \r\n') else: out_xml( '\t Var( "฿" + $' + spl[4] + '.Price ) \r\n') out_xml( '\t\r\n') @@ -1481,6 +1485,8 @@ out_xml( '\t StringFmt( $' +spl[8] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) ; test\r\n') elif passion_mint: out_xml( '\t StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') + elif price_12_day_12_menu: + out_xml( '\t StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t StringFmt( $' +spl[8] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: @@ -1490,6 +1496,8 @@ out_xml( '\t Var( "฿" + $' + spl[8] + '.Price - 7 ) \r\n') elif passion_mint: out_xml( '\t "฿' + str(GetPrice(passion_mint_fix_price, spl[8])) + '" \r\n') + elif price_12_day_12_menu: + out_xml( '\t "฿' + str(GetPrice(price_12_day_12_menu, spl[8])) + '" \r\n') else: out_xml( '\t Var( "฿" + $' + spl[8] + '.Price ) \r\n') @@ -1542,6 +1550,8 @@ out_xml( '\t StringFmt( $' +spl[9] + '.Price - 7, DisplayFormat, PreScaleConvertShow) ; test\r\n') elif passion_mint: out_xml( '\t StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') + elif from_12_day_12_menu: + out_xml( '\t StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t StringFmt( $' +spl[9] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: @@ -1551,6 +1561,8 @@ out_xml( '\t Var( "฿" + $' + spl[9] + '.Price - 7 ) \r\n') elif passion_mint: out_xml( '\t "฿' + str(GetPrice(passion_mint_fix_price, spl[9])) + '" \r\n') + elif from_12_day_12_menu: + out_xml( '\t "฿' + str(GetPrice(price_12_day_12_menu, spl[9])) + '" \r\n') else: out_xml( '\t Var( "฿" + $' + spl[9] + '.Price ) \r\n') @@ -1602,6 +1614,8 @@ out_xml( '\t StringFmt( $' +spl[10] + '.Price - 7, DisplayFormat, PreScaleConvertShow) ; test\r\n') elif passion_mint: out_xml( '\t StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') + elif from_12_day_12_menu: + out_xml( '\t StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t StringFmt( $' +spl[10] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: @@ -1611,6 +1625,8 @@ out_xml( '\t Var( "฿" + $' + spl[10] + '.Price - 7 ) \r\n') elif passion_mint: out_xml( '\t "฿' + str(GetPrice(passion_mint_fix_price, spl[10])) + '" \r\n') + elif from_12_day_12_menu: + out_xml( '\t "฿' + str(GetPrice(price_12_day_12_menu, spl[10])) + '" \r\n') else: out_xml( '\t Var( "฿" + $' + spl[10] + '.Price ) \r\n') From 2eebf65eeac19f525dea21529d3545f8c739fc43 Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Wed, 27 Nov 2024 20:39:58 +0700 Subject: [PATCH 2/3] Update page_catalog_group_pro_12_day_12_menu.xml --- xml/page_catalog_group_pro_12_day_12_menu.xml | 116 +++++++++--------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/xml/page_catalog_group_pro_12_day_12_menu.xml b/xml/page_catalog_group_pro_12_day_12_menu.xml index f80baa1e..8db3ad1e 100644 --- a/xml/page_catalog_group_pro_12_day_12_menu.xml +++ b/xml/page_catalog_group_pro_12_day_12_menu.xml @@ -183,7 +183,7 @@ 0x6F5F51 0xEAE6E1 "Invisible" - StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test + StringFmt( "-" , DisplayFormat, PreScaleConvertShow) ; test 81 @@ -440,7 +440,7 @@ CARAMEL OREO" 0x6F5F51 0xEAE6E1 "Invisible" - StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test + StringFmt( "-" , DisplayFormat, PreScaleConvertShow) ; test 81 @@ -698,7 +698,7 @@ SMOOTHIE" 0x6F5F51 0xEAE6E1 "Invisible" - StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test + StringFmt( "-" , DisplayFormat, PreScaleConvertShow) ; test 81 @@ -954,7 +954,7 @@ SMOOTHIE" 0x6F5F51 0xEAE6E1 "Invisible" - StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test + StringFmt( "-" , DisplayFormat, PreScaleConvertShow) ; test 81 @@ -1061,19 +1061,19 @@ SMOOTHIE" ; - - - ; ==================> Len = 12 - ; - 12-01-02-0001 - + ; - 12-01-02-0001 - 33 22 225 296 - Flag( 12-01-02-0001 .Button,$Sum1201020001 ) + Flag( 12-01-02-0001.Button,$Sum1201020001)