pro apple

This commit is contained in:
wanlop run 2025-07-11 13:55:59 +07:00
commit e9e595dd71
294 changed files with 41389 additions and 5912 deletions

View file

@ -52,6 +52,11 @@
Var DisableAllNotFreeTopping = 0
;Discount-promotion-state
Var popup_discount_hot_show = "Invisible"
Var popup_discount_cold_show = "Invisible"
Var popup_discount_blend_show_eng = "Invisible"
Var popup_discount_hot_show_thai = "Invisible"
Var SaveProductCodeSelect = "-"
Var UserSelectProductCode = "-"
@ -269,6 +274,7 @@
Var BugFlag = 0
Var DirImageInter = "ROOT/taobin_project/image/topping_revamp_inter"
Var DirImageToppingInter = "ROOT/taobin_project/image/topping_inter"
If show_eng = "true" Then
@ -705,9 +711,23 @@
Var SelectedToppingCount = 0
Var SelectSyrupType = 0
Var text_hot_color = "0x84776F"
Var text_cold_color = "0x84776F"
Var text_blender_color = "0x84776F"
If PriceDiscount[0] > 0 Then
Var text_hot_color = "0xFF0000"
Else
Var text_hot_color = "0x84776F"
EndIf
If PriceDiscount[1] > 0 Then
Var text_cold_color = "0xFF0000"
Else
Var text_cold_color = "0x84776F"
EndIf
If PriceDiscount[2] > 0 Then
Var text_blender_color = "0xFF0000"
Else
Var text_blender_color = "0x84776F"
EndIf
Var text_original_price_color = "0x84776F"
If new_layout = "true" Then
Var PriceDrinkTmpShow = "---"
@ -764,20 +784,51 @@
If hot_button_state = "Disable2" Then
Var text_price_d1 = ""
Var text_price_original_d1 = ""
Else
Var text_price_d1 !assigned StringFmt( PriceD1 , DisplayFormat, PreScaleConvertShow)
Var text_price_original_d1 !assigned StringFmt( PriceMain[0] , DisplayFormat, PreScaleConvertShow)
If PriceDiscount[0] > 0 Then
Var popup_discount_hot_show = "Enable"
Else
Var popup_discount_hot_show = "Invisible"
EndIf
EndIf
If cold_button_state = "Disable2" Then
Var text_price_d2 = ""
Var text_price_original_d2 = ""
Else
Var text_price_d2 !assigned StringFmt( PriceD2 , DisplayFormat, PreScaleConvertShow)
Var text_price_original_d2 !assigned StringFmt( PriceMain[1] , DisplayFormat, PreScaleConvertShow)
If PriceDiscount[1] > 0 Then
Var popup_discount_cold_show = "Enable"
Else
Var popup_discount_cold_show = "Invisible"
EndIf
EndIf
If blend_button_state = "Disable2" Then
Var text_price_d3 = ""
Var text_price_original_d3 = ""
Else
Var text_price_d3 !assigned StringFmt( PriceD3 , DisplayFormat, PreScaleConvertShow)
Var text_price_original_d3 !assigned StringFmt( PriceMain[2] , DisplayFormat, PreScaleConvertShow)
If PriceDiscount[2] > 0 Then
If text_show_eng = "Enable" Then
Var popup_discount_blend_show_eng = "Enable"
Var popup_discount_blend_show_thai = "Invisible"
Else
Var popup_discount_blend_show_thai = "Enable"
Var popup_discount_blend_show_eng = "Invisible"
EndIf
Else
Var popup_discount_blend_show_eng = "Invisible"
Var popup_discount_blend_show_thai = "Invisible"
EndIf
EndIf
DEBUGVAR PD_CODE1
@ -4468,7 +4519,8 @@
Var BugFlag = 0
Var topping_price_refresh = 0
Topping "Load" PD_CODE1
Var IndexDrinktType = 0
Var high_light_drink_type = "Invisible"
Var ButtonConfirmOrderState = "Disable"
@ -4529,7 +4581,8 @@ Var PriceDrinkTmpShow = "---"
Var topping_price_refresh = 0
Topping "Load" PD_CODE2
Var high_light_drink_type = "Invisible"
Var IndexDrinktType = 1
Var high_light_drink_type = "Invisible"
Var ButtonConfirmOrderState = "Disable"
Var PriceDrinkTmpShow = "---"
@ -4589,7 +4642,8 @@ Refresh
Var topping_price_refresh = 0
Topping "Load" PD_CODE3
Var high_light_drink_type = "Invisible"
Var IndexDrinktType = 2
Var high_light_drink_type = "Invisible"
Var ButtonConfirmOrderState = "Disable"
Var PriceDrinkTmpShow = "---"
@ -4640,6 +4694,94 @@ Refresh
<Value> text_price_d3 </Value>
</Text>
<Image>
<X> 552 </X>
<Y> 55 </Y>
<State> popup_discount_hot_show </State>
<Filename> Var( DirImageToppingInter + "/original_price_block.png" ) </Filename>
</Image>
<Image>
<X> 552 </X>
<Y> 55 </Y>
<State> popup_discount_hot_show </State>
<Filename> Var( DirImageToppingInter + "/discount_line.png" ) </Filename>
</Image>
<Text>
<X> 562 </X>
<Y> 55 </Y>
<State> popup_discount_hot_show </State>
<Font> KanitRegularTTF </Font>
<Size> 21 </Size>
<Color> text_original_price_color </Color>
<Value> text_price_original_d1 </Value>
</Text>
<Image>
<X> 710 </X>
<Y> 55 </Y>
<State> popup_discount_cold_show </State>
<Filename> Var( DirImageToppingInter + "/original_price_block.png" ) </Filename>
</Image>
<Image>
<X> 710 </X>
<Y> 55 </Y>
<State> popup_discount_cold_show </State>
<Filename> Var( DirImageToppingInter + "/discount_line.png" ) </Filename>
</Image>
<Text>
<X> 720 </X>
<Y> 55 </Y>
<State> popup_discount_cold_show </State>
<Font> KanitRegularTTF </Font>
<Size> 21 </Size>
<Color> text_original_price_color </Color>
<Value> text_price_original_d2 </Value>
</Text>
<Image>
<X> 852 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_thai </State>
<Filename> Var( DirImageToppingInter + "/original_price_block.png" ) </Filename>
</Image>
<Image>
<X> 852 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_thai </State>
<Filename> Var( DirImageToppingInter + "/discount_line.png" ) </Filename>
</Image>
<Text>
<X> 862 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_thai </State>
<Font> KanitRegularTTF </Font>
<Size> 23 </Size>
<Color> text_original_price_color </Color>
<Value> text_price_original_d3 </Value>
</Text>
<Image>
<X> 892 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_eng </State>
<Filename> Var( DirImageToppingInter + "/original_price_block.png" ) </Filename>
</Image>
<Image>
<X> 892 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_eng </State>
<Filename> Var( DirImageToppingInter + "/discount_line.png" ) </Filename>
</Image>
<Text>
<X> 902 </X>
<Y> 55 </Y>
<State> popup_discount_blend_show_eng </State>
<Font> KanitRegularTTF </Font>
<Size> 23 </Size>
<Color> text_original_price_color </Color>
<Value> text_price_original_d3 </Value>
</Text>
</Block>