DO multi v3 and pro v3

This commit is contained in:
wanlop run 2025-04-24 00:03:39 +07:00
parent 044c9ac605
commit 866b0ecf9d
31 changed files with 21517 additions and 8685 deletions

View file

@ -153,6 +153,9 @@ EndIf
Var ToppingNewUINewSystem = 0
If BoxID = 201193 Then
Var BoostEnergyPro = 1
EndIf
If BoxID = 105005 Then
Var NewFlowPaymentCode = 1
@ -173,14 +176,12 @@ If BoxID = 201714 Then
Var RedStringOfFatePro = 0
Var OvaltineSchoolPro = 0
Var KingdomThaiTeaPro = 1
Var AdvertisePepsiAtTheSun = 1
Var SongkranSoundCampaign = 1
Var NewMatchaPremiumX3 = 1
EndIf
If BoxID = 201729 Then
Var KingdomThaiTeaPro = 1
Var AdvertisePepsiAtTheSun = 1
Var SongkranSoundCampaign = 1
Var NewMatchaPremiumX3 = 1
EndIf
@ -196,12 +197,9 @@ EndIf
If BoxID = 123456 Then
Var ToppingNewUINewSystem = 0
Var AdvertisePepsiAtTheSun = 1
Var KingdomThaiTeaPro = 1
Var SongkranSoundCampaign = 1
Var PepsiXTaobinPro = 1
Var MatchaEveryDayPro = 0
Var ToppingNewUINewSystemStep2 = 1
Var BoostEnergyPro = 1
EndIf
DEBUGVAR ConfigNumer
@ -213,17 +211,6 @@ If ConfigNumer >= 1763 Then
Var ToppingNewUINewSystemStep2 = 1
EndIf
Var SmoothieMode = "Invisible"
If BoxID = 123456 Then
Var SmoothieMode= "Enable"
EndIf
If BoxID = 176757 Then
Var SmoothieMode= "Enable"
EndIf
DEBUGVAR SmoothieMode
; override again
Var CleanFeedbackFlag = 1

View file

@ -1323,6 +1323,9 @@
If BoxID = 123456 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf
If BoxID = 201193 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf
If EnableMultiInstanceFromBoxID = 1 Then
If CountryName = "Thailand" Then
@ -1335,7 +1338,7 @@
If BoxID = 123456 Then
Var SpiralOnline = "true"
Var SpiralOnline = "false"
Var InternationalShow = 0
EndIf
@ -2229,7 +2232,7 @@ PRICE "Reset" "-"
Var refresh_str = "-RefreshProf"
STRCONTAIN refresh_str XMLProfile HasRefreshProf
If HasRefreshProf = "true" Then
RebootWithCause "RefreshProf_ProMelon"
EndIf
EndIf

View file

@ -41,7 +41,7 @@
;banner_shifting
</Script>
;dummy_layout.inc
; menu_new_list 100
; menu_new_list 101
; ==================> Len = 16
; - 12-05-02-0133 -
<Block>
@ -3341,6 +3341,257 @@ Soda" </Value>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16
; - 12-05-02-0147 -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-05-02-0147.Button,DateTimeStart="2025/04/01T00:00:00",Var=TaobinEnergyDrinkMenu,$Sum1205020147) </State>
<Button>
<State> $Sum1205020147 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_Yuzu_Caramel_Soda.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_Yuzu_Caramel_Soda.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_Yuzu_Caramel_Soda.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-05-02-0147, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Yuzu Caramel Soda"
Var NameDrinkTH = "ยูซุคาราเมลโซดา"
Var DrinkDescriptionTH = "ยูซุ คาราเมล โซดา"
Var DrinkDescription = "Yuzu Caramel Soda"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Yuzu_Caramel_Soda.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $12-05-02-0147.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "12-05-02-0147"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = $12-05-02-0147.Button
Var PD_STAGE_3 = "Disable2"
Var OverlayMenuFilter !assigned xmlpro( 12-05-02-0147, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-05-02-0147"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $12-05-02-0147.NameE
Var menu_desc_eng_cold = $12-05-02-0147.descriptionE
Var menu_name_thai_cold = $12-05-02-0147.Name
Var menu_desc_thai_cold = $12-05-02-0147.description
Var menu_name_eng_blender = $##-##-##-####.NameE
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
Var menu_name_thai_blender = $##-##-##-####.Name
Var menu_desc_thai_blender = $##-##-##-####.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> "ยูซุคาราเมลโซดา" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "ยูซุ คาราเมล โซดา" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "Yuzu Caramel Soda" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Yuzu Caramel Soda" </Value>
</Text>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
</Image>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> "Invisible" </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-05-02-0147.Button </State>
</Image>
<Text>
<X> 115 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-05-02-0147.Button </State>
<Value> StringFmt( $12-05-02-0147.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> "Invisible" </State>
</Image>
<Text>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
Var ice_tab_process_show = "Invisible"
Else
Var ice_tab_process_show = "Invisible"
EndIf
Var return = ice_tab_process_show
)
</State>
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
</Image>
<Image>
<X> 49 </X>
<Y> 117 </Y>
<State>
eval(
If $Sum1205020147 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $12-05-02-0147.TAG tag2_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag2_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag3_is_disable = "true" Then
Var return = "Enable"
EndIf
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
</Image>
<Text>
<X> 84 </X>
<Y> 266 </Y>
<Size> 10 </Size>
<Font> OpunMediumTTF </Font>
<Color> 0xDE794E </Color>
<State> ice_tab_process_show </State>
<Value> ice_show_open </Value>
</Text>
<Text>
<X> 48 </X>
<Y> 116 </Y>
<Size> 32 </Size>
<Width>128</Width>
<Height>64</Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1205020147 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16

File diff suppressed because it is too large Load diff

View file

@ -175,8 +175,6 @@
DEBUGVAR TestArrary[2]
DEBUGVAR TestArrary[3]
DEBUGVAR SmoothieMode
</EventOpen>
<Timeout> 1000 </Timeout>
@ -1000,28 +998,6 @@
<Image>
<X> info1_startX </X>
<Y> info_14Y </Y>
<State> SmoothieMode</State>
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
<EventClick>
;include="ROOT/taobin_project/xml/open_file_instance0_to_instance2.inc"
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
</EventClick>
</Image>
<Text>
<X> info1_text_startX </X>
<Y> info_text_14Y </Y>
<Size> 30 </Size>
<State> SmoothieMode</State>
<Font> fontType1 </Font>
<Color> 0x000000 </Color>
<Value> " Smoothie menu." </Value>
</Text>
<Button>