THAI: Added more menu Robinson promotion

This commit is contained in:
Kenta420 2024-08-28 18:09:45 +07:00
parent 5bb6800457
commit 3856bb29c8
34 changed files with 312 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -182,6 +182,7 @@
SPLIT Ext1a "/" 7 MenuPoint[6] SPLIT Ext1a "/" 7 MenuPoint[6]
SPLIT Ext1a "/" 8 MenuPoint[7] SPLIT Ext1a "/" 8 MenuPoint[7]
SPLIT Ext1a "/" 9 MenuPoint[8] SPLIT Ext1a "/" 9 MenuPoint[8]
SPLIT Ext1a "/" 10 MenuPoint[9]
INT MenuPoint[0] INT MenuPoint[0]
@ -193,6 +194,7 @@
INT MenuPoint[6] INT MenuPoint[6]
INT MenuPoint[7] INT MenuPoint[7]
INT MenuPoint[8] INT MenuPoint[8]
INT MenuPoint[9]
DEBUGVAR MenuPoint[0] DEBUGVAR MenuPoint[0]
DEBUGVAR MenuPoint[1] DEBUGVAR MenuPoint[1]
@ -203,6 +205,7 @@
DEBUGVAR MenuPoint[6] DEBUGVAR MenuPoint[6]
DEBUGVAR MenuPoint[7] DEBUGVAR MenuPoint[7]
DEBUGVAR MenuPoint[8] DEBUGVAR MenuPoint[8]
DEBUGVAR MenuPoint[9]
; Menu 1 ; Menu 1
If Seeker.selected_a_drink = "12-05-03-0064" Then If Seeker.selected_a_drink = "12-05-03-0064" Then
@ -238,6 +241,14 @@
; Menu 4 ; Menu 4
If Seeker.selected_a_drink = "12-01-02-0073" Then
If MenuPoint[3] = 1 then
Else
Var MenuPoint[3] = 1
Var newPointIndex = 3
EndIf
EndIf
If Seeker.selected_a_drink = "12-21-02-0073" Then If Seeker.selected_a_drink = "12-21-02-0073" Then
If MenuPoint[3] = 1 then If MenuPoint[3] = 1 then
@ -282,6 +293,14 @@
; Menu 8 ; Menu 8
If Seeker.selected_a_drink = "12-01-02-0074" Then
If MenuPoint[7] = 1 then
Else
Var MenuPoint[7] = 1
Var newPointIndex = 7
EndIf
EndIf
If Seeker.selected_a_drink = "12-21-02-0074" Then If Seeker.selected_a_drink = "12-21-02-0074" Then
If MenuPoint[7] = 1 then If MenuPoint[7] = 1 then
@ -302,6 +321,16 @@
EndIf EndIf
EndIf EndIf
; Menu 10
If Seeker.selected_a_drink = "12-05-03-0115" Then
If MenuPoint[9] = 1 then
Else
Var MenuPoint[9] = 1
Var newPointIndex = 9
EndIf
EndIf
Var CurrentIndexPoint = -1 Var CurrentIndexPoint = -1
@ -359,6 +388,12 @@
Var PointNameIndex[CurrentIndexPoint] = 8 Var PointNameIndex[CurrentIndexPoint] = 8
EndIf EndIf
If MenuPoint[9] = 1 Then
Var CurrentIndexPoint = CurrentIndexPoint + 1
Var PointState[CurrentIndexPoint] = 1
Var PointNameIndex[CurrentIndexPoint] = 9
EndIf
DEBUGVAR Seeker.selected_a_drink DEBUGVAR Seeker.selected_a_drink
DEBUGVAR newPointIndex DEBUGVAR newPointIndex

View file

@ -133,11 +133,19 @@
EndIf EndIf
If PointState[8] = 1 Then If PointState[8] = 1 Then
Var PointCount = PointCount + 1 Var PointCount = PointCount + 1
If show_eng = "true" Then If MenuPoint[9] = 1 Then
Var taobinImgPoint[8] = "/point_9_en.png" If show_eng = "true" Then
Else Var taobinImgPoint[8] = "/point_10_en.png"
Var taobinImgPoint[8] = "/point_9.png" Else
EndIf Var taobinImgPoint[8] = "/point_10.png"
EndIf
Else
If show_eng = "true" Then
Var taobinImgPoint[8] = "/point_9_en.png"
Else
Var taobinImgPoint[8] = "/point_9.png"
EndIf
EndIf
EndIf EndIf
Var PointDiff = 9 - PointCount Var PointDiff = 9 - PointCount

View file

@ -55,6 +55,9 @@
; Menu 4 ; Menu 4
If Seeker.selected_a_drink = "12-01-02-0073" Then
Var newPointIndex = 3
EndIf
If Seeker.selected_a_drink = "12-21-02-0073" Then If Seeker.selected_a_drink = "12-21-02-0073" Then
Var newPointIndex = 3 Var newPointIndex = 3
EndIf EndIf
@ -79,6 +82,9 @@
; Menu 8 ; Menu 8
If Seeker.selected_a_drink = "12-01-02-0074" Then
Var newPointIndex = 7
EndIf
If Seeker.selected_a_drink = "12-21-02-0074" Then If Seeker.selected_a_drink = "12-21-02-0074" Then
Var newPointIndex = 7 Var newPointIndex = 7
EndIf EndIf
@ -88,7 +94,11 @@
If Seeker.selected_a_drink = "12-02-03-0053" Then If Seeker.selected_a_drink = "12-02-03-0053" Then
Var newPointIndex = 8 Var newPointIndex = 8
EndIf EndIf
; Menu 10
If Seeker.selected_a_drink = "12-05-03-0115" Then
Var newPointIndex = 8
EndIf
Var CurrentPointSlot = newPointIndex + 1 Var CurrentPointSlot = newPointIndex + 1
Var CurrentPointCheck = "check" Var CurrentPointCheck = "check"

View file

@ -35,7 +35,7 @@
Var block_index_override = 0 Var block_index_override = 0
Var block_index_move = 0 Var block_index_move = 0
</Script> </Script>
; menu_new_list 9 ; menu_new_list 10
; ==================> Len = 12 ; ==================> Len = 12
; - - 12-05-03-0064 ; - - 12-05-03-0064
<Block> <Block>
@ -2816,6 +2816,258 @@ CHEE TEA" </Value>
<Value> text_unavailable </Value> <Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
</Text> </Text>
</Block>
; - - -
; ==================> Len = 12
; - - 12-05-03-0115
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-05-03-0115.Button,$Sum1205030115) </State>
<Button>
<State> $Sum1205030115 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_7UP_Lychee_SODA_robinson_beauty.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_iced_7UP_Lychee_SODA_robinson_beauty.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_iced_7UP_Lychee_SODA_robinson_beauty.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-05-03-0115, "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 = "ROBINSON UP CHEE SMOOTHIE"
Var NameDrinkTH = "โรบินสันอัพชี่"
Var DrinkDescriptionTH = "เซเว่น อัพ ลิ้นจี่ มะนาว โซดา "
Var DrinkDescription = "7Up Lychee Lime Soda"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_7UP_Lychee_SODA_robinson_beauty.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-05-03-0115.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-05-03-0115"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-05-03-0115.Button
Var OverlayMenuFilter !assigned xmlpro( 12-05-03-0115, "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" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-05-03-0115"
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 = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-05-03-0115.NameE
Var menu_desc_eng_blender = $12-05-03-0115.descriptionE
Var menu_name_thai_blender = $12-05-03-0115.Name
Var menu_desc_thai_blender = $12-05-03-0115.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var FromRobinsonBeautyPro = 1
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> "ROBINSON UP CHEE SMOOTHIE" </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> "7Up Lychee Lime 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> "Invisible" </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> "Invisible" </State>
<Value> StringFmt( $-.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> $12-05-03-0115.Button </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> $12-05-03-0115.Button </State>
<Value> StringFmt( $12-05-03-0115.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 $Sum1205030115 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-05-03-0115.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> $Sum1205030115 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block> </Block>
; - - - ; - - -
</FrameScroll> </FrameScroll>