merge masterpice
This commit is contained in:
commit
e9ff785f71
6610 changed files with 1351994 additions and 951180 deletions
156
xml/event/boost_energy/page_got_discount_code.xml
Normal file
156
xml/event/boost_energy/page_got_discount_code.xml
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
<Popup>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
Var ImageDir = "ROOT/taobin_project/image/event/boost_energy/"
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var GotDiscountImg = ImageDir + "got_discount_code_en.png"
|
||||
Var ButtonIdleImg = "ROOT/taobin_project/image/collectiing/bn_confirm.png"
|
||||
Var ButtonPressedImg = "ROOT/taobin_project/image/collectiing/bp_confirm.png"
|
||||
Else
|
||||
Var GotDiscountImg = ImageDir + "got_discount_code_th.png"
|
||||
Var ButtonIdleImg = "ROOT/taobin_project/image/collectiing_en/bn_confirm.png"
|
||||
Var ButtonPressedImg = "ROOT/taobin_project/image/collectiing_en/bp_confirm.png"
|
||||
EndIf
|
||||
|
||||
Var CloseButtonState = "Invisible"
|
||||
|
||||
DEBUGVAR GotDiscountImg
|
||||
DEBUGVAR TelephoneNumber
|
||||
|
||||
SAVELOG "[BOOST_ENERGY] Sending code"
|
||||
|
||||
Var Param1 = "157"
|
||||
Var Param2 = ""
|
||||
Var Param3 = ""
|
||||
AddData 43 TelephoneNumber Param1 Param2 Param3
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;Var CountDownBrewing = BREW_CNT
|
||||
|
||||
;Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 5 Then
|
||||
SAVELOG "[BOOST_ENERGY] Timeout"
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
|
||||
<EventActionOk>
|
||||
If Ext1a = "ok" Then
|
||||
|
||||
Else
|
||||
|
||||
SAVELOG "[BOOST_ENERGY] EventActionOk: Ext1a != ok send code fail"
|
||||
DEBUGVAR ParamCP
|
||||
DEBUGVAR TelephoneNumberX
|
||||
DEBUGVAR TelephoneNumber
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var GotDiscountImg = ImageDir + "send_code_fail_en.png"
|
||||
Else
|
||||
Var GotDiscountImg = ImageDir + "send_code_fail_th.png"
|
||||
EndIf
|
||||
|
||||
Var CloseButtonState = "Enable"
|
||||
Var Timeout = 0
|
||||
|
||||
Refresh
|
||||
|
||||
EndIf
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
|
||||
SAVELOG "[BOOST_ENERGY] EventActionError: send code fail"
|
||||
DEBUGVAR ParamCP
|
||||
DEBUGVAR TelephoneNumberX
|
||||
DEBUGVAR TelephoneNumber
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var GotDiscountImg = ImageDir + "send_code_fail_en.png"
|
||||
Else
|
||||
Var GotDiscountImg = ImageDir + "send_code_fail_th.png"
|
||||
EndIf
|
||||
|
||||
Var CloseButtonState = "Enable"
|
||||
Var Timeout = 0
|
||||
|
||||
Refresh
|
||||
|
||||
</EventActionError>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> GotDiscountImg </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 397 </X>
|
||||
<Y> 1783 </Y>
|
||||
<State> CloseButtonState </State>
|
||||
<Filename> ButtonIdleImg </Filename>
|
||||
<FilenamePress> ButtonPressedImg </FilenamePress>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventClck>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 751 </X>
|
||||
;<Y> 413 </Y>
|
||||
;<Filename> IMG_CNT </Filename>
|
||||
;</Image>
|
||||
|
||||
;<Text>
|
||||
;<X> XPosiShowCountDownBrew </X>
|
||||
;<Y> 470 </Y>
|
||||
;<Align> End </Align>
|
||||
;<Width> 153 </Width>
|
||||
;<Size> 88 </Size>
|
||||
;<Font> RobotoBold </Font>
|
||||
;<Color> 0x513C2F </Color>
|
||||
;<Value> ShowCountDownBrewing </Value>
|
||||
;</Text>
|
||||
|
||||
</Popup>
|
||||
|
|
@ -16230,20 +16230,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11717,20 +11717,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12400,20 +12400,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -13716,20 +13716,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
16185
xml/event/double_promotion_kingdom_thai_tea_and_matcha_every_day.xml
Normal file
16185
xml/event/double_promotion_kingdom_thai_tea_and_matcha_every_day.xml
Normal file
File diff suppressed because it is too large
Load diff
16218
xml/event/double_promotion_kingdom_thai_tea_and_pepsi_x_taobin.xml
Normal file
16218
xml/event/double_promotion_kingdom_thai_tea_and_pepsi_x_taobin.xml
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
16701
xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml
Normal file
16701
xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12184,20 +12184,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -46,10 +46,14 @@ else:
|
|||
|
||||
#content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_recommend.replace(";BigLogoLayout", file_inc1_content)
|
||||
content_data = content_data.replace("<Max> 16 </Max>", '<Max> 12 </Max>')
|
||||
content_data = content_data.replace(";layout_mode", '<Mode> "EnableAdjust" </Mode>')
|
||||
content_data = content_data.replace(";banner_shifting",
|
||||
'''Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
Var ColumnOverride[2] = 4
|
||||
Var ColumnOverride[3] = 4
|
||||
Var ColumnOverride[4] = 4
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
''')
|
||||
|
|
@ -109,10 +113,14 @@ else:
|
|||
|
||||
#content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_recommend.replace(";BigLogoLayout", file_inc2_content)
|
||||
content_data = content_data.replace("<Max> 16 </Max>", '<Max> 12 </Max>')
|
||||
content_data = content_data.replace(";layout_mode", '<Mode> "EnableAdjust" </Mode>')
|
||||
content_data = content_data.replace(";banner_shifting",
|
||||
'''Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
Var ColumnOverride[2] = 4
|
||||
Var ColumnOverride[3] = 4
|
||||
Var ColumnOverride[4] = 4
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
''')
|
||||
|
|
@ -172,10 +180,14 @@ else:
|
|||
|
||||
#content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_recommend.replace(";BigLogoLayout", file_inc3_content)
|
||||
content_data = content_data.replace("<Max> 16 </Max>", '<Max> 12 </Max>')
|
||||
content_data = content_data.replace(";layout_mode", '<Mode> "EnableAdjust" </Mode>')
|
||||
content_data = content_data.replace(";banner_shifting",
|
||||
'''Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
Var ColumnOverride[2] = 4
|
||||
Var ColumnOverride[3] = 4
|
||||
Var ColumnOverride[4] = 4
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
''')
|
||||
|
|
@ -235,10 +247,14 @@ else:
|
|||
|
||||
#content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_recommend.replace(";BigLogoLayout", file_inc4_content)
|
||||
content_data = content_data.replace("<Max> 16 </Max>", '<Max> 12 </Max>')
|
||||
content_data = content_data.replace(";layout_mode", '<Mode> "EnableAdjust" </Mode>')
|
||||
content_data = content_data.replace(";banner_shifting",
|
||||
'''Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
Var ColumnOverride[2] = 4
|
||||
Var ColumnOverride[3] = 4
|
||||
Var ColumnOverride[4] = 4
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
''')
|
||||
|
|
|
|||
|
|
@ -12629,20 +12629,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"name": "matcha_every_day",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_matcha_every_day.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "coconut_milk",
|
||||
"template": "/event/promotion_video_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.png",
|
||||
"video_eng": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.mp4",
|
||||
"video_thai": "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.mp4",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_coconut_milk.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
[
|
||||
{
|
||||
"name": "kingdom_thai_tea",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_kingdom_thai_tea.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "matcha_every_day",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_matcha_every_day.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"name": "kingdom_thai_tea",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/kingdom_thai_tea/kingdom_thai_tea.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_kingdom_thai_tea.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "pepsi_x_taobin",
|
||||
"template": "/event/promotion_video_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.png",
|
||||
"video_eng": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.mp4",
|
||||
"video_thai": "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.mp4",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_x_taobin.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
[
|
||||
{
|
||||
"name": "matcha_every_day",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_matcha_every_day.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "oreo_volcano",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_oreo_volcano.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
[
|
||||
{
|
||||
"name": "ovaltine",
|
||||
"template": "/event/promotion_video_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.png",
|
||||
"video_eng": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.mp4",
|
||||
"video_thai": "ROOT/taobin_project/image/event/ovaltine_school/ovaltine_school.mp4",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_ovaltine_school.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "red_string",
|
||||
"template": "/event/promotion_video_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.png",
|
||||
"video_eng": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.mp4",
|
||||
"video_thai": "ROOT/taobin_project/image/event/red_string_of_fate/red_string_of_fate.mp4",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_red_string_of_fate.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_cocoa77.xml
|
||||
/event/promotion_pepesi_x_taobin.xml
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
/event/promotion_strawberry_series.xml
|
||||
/event/promotion_oreo_volcano.xml
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_thick_tea_by_brewer.xml
|
||||
/event/promotion_matcha_every_day.xml
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_happy_trios.xml
|
||||
/event/promotion_kingdom_thai_tea.xml
|
||||
|
|
@ -16154,21 +16154,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11293,20 +11293,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12893,20 +12893,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -9910,20 +9910,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11293,20 +11293,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
16992
xml/event/promotion_boost_energy.xml
Normal file
16992
xml/event/promotion_boost_energy.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -16862,20 +16862,6 @@ LIMENADE SODA" </Value>
|
|||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
15876
xml/event/promotion_coconut_milk.xml
Normal file
15876
xml/event/promotion_coconut_milk.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12641,20 +12641,7 @@ Water" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12807,20 +12807,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -14909,21 +14909,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -15372,21 +15372,7 @@ LIMENADE SODA" </Value>
|
|||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -14893,21 +14893,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
16101
xml/event/promotion_kingdom_thai_tea.xml
Normal file
16101
xml/event/promotion_kingdom_thai_tea.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -13053,20 +13053,7 @@ Water" </Value>
|
|||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -12899,20 +12899,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12919,20 +12919,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -8914,20 +8914,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12101,20 +12101,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -10782,20 +10782,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_strawberry_series.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_oreo_volcano.xml"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_matcha_every_day.xml"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_happy_trios.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_kingdom_thai_tea.xml"
|
||||
|
|
|
|||
|
|
@ -14873,13 +14873,13 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<X> btnRemoveCupX </X>
|
||||
<Y> btnRemoveCupYNotPageBoard </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<Filename> bnRemoveCup </Filename>
|
||||
<Filename> bpRemoveCup </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
|
|
|||
16612
xml/event/promotion_oreo_volcano.xml
Normal file
16612
xml/event/promotion_oreo_volcano.xml
Normal file
File diff suppressed because it is too large
Load diff
14420
xml/event/promotion_ovaltine_school.xml
Normal file
14420
xml/event/promotion_ovaltine_school.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12893,20 +12893,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11293,20 +11293,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -8914,20 +8914,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8914,20 +8914,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12635,20 +12635,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -10782,20 +10782,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11346,20 +11346,7 @@ LIMENADE SODA" </Value>
|
|||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
14419
xml/event/promotion_red_string_of_fate.xml
Normal file
14419
xml/event/promotion_red_string_of_fate.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -11293,20 +11293,7 @@ LIMENADE SODA" </Value>
|
|||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12855,20 +12855,7 @@ LIMENADE SODA" </Value>
|
|||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -13140,20 +13140,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,79 +4,25 @@
|
|||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_cocoa_77_ignore.xml"
|
||||
|
||||
<Filename> ###normal_thai </Filename>
|
||||
<FilenamePress> ###normal_thai </FilenamePress>
|
||||
<FilenameDisable> ###normal_thai </FilenameDisable>
|
||||
<EventOnClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_x_taobin.xml"
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/cocoa77/cocoa77.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_x_taobin/pepsi_x_taobin.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/cocoa77/cocoa77.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
|
|
|
|||
|
|
@ -4,82 +4,12 @@
|
|||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<Filename> ###normal_thai </Filename>
|
||||
<FilenamePress> ###press_thai </FilenamePress>
|
||||
<FilenameDisable> ###disable_thai </FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/strawberry_series/strawberry_series.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/strawberry_series/strawberry_series.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
|
|||
|
|
@ -32,46 +32,9 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_thick_tea_by_brewer.xml"
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/thick_tea_by_brewer/thick_tea_by_brewer.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/thick_tea_by_brewer/thick_tea_by_brewer.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
|
|
@ -81,4 +44,4 @@
|
|||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
</EventUnitTest2>
|
||||
|
|
@ -3,46 +3,13 @@
|
|||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
<Filename> ###normal_thai </Filename>
|
||||
<FilenamePress> ###normal_thai </FilenamePress>
|
||||
<FilenameDisable> ###normal_thai </FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
</Button>
|
||||
|
|
@ -17193,21 +17193,7 @@ LIMENADE SODA" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12603,20 +12603,7 @@ Water" </Value>
|
|||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,10 @@ DEBUGVAR PayOfflineMode
|
|||
DEBUGVAR CocktailShow
|
||||
DEBUGVAR OpenFromPageBoard
|
||||
|
||||
DEBUGVAR ThickTeaByBrewerBanner
|
||||
DEBUGVAR ThickTeaByBrewerPro
|
||||
DEBUGVAR StrawberrySeriesPro
|
||||
DEBUGVAR KingdomThaiTeaPro
|
||||
DEBUGVAR PepsiXTaobinPro
|
||||
DEBUGVAR MatchaEveryDayPro
|
||||
DEBUGVAR OreoVolcanoPro
|
||||
|
||||
Var PromotionState1 = "Invisible"
|
||||
Var PromotionState2 = "Invisible"
|
||||
|
|
@ -26,19 +27,53 @@ Else
|
|||
Var CountEnablePromotion = 0
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
|
||||
; zone promote
|
||||
If taobin_nopro = "true" Then
|
||||
|
||||
|
||||
If StrawberrySeriesPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_strawberry_series.xml"
|
||||
Else
|
||||
If ThickTeaByBrewerBanner = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_thick_tea_by_brewer.xml"
|
||||
EndIf
|
||||
|
||||
If PepsiXTaobinPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_pepsi_x_taobin.xml"
|
||||
EndIf
|
||||
|
||||
If KingdomThaiTeaPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_kingdom_thai_tea.xml"
|
||||
Var PromotionState1 = "Enable"
|
||||
|
||||
If PepsiXTaobinPro = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_kingdom_thai_tea_and_pepsi_x_taobin.xml"
|
||||
EndIf
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_kingdom_thai_tea_and_matcha_every_day.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_matcha_every_day.xml"
|
||||
EndIf
|
||||
|
||||
If OreoVolcanoPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_oreo_volcano.xml"
|
||||
Var PromotionState1 = "Enable"
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If CatalogLayoutV3 = 1 Then
|
||||
SAVELOG " CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/v3/event/script_open_promotion_v3.ev"
|
||||
EndIf
|
||||
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
|
||||
DEBUGVAR BigButtonEnable
|
||||
|
||||
OpenInst 2 FileRecommendToOpen
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
Var ChildrenFree = 0
|
||||
|
||||
Var KBankCashlessMachine = 0
|
||||
|
||||
Var OreoDueEnable = 0
|
||||
Var OreoForFreeEnable = 0
|
||||
Var SoundBackToSchoolEnable = 0
|
||||
|
|
@ -32,127 +34,6 @@ Var MomDayEnable = 0
|
|||
; Enable app game
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
|
||||
; Enable pro Pepween
|
||||
Var PepweenEnable = 0
|
||||
|
||||
; Enable pro Tamatian. 16-30 Sep
|
||||
Var TamatianEnable = 0
|
||||
|
||||
; September 9 - 16
|
||||
Var MayDayRunEnable = 0
|
||||
|
||||
; Enable Milk Choice Vegan
|
||||
Var MilkChoiceVeganEnable = 0
|
||||
|
||||
|
||||
; Enable pro 15 THB, November 1 - 30
|
||||
Var pro15THBEnable = 0
|
||||
Var From15THBPro = 0
|
||||
|
||||
; Enable pro My Mint My Moment, December 1 - 31
|
||||
Var MyMintEnable = 0
|
||||
Var FromMyMintPro = 0
|
||||
|
||||
; Enable pro Rerun, Jan 22-26/29-31
|
||||
Var RerunProEnable = 0
|
||||
Var FromRerunPro = 0
|
||||
|
||||
; Enable pro Peach, Feb 1 - 13
|
||||
Var ProPeachEnable = 0
|
||||
|
||||
; Enable Bad valentine, Feb 14 - 29
|
||||
Var ProBadValentineEnable = 0
|
||||
Var FromBadValentinePro = 0
|
||||
|
||||
; Enable Pepsi Second Cup 30, Mar 1 - 17, but get discount code only 4-8 and 11-15 Mar
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var FromPepsiSecondCup30 = 0
|
||||
|
||||
; Enable Lipit Promotion, 18 Mar - 5 Apr
|
||||
Var LipitPro = 0
|
||||
Var FromLipitPro = 0
|
||||
Var LipitRewardOutOfStock = 0
|
||||
|
||||
; Enable Monday Banana Promotion, every Monday start 11 Mar - 19 Apr
|
||||
Var MondayBananaPro = 0
|
||||
Var FromMondayBananaPro = 0
|
||||
|
||||
; Enable Free Energy Drink, 18 Mar - 30 Apr
|
||||
Var FreeEnergyDrink = 0
|
||||
Var FromPowerUpPro = 0
|
||||
Var FreePowerup = "Invisible"
|
||||
|
||||
; Enable Tea Time, 13 - 30 Apr
|
||||
Var TeaTimePro = 0
|
||||
Var FromTeaTimePro = 0
|
||||
|
||||
; Enable Free Fire, 1 - 30 Apr
|
||||
Var FreeFirePro = 0
|
||||
|
||||
|
||||
; Enable Energy Drink 1 Bath, 1 May - 31 May
|
||||
Var EnergyDrink1BathPro = 0
|
||||
Var FromEnergyDrink1BathPro = 0
|
||||
|
||||
; Enable Coffee Drink 1 Bath, 1 May - 31 May
|
||||
Var CoffeeDrink1BathPro = 0
|
||||
Var FromCoffeeDrink1BathPro = 0
|
||||
|
||||
; Enable Wednesday melon, 15, 22, 29 May - 5, 12 June
|
||||
Var WednesdayMelonPro = 0
|
||||
Var FromWednesdayMelonPro = 0
|
||||
|
||||
; Enable Nam Hom Coconut, 3 - 21 June
|
||||
Var NamHomCoconutPro = 0
|
||||
Var FromNamHomCoconutPro = 0
|
||||
Var NamHomCoconutRewardOutOfStock = 0
|
||||
|
||||
; Enable Cocoa 7.7 promotion, 7 - 9 July
|
||||
Var Cocoa77Pro = 0
|
||||
Var FromCocoa77Pro = 0
|
||||
|
||||
; Enable Passion Mint promotion, 15 - 17 Jul
|
||||
Var PassionMintPro = 0
|
||||
Var FromPassionMintPro = 0
|
||||
|
||||
; Enable 7UpLuckyDrawX2 promotion, 22 Jul - 9 Aug
|
||||
Var 7UpLuckyDrawX2Pro = 0
|
||||
|
||||
; Enable Mom Cocoa promotion, 10 Aug - 16 Aug
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var FromMomCocoaPro = 0
|
||||
Var Seeker.BuyMomCocoaProFlag = 0
|
||||
|
||||
; Enable Robinson Beauty promotion, 9 - 30 Sep
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var FromRobinsonBeautyPro = 0
|
||||
|
||||
; Enable Jemila promotion, 1 - 25 Oct
|
||||
Var JemilaPro = 0
|
||||
Var FromJemilaPro = 0
|
||||
Var JemilaRewardOutOfStock = 0
|
||||
|
||||
; Halloween promotion, 21 Oct - 3 Nov
|
||||
Var HalloweenPro = 0
|
||||
Var FromHalloweenPro = 0
|
||||
|
||||
; Weekday discount, 4 Nov - 30 Nov
|
||||
Var WeekdayDiscountPro = 0
|
||||
Var WeekdayDiscountProEventOn = 0
|
||||
Var FromWeekdayDiscountProEventOn = 0
|
||||
|
||||
; Oreo 11.11 discount,. 11 - 13 Nov
|
||||
Var OreoDiscount11Pro = 0
|
||||
Var FromOreoDiscount11Pro = 0
|
||||
Var Seeker.BuyOreo11ProFlag = 0
|
||||
Var FromBeforeGoToOreo = 0
|
||||
|
||||
; Happy trios, 21 - 30 Nov
|
||||
Var HappyTriosPro = 0
|
||||
Var FromHappyTriosPro = 0
|
||||
|
||||
; Jemila Topping Free every Wednesday, start 20 Nov
|
||||
Var JemilaToppingFlag = 0
|
||||
Var JemilaToppingFreeFlag = 0
|
||||
|
|
@ -175,9 +56,40 @@ Var ThickTeaByBrewerBanner = 0
|
|||
Var StrawberrySeriesPro = 0
|
||||
Var StrawberrySeriesMenu = 0
|
||||
|
||||
; Ovaltine school, 1 - 28 Feb
|
||||
Var OvaltineSchoolPro = 0
|
||||
|
||||
; Red string of fate, 10 - 23 Feb
|
||||
Var RedStringOfFatePro = 0
|
||||
|
||||
; Swensen, 21 Feb - 20 Mar
|
||||
Var SwensenPro = 0
|
||||
|
||||
; Coconut Milk, 1 Mar - 31 Mar
|
||||
Var CoconutMilkPro = 0
|
||||
|
||||
; Kingdom of Thai tea, 1 Apr - 30 Apr
|
||||
Var KingdomThaiTeaPro = 0
|
||||
|
||||
; Pepsi x Taobin, 7 - 27 Apr
|
||||
Var PepsiXTaobinPro = 0
|
||||
|
||||
; 3 dialects sound campaign, 1 Apr - 30 Apr
|
||||
Var SongkranSoundCampaign = 0
|
||||
|
||||
; Boost Energy drink, 1 - 11 May
|
||||
Var BoostEnergyPro = 0
|
||||
|
||||
; Matcha every day, 1 - 31 May
|
||||
Var MatchaEveryDayPro = 0
|
||||
|
||||
; Oreo volcano, 1 - 31 May
|
||||
Var OreoVolcanoPro = 0
|
||||
|
||||
Var NewCollectPoint = 1
|
||||
Var PayMentCodeShouldCollectPromotionPoint = 0
|
||||
Var NotCollectPointPromotion = 0
|
||||
Var PaymentCodeShouldCollectPromotionPoint = 0
|
||||
|
||||
Var CleanFeedbackFlag = 0
|
||||
|
||||
Var NewFlowPaymentCode = 0
|
||||
Var New_Payment = 0
|
||||
|
|
@ -186,151 +98,50 @@ Var XMLLiveInfoEnable = 0
|
|||
|
||||
Var LuckyDrawCampaign = 0
|
||||
|
||||
If SystemDateMonthInt = 1 Then
|
||||
Var LuckyDrawCampaign = 1
|
||||
|
||||
If SystemDateDayInt <= 6 Then
|
||||
Var ThickTeaByBrewerPro = 1
|
||||
Var ThickTeaByBrewerBanner = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 7 Then
|
||||
Var StrawberrySeriesPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 7 Then
|
||||
If SystemDateDayInt <= 10 Then
|
||||
Var NamHomCoconutPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 7 Then
|
||||
If SystemDateDayInt <= 9 Then
|
||||
Var Cocoa77Pro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 15 Then
|
||||
If SystemDateDayInt <= 17 Then
|
||||
Var PassionMintPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 22 Then
|
||||
Var 7UpLuckyDrawX2Pro = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt >= 7 Then
|
||||
Var LuckyDrawCampaign = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt <= 9 Then
|
||||
Var 7UpLuckyDrawX2Pro = 1
|
||||
EndIf
|
||||
Var AdvertisePepsiAtTheSun = 0
|
||||
|
||||
If SystemDateMonthInt = 3 Then
|
||||
If SystemDateDayInt >= 10 Then
|
||||
Var MomCocoaPro = 1
|
||||
Var SwensenPro = 1
|
||||
Var MatchaEveryDayPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 12 Then
|
||||
Var MomCocoaProDiscountEnable = 1
|
||||
Var CoconutMilkPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 4 Then
|
||||
If SystemDateDayInt < 7 Then
|
||||
Var AdvertisePepsiAtTheSun = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 7 Then
|
||||
If SystemDateDayInt <= 27 Then
|
||||
Var PepsiXTaobinPro = 1
|
||||
Else
|
||||
Var MatchaEveryDayPro = 1
|
||||
EndIf
|
||||
Else
|
||||
Var MatchaEveryDayPro = 1
|
||||
EndIf
|
||||
|
||||
Var KingdomThaiTeaPro = 1
|
||||
Var SongkranSoundCampaign = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 3 Then
|
||||
If SystemDateDayInt = 31 Then
|
||||
Var AdvertisePepsiAtTheSun = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 5 Then
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
Var OreoVolcanoPro = 1
|
||||
Var MatchaEveryDayPro = 1
|
||||
|
||||
If SystemDateDayInt <= 6 Then
|
||||
Var MomCocoaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 9 Then
|
||||
Var RobinsonBeautyPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
If SystemDateDayInt <= 25 Then
|
||||
Var JemilaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 21 Then
|
||||
Var HalloweenPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 11 Then
|
||||
If SystemDateDayInt <= 3 Then
|
||||
Var HalloweenPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 4 Then
|
||||
If SystemDateDayInt <= 8 Then
|
||||
Var WeekdayDiscountPro = 1
|
||||
EndIf
|
||||
If SystemDateDayInt <= 11 Then
|
||||
Var BoostEnergyPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 11 Then
|
||||
If SystemDateDayInt <= 15 Then
|
||||
Var WeekdayDiscountPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 18 Then
|
||||
If SystemDateDayInt <= 22 Then
|
||||
Var WeekdayDiscountPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 25 Then
|
||||
If SystemDateDayInt <= 29 Then
|
||||
Var WeekdayDiscountPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 20 Then
|
||||
Var JemilaToppingFlag = 1
|
||||
Var SugarZeroCalFreeFlag = 1
|
||||
|
||||
If SystemDateDayOfWeek = "Wednesday" Then
|
||||
Var JemilaToppingFreeFlag = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 21 Then
|
||||
Var HappyTriosPro = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If WeekdayDiscountPro = 1 Then
|
||||
If SystemTimeHourInt >= 16 Then
|
||||
If SystemTimeHourInt < 22 Then
|
||||
Var WeekdayDiscountProEventOn = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 11 Then
|
||||
Var OreoDiscount11Pro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 12 Then
|
||||
|
||||
Var WinterWonderPro = 1
|
||||
Var ThickTeaByBrewerPro = 1
|
||||
|
||||
If SystemDateDayInt >= 16 Then
|
||||
Var ThickTeaByBrewerBanner = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -340,82 +151,63 @@ If SystemDateDayOfWeek = "Wednesday" Then
|
|||
EndIf
|
||||
|
||||
|
||||
Var ToppingNewUINewSystem = 0
|
||||
|
||||
If BoxID = 201193 Then
|
||||
Var BoostEnergyPro = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 105005 Then
|
||||
Var NewFlowPaymentCode = 1
|
||||
Var New_Payment = 1
|
||||
Var 12Day12MenuPro = 0
|
||||
;Var WinterWonderPro = 0
|
||||
;Var ThickTeaByBrewerBanner = 0
|
||||
Var CleanFeedbackFlag = 1
|
||||
Var StrawberrySeriesPro = 1
|
||||
Var StrawberrySeriesMenu = 1
|
||||
|
||||
Var SwensenPro = 1
|
||||
|
||||
Var JemilaToppingFlag = 1
|
||||
Var JemilaToppingFreeFlag = 1
|
||||
Var SugarZeroCalFreeFlag = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 176757 Then
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var WeekdayDiscountPro = 1
|
||||
Var WeekdayDiscountProEventOn = 1
|
||||
Var OreoDiscount11Pro = 1
|
||||
|
||||
If BoxID = 201714 Then
|
||||
|
||||
EndIf
|
||||
|
||||
If BoxID = 201729 Then
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var JemilaToppingFlag = 1
|
||||
Var JemilaToppingFreeFlag = 1
|
||||
|
||||
|
||||
Var 12Day12MenuPro = 0
|
||||
Var WinterWonderPro = 1
|
||||
Var ThickTeaByBrewerPro = 1
|
||||
Var ThickTeaByBrewerBanner = 1
|
||||
|
||||
EndIf
|
||||
|
||||
If BoxID = 201714 Then
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
|
||||
Var JemilaToppingFlag = 1
|
||||
Var ThickTeaByBrewerPro = 1
|
||||
Var ThickTeaByBrewerBanner = 1
|
||||
Var KingdomThaiTeaPro = 1
|
||||
Var SongkranSoundCampaign = 1
|
||||
Var NewMatchaPremiumX3 = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var JemilaPro = 1
|
||||
|
||||
Var JemilaToppingFlag = 1
|
||||
|
||||
EndIf
|
||||
|
||||
If BoxID = 172644 Then
|
||||
Var MomCocoaPro = 0
|
||||
Var MomCocoaProDiscountEnable = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var WeekdayDiscountPro = 0
|
||||
Var WeekdayDiscountProEventOn = 0
|
||||
Var OreoDiscount11Pro = 0
|
||||
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
|
||||
Var 12Day12MenuPro = 0
|
||||
Var WinterWonderPro = 1
|
||||
Var ThickTeaByBrewerPro = 1
|
||||
|
||||
Var JemilaToppingFlag = 1
|
||||
If BoxID = 123456 Then
|
||||
Var ToppingNewUINewSystem = 0
|
||||
Var BoostEnergyPro = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ConfigNumer
|
||||
If ConfigNumer >= 1762 Then
|
||||
Var ToppingNewUINewSystem = 1
|
||||
EndIf
|
||||
|
||||
If ConfigNumer >= 1763 Then
|
||||
Var ToppingNewUINewSystemStep2 = 1
|
||||
EndIf
|
||||
|
||||
; override again
|
||||
|
||||
Var CleanFeedbackFlag = 1
|
||||
Var XMLLiveInfoEnable = 1
|
||||
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
|
@ -455,109 +247,40 @@ EndIf
|
|||
STRCONTAIN "taobin_nopro" XMLProfile taobin_nopro
|
||||
|
||||
If taobin_nopro = "true" Then
|
||||
Var MilkChoiceVeganEnable = 0
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
Var TamatianEnable = 0
|
||||
Var MayDayRunEnable = 0
|
||||
Var MomDayEnable = 0
|
||||
Var PepsiProEnable = 0
|
||||
Var PepsiPromoteVideo = 0
|
||||
Var PepsiProCodeEnable = 0
|
||||
Var MysteryProEnable = 0
|
||||
Var PepweenEnable = 0
|
||||
Var RerunProEnable = 0
|
||||
Var ProPeachEnable = 0
|
||||
Var ProBadValentineEnable = 0
|
||||
Var FreeEnergyDrink = 0
|
||||
Var MondayBananaPro = 0
|
||||
Var FreeFirePro = 0
|
||||
Var TeaTimePro = 0
|
||||
|
||||
Var EnergyDrink1BathPro = 0
|
||||
Var CoffeeDrink1BathPro = 0
|
||||
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var FromPepsiSecondCup30 = 0
|
||||
|
||||
Var LipitPro = 0
|
||||
|
||||
Var WednesdayMelonPro = 0
|
||||
Var NamHomCoconutPro = 0
|
||||
|
||||
Var Cocoa77Pro = 0
|
||||
Var 7UpLuckyDrawX2Pro = 0
|
||||
Var PassionMintPro = 0
|
||||
Var MomCocoaPro = 0
|
||||
Var RobinsonBeautyPro = 0
|
||||
Var JemilaPro = 0
|
||||
Var HalloweenPro = 0
|
||||
Var WeekdayDiscountPro = 0
|
||||
Var OreoDiscount11Pro = 0
|
||||
Var HappyTriosPro = 0
|
||||
Var 12Day12MenuPro = 0
|
||||
|
||||
Var HappyTriosPro = 0
|
||||
|
||||
Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
|
||||
|
||||
EndIf
|
||||
|
||||
; zone block logic follow ingredent
|
||||
|
||||
If CoconutSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
If BananaSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var NamHomCoconutPro = 0
|
||||
EndIf
|
||||
Var CoconutMilkPro = 0
|
||||
EndIf
|
||||
|
||||
If MelonSyrupEnable = "true" Then
|
||||
If MatchaPowderEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var WednesdayMelonPro = 0
|
||||
Var MatchaEveryDayPro = 0
|
||||
EndIf
|
||||
|
||||
If CocoaPowderEnable = "true" Then
|
||||
DEBUGVAR HaveIngredientOvaltine
|
||||
If HaveIngredientOvaltine = "true" Then
|
||||
|
||||
Else
|
||||
Var Cocoa77Pro = 0
|
||||
Var MomCocoaPro = 0
|
||||
Var OvaltineSchoolPro = 0
|
||||
Var RedStringOfFatePro = 0
|
||||
EndIf
|
||||
|
||||
If 7UpSyrupEnable = "true" Then
|
||||
If PepsiHighYSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
If PepsiHighYSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var HalloweenPro = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MintSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var PassionMintPro = 0
|
||||
EndIf
|
||||
|
||||
|
||||
If CollagenPowderEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var JemilaPro = 0
|
||||
EndIf
|
||||
|
||||
|
||||
If OreoEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var OreoDiscount11Pro = 0
|
||||
Var HappyTriosPro = 0
|
||||
Var PepsiXTaobinPro = 0
|
||||
EndIf
|
||||
|
||||
DEBUGVAR OvaltineSchoolPro
|
||||
DEBUGVAR RedStringOfFatePro
|
||||
|
||||
Var CurrentMainVideoTemp = 0
|
||||
|
||||
|
|
@ -577,54 +300,8 @@ EndIf
|
|||
DEBUGVAR OreoDiscount11Pro
|
||||
|
||||
; Control collect promotion point behavior
|
||||
Var New_Payment = 0
|
||||
Var NewFlowPaymentCode = 0
|
||||
|
||||
If BoxID = 105005 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 173249 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 172053 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 200001 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
If BoxID = 175689 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
If BoxID = 201729 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 200000 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 176757 Then
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
EndIf
|
||||
|
||||
; open now
|
||||
; open away
|
||||
Var New_Payment = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
|
||||
|
|
@ -633,12 +310,11 @@ If BoxID = 176757 Then
|
|||
Var SaveOrderNameAndPictureEnable = 1
|
||||
EndIf
|
||||
|
||||
; Check POS machine flag
|
||||
Var ConnectWithPOSMachine = 0
|
||||
DEBUGVAR SystemDateDayOfWeek
|
||||
|
||||
READ_FILE "/mnt/sdcard/coffeevending/app_manager/app_list/king_power_service/enable" POSMachineFlag
|
||||
If POSMachineFlag = 1 Then
|
||||
Var ConnectWithPOSMachine = 1
|
||||
READ_FILE "/mnt/sdcard/coffeevending/kbank_cashless_machine" KBankCashlessMachineContent
|
||||
DEBUGVAR KBankCashlessMachineContent
|
||||
If KBankCashlessMachineContent = 1 Then
|
||||
Var KBankCashlessMachine = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR SystemDateDayOfWeek
|
||||
DEBUGVAR KBankCashlessMachine
|
||||
|
|
@ -11750,20 +11750,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11751,20 +11751,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -4278,20 +4278,7 @@ SMOOTHIE" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -4281,20 +4281,7 @@ SMOOTHIE" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12567,20 +12567,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11744,20 +11744,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -11744,20 +11744,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12248,20 +12248,7 @@ Water" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -12497,20 +12497,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -4200,20 +4200,7 @@ SMOOTHIE" </Value>
|
|||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -5173,13 +5173,13 @@ SMOOTHIE" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<X> btnRemoveCupX </X>
|
||||
<Y> btnRemoveCupYNotPageBoard </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<Filename> bnRemoveCup </Filename>
|
||||
<Filename> bpRemoveCup </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
|
|
|||
|
|
@ -4141,13 +4141,13 @@ SMOOTHIE" </Value>
|
|||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<X> btnRemoveCupX </X>
|
||||
<Y> btnRemoveCupYNotPageBoard </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<Filename> bnRemoveCup </Filename>
|
||||
<Filename> bpRemoveCup </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
|
|
|||
|
|
@ -5174,13 +5174,13 @@ SMOOTHIE" </Value>
|
|||
</EventUnitTest2>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<X> btnRemoveCupX </X>
|
||||
<Y> btnRemoveCupYNotPageBoard </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<Filename> bnRemoveCup </Filename>
|
||||
<Filename> bpRemoveCup </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
|
|
|||
34
xml/features/alert_sms/check_disable.ev
Normal file
34
xml/features/alert_sms/check_disable.ev
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
READ_FILE "/mnt/sdcard/coffeevending/lock_sms" EnableSMSDrinkReady
|
||||
READ_FILE "/mnt/sdcard/coffeevending/current_alert_times" AlertTime
|
||||
|
||||
If EnableSMSDrinkReady = "" Then
|
||||
; first-time?
|
||||
Var EnableSMSDrinkReady = "true"
|
||||
Else
|
||||
If EnableSMSDrinkReady = "1" Then
|
||||
Var EnableSMSDrinkReady = "false"
|
||||
Else
|
||||
Var EnableSMSDrinkReady = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If AlertTime = "" Then
|
||||
Var AlertTime = 0
|
||||
EndIf
|
||||
|
||||
INT AlertTime
|
||||
|
||||
If AlertTime >= 3 Then
|
||||
|
||||
; lock-sms-feature
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/lock_sms" "1"
|
||||
Var EnableSMSDrinkReady = "false"
|
||||
|
||||
EndIf
|
||||
|
||||
;Var EnableSMSDrinkReady = "true"
|
||||
|
||||
DEBUGVAR EnableSMSDrinkReady
|
||||
DEBUGVAR LastSmsUUID
|
||||
DEBUGVAR NotifyRet
|
||||
DEBUGVAR NotifyJobError
|
||||
564
xml/features/alert_sms/page_enter_num.lxml
Normal file
564
xml/features/alert_sms/page_enter_num.lxml
Normal file
|
|
@ -0,0 +1,564 @@
|
|||
<Popup>
|
||||
<Width> 1080</Width>
|
||||
<Height> 1920 </Height>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
|
||||
Var Tel_Confirm_State = "Invisible"
|
||||
Var ShowTextNumber = "Enable"
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = ""
|
||||
Var TelephoneNumberX = ""
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collect_point1_en"
|
||||
;Play "ROOT/taobin_project/sound_eng/Reward_final.mp3"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/collect_point1"
|
||||
;Play "ROOT/taobin_project/sound_thai/dontforget_number.mp3"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collect_point1_mmr"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "MSC" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collect_point1_msc"
|
||||
EndIf
|
||||
|
||||
Var CurrentAlertName = AlertProductName[LanguageShowByIndex]
|
||||
Var CurrentAlertProductCode = ""
|
||||
|
||||
; concat-all
|
||||
If AlertProductCode[0] = "-" Then
|
||||
|
||||
Else
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + AlertProductCode[0]
|
||||
|
||||
EndIf
|
||||
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + ","
|
||||
|
||||
If AlertProductCode[1] = "-" Then
|
||||
|
||||
Else
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + AlertProductCode[1]
|
||||
|
||||
EndIf
|
||||
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + ","
|
||||
|
||||
If AlertProductCode[2] = "-" Then
|
||||
|
||||
Else
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + AlertProductCode[2]
|
||||
|
||||
EndIf
|
||||
|
||||
Var CurrentAlertProductCode = CurrentAlertProductCode + ","
|
||||
|
||||
|
||||
DEBUGVAR CurrentAlertName
|
||||
DEBUGVAR CurrentAlertProductCode
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
If TelNumLen > 0 Then
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Timeout
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 30 Then
|
||||
TabMenuVisibleInst 99
|
||||
|
||||
RootLayoutVisible 13 "hide"
|
||||
|
||||
Var AlertSMSButtonPause = "false"
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
|
||||
EndIf
|
||||
|
||||
If Timeout = 18 Then
|
||||
Var date_time_str = ""
|
||||
STRDATETIME date_time_str
|
||||
Var date_time_str = "/mnt/sdcard/scn_" + date_time_str
|
||||
Var date_time_str = date_time_str + ".png"
|
||||
DEBUGVAR date_time_str
|
||||
SCREEN_CAP date_time_str
|
||||
EndIf
|
||||
|
||||
If Timeout = 9 Then
|
||||
;RefreshAll
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 333 </X>
|
||||
<Y> 1086 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_1.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_1.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "1"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 477 </X>
|
||||
<Y> 1086 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_2.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_2.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "2"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 620 </X>
|
||||
<Y> 1086 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_3.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_3.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "3"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 333 </X>
|
||||
<Y> 1230 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_4.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_4.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "4"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 477 </X>
|
||||
<Y> 1230 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_5.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_5.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "5"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 620 </X>
|
||||
<Y> 1230 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_6.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_6.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "6"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 333 </X>
|
||||
<Y> 1373 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_7.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_7.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "7"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 477 </X>
|
||||
<Y> 1373 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_8.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_8.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "8"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 620 </X>
|
||||
<Y> 1373 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_9.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_9.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "9"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 477 </X>
|
||||
<Y> 1517 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_0.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_0.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var TelephoneNumber = TelephoneNumber + "0"
|
||||
Trim TelephoneNumber MaxPhoneNumber
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen >= MinPhoneNumber Then
|
||||
Var Tel_Confirm_State = "Enable"
|
||||
EndIf
|
||||
|
||||
Var ShowErrorText = "Invisible"
|
||||
Var ShowTextNumber = "Invisible"
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 620 </X>
|
||||
<Y> 1517 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_back-1.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_back-1.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Trim TelephoneNumber -1
|
||||
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
If TelNumLen < 10 Then
|
||||
Var Tel_Confirm_State = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
If TelNumLen = 0 Then
|
||||
Var ShowTextNumber = "Enable"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 873 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 62 </Size>
|
||||
<Font> RobotoBlack </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TelephoneNumber </Value>
|
||||
<Format> Telnum-mask-1 </Format>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 218 </X>
|
||||
<Y> 1671 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_cancel2.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_cancel2.png" </FilenamePress>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
TabMenuVisibleInst 99
|
||||
|
||||
RootLayoutVisible 13 "hide"
|
||||
|
||||
Var AlertSMSButtonPause = "false"
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 577 </X>
|
||||
<Y> 1671 </Y>
|
||||
<State> Tel_Confirm_State </State>
|
||||
<Filename> Var( DirImage + "/bn_positive.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_positive.png") </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/bn_positive.png") </FilenameDisable>
|
||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
|
||||
|
||||
Var Tel2DFlag = 0
|
||||
|
||||
TRY "ROOT/taobin_project/xml/verify_number.ev"
|
||||
|
||||
|
||||
If Tel2DFlag = 1 Then
|
||||
|
||||
|
||||
Var StepGetPoint = 1
|
||||
|
||||
Var PdpaAsk = 0
|
||||
|
||||
Var OperatorTemp = ""
|
||||
Var CreditAmount = 0
|
||||
Var OperatorStatus = ""
|
||||
Var AccountType = ""
|
||||
|
||||
SAVELOG "report_alert_sms"
|
||||
Var TelephoneNumberX = TelephoneNumber
|
||||
;GetAccInfo TelephoneNumber OperatorTemp CreditAmount OperatorStatus AccountType GetScore tc
|
||||
DEBUGVAR TelephoneNumber
|
||||
|
||||
; do-smth
|
||||
SAVELOG "Open show send sms for menu name"
|
||||
DEBUGVAR CurrentAlertName
|
||||
DEBUGVAR CurrentAlertProductCode
|
||||
|
||||
Var AlertTime = AlertTime + 1
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/current_alert_times" AlertTime
|
||||
|
||||
TabMenuVisibleInst 99
|
||||
|
||||
RootLayoutVisible 13 "hide"
|
||||
|
||||
Var AlertSMSButtonPause = "false"
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
OpenInst 2 "ROOT/taobin_project/xml/features/alert_sms/page_send_sms.lxml"
|
||||
|
||||
|
||||
Else
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/collectiing_en"
|
||||
Else
|
||||
Var DirImage2 = "ROOT/taobin_project/image/collectiing"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/collectiing_mmr"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "MSC" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/collectiing_msc"
|
||||
EndIf
|
||||
|
||||
Var text_show_error = DirImage2 + "/text_show_error5.png"
|
||||
|
||||
Var ShowErrorText = "Enable"
|
||||
;Var TelephoneNumber = ""
|
||||
Var Tel_Confirm_State = "Invisible"
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; title text
|
||||
; TODO-will-apply-lang
|
||||
<Image>
|
||||
<X> 188 </X>
|
||||
<Y> 699 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/feature/alert_sms/text_1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
; Border Edit
|
||||
<Image>
|
||||
<X> 217 </X>
|
||||
<Y> 866 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collect_point1/img3.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 157 </X>
|
||||
<Y> 868 </Y>
|
||||
<State> ShowTextNumber </State>
|
||||
<Filename> Var( DirImage + "/text_edit.png") </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 236 </X>
|
||||
<Y> 699 </Y>
|
||||
<State> eval(
|
||||
If FromProThaiTea = 1 Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
If FromProYuzu = 1 Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> Var( DirImage + "/edit.png") </Filename>
|
||||
</Image>
|
||||
|
||||
</Popup>
|
||||
91
xml/features/alert_sms/page_send_sms.lxml
Normal file
91
xml/features/alert_sms/page_send_sms.lxml
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
;<Refresh> "Partial" </Refresh>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR CurrentAlertName
|
||||
DEBUGVAR CurrentAlertProductCode
|
||||
DEBUGVAR TelephoneNumberX
|
||||
|
||||
NotifyCustomerMenuReady TelephoneNumberX CurrentAlertProductCode CurrentAlertName
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<EventActionOk>
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
</EventActionError>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 10 Then
|
||||
TabMenuVisibleInst 99
|
||||
|
||||
RootLayoutVisible 13 "hide"
|
||||
|
||||
Var AlertSMSButtonPause = "false"
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
; ---------------------
|
||||
|
||||
<Image>
|
||||
<X> 189 </X>
|
||||
<Y> 1004 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/feature/alert_sms/Success.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 248 </X>
|
||||
<Y> 1600 </Y>
|
||||
<Filename> Var( DirImage + "/bn_back3.png" ) </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_back3.png" )</FilenamePress>
|
||||
<EventClick>
|
||||
TabMenuVisibleInst 99
|
||||
|
||||
RootLayoutVisible 13 "hide"
|
||||
|
||||
Var AlertSMSButtonPause = "false"
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
</Popup>
|
||||
4
xml/features/alert_sms/reset_lock.ev
Normal file
4
xml/features/alert_sms/reset_lock.ev
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
; do-not-call
|
||||
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/lock_sms" "0"
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/current_alert_times" 0
|
||||
|
|
@ -326,7 +326,7 @@
|
|||
if multi_pro_gen:
|
||||
out_xml('<Max> 4 </Max>\r\n')
|
||||
elif recommend_page:
|
||||
out_xml('<Max> 12 </Max>\r\n')
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
|
|
@ -337,8 +337,8 @@
|
|||
out_xml('<Column> 2 </Column>\r\n')
|
||||
else:
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
if recommend_page:
|
||||
out_xml(';layout_mode\r\n')
|
||||
#if recommend_page:
|
||||
out_xml(';layout_mode\r\n')
|
||||
out_xml('<Script>\r\n')
|
||||
|
||||
if "all" in verbose:
|
||||
|
|
@ -346,8 +346,8 @@
|
|||
|
||||
out_xml('\t\tVar block_index_override = 0\r\n')
|
||||
out_xml('\t\tVar block_index_move = 0\r\n')
|
||||
if recommend_page:
|
||||
out_xml('\t\t;banner_shifting\r\n')
|
||||
#if recommend_page:
|
||||
out_xml('\t\t;banner_shifting\r\n')
|
||||
|
||||
out_xml('</Script>\r\n')
|
||||
|
||||
|
|
@ -393,17 +393,19 @@
|
|||
str_con_var += spl[6] + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
try:
|
||||
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', spl[12].strip()):
|
||||
str_con += f'DateTimeStart="{spl[12].strip()}",'
|
||||
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', spl[13].strip()):
|
||||
str_con += f'DateTimeEnd="{spl[13].strip()}",'
|
||||
|
||||
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', spl[12].strip()):
|
||||
str_con += f'DateTimeStart="{spl[12].strip()}",'
|
||||
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', spl[13].strip()):
|
||||
str_con += f'DateTimeEnd="{spl[13].strip()}",'
|
||||
if re.match(r'^\w.*', spl[14].strip()):
|
||||
str_con += f'Var={spl[14].strip()},'
|
||||
|
||||
if re.match(r'^\w.*', spl[14].strip()):
|
||||
str_con += f'Var={spl[14].strip()},'
|
||||
|
||||
if recommend_page:
|
||||
str_con += "Disable=Invisible,"
|
||||
if recommend_page:
|
||||
str_con += "Disable=Invisible,"
|
||||
except Exception:
|
||||
print("ProductCode = " + spl[4] + " Ignore")
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
||||
|
|
@ -552,18 +554,45 @@
|
|||
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[5].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[4].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[6].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
if len(spl) > 15:
|
||||
try:
|
||||
present = int(spl[15].strip())
|
||||
except:
|
||||
present = 0
|
||||
|
||||
if present == 3:
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[6] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[5] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[4] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[5] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[4] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[6] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[5].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[4].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[6].replace("-alter", "") +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
|
|
@ -1084,6 +1113,9 @@
|
|||
###############################################################################
|
||||
if "all" in verbose:
|
||||
print("sp[2]" + spl[2])
|
||||
if( len( spl) < 10):
|
||||
print(list(map(str, spl)))
|
||||
return
|
||||
out_xml( '\t; '+ spl[8] + ' ' + spl[9] + ' ' + spl[10]+ ' \r\n')
|
||||
if spl[8] != '-' or spl[9] != '-' or spl[10] != '-':
|
||||
menu_img = spl[7]
|
||||
|
|
@ -1246,19 +1278,44 @@
|
|||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
if len(spl) > 15:
|
||||
try:
|
||||
present = int(spl[15].strip())
|
||||
except:
|
||||
present = 0
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
if present == 3:
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
SAVELOG "Call coffee.ev"
|
||||
TabMenuVisibleInst 2
|
||||
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/page_instance2.xml"
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,302 +0,0 @@
|
|||
if "v2" in param:
|
||||
print("V2 ignore")
|
||||
else:
|
||||
|
||||
#print("params=" + param)
|
||||
#print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
|
||||
file_recommend = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
|
||||
content_recommend = file_recommend.read()
|
||||
#print(file_xml.read())
|
||||
# ; include-file=dummy_layout.inc
|
||||
# file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
# file_inc_content = file_inc.read()
|
||||
file_inc1_content = ""
|
||||
|
||||
file_recommend.close()
|
||||
if "template1" in param:
|
||||
print("Here", param)
|
||||
file_inc1 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc1_content = file_inc1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template1", 'r')
|
||||
file_inc1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc1_content = file_inc1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc1_content = file_inc1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc1_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file1.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template2" in param:
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template2.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template2", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc2_content = file_inc2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick2.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc2_content = file_inc2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file2.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template3" in param:
|
||||
file_inc3 = open(directory_to_process + "/event/promotion_template3.inc", 'r')
|
||||
file_inc3_content = file_inc3.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template3", 'r')
|
||||
file_inc3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc3_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick3.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file3.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template4" in param:
|
||||
file_inc4 = open(directory_to_process + "/event/promotion_template4.inc", 'r')
|
||||
file_inc4_content = file_inc4.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template4", 'r')
|
||||
file_inc4_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc4_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc4_content = file_inc4_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick4.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc4_content = file_inc4_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc4_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc4_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml4_out = open(directory_to_process + "/event/out_put_file4.txt", 'r')
|
||||
file_xml4_out_content = file_xml4_out.read()
|
||||
file_xml4_out_content = file_xml4_out_content.strip()
|
||||
file_xml4_out_content = file_xml4_out_content.replace("\r", "")
|
||||
file_xml4_out_content = file_xml4_out_content.replace("\n", "")
|
||||
|
||||
file_xml4 = open(directory_to_process + file_xml4_out_content, 'w')
|
||||
file_xml4.write( content_data)
|
||||
file_xml4.close()
|
||||
|
||||
if "multi_promotion" in param:
|
||||
files = os.listdir(directory_to_process + "/event/")
|
||||
files = [f for f in files if f.startswith("multi_promotion_config")]
|
||||
for filename in files:
|
||||
recommend_multi_pro = open(directory_to_process + "/page_catalog_group_recommend_multi_pro.xml", "r")
|
||||
recommend_multi_pro_buff = recommend_multi_pro.read()
|
||||
recommend_multi_pro.close()
|
||||
|
||||
#read config
|
||||
multi_pro_config_file = open(directory_to_process + "/event/"+ filename)
|
||||
multi_pro_config = json.load(multi_pro_config_file)
|
||||
|
||||
index = 0
|
||||
promotion_name = []
|
||||
while index < len(multi_pro_config):
|
||||
promotion_config = multi_pro_config[index]
|
||||
index += 1
|
||||
|
||||
# add promotion name for create filename later
|
||||
promotion_name.append(promotion_config["name"])
|
||||
|
||||
#load template
|
||||
template_file = open(directory_to_process + promotion_config["template"])
|
||||
template = template_file.read()
|
||||
template_file.close()
|
||||
for key, value in promotion_config["config"].items():
|
||||
template = template.replace("###"+key, '"' + value.strip() + '"')
|
||||
|
||||
promotion_block_str = '\r\n<Block>\r\n\t<State> PromotionState{0} </State>\r\n\t<MarginLeft> 33 </MarginLeft>\r\n\t<MarginTop> 22 </MarginTop>\r\n\t<Width> 484 </Width>\r\n\t<Height> 602 </Height>\r\n'.format(index)
|
||||
|
||||
promotion_block_str += template
|
||||
promotion_block_str += '\r\n</Block>\r\n'
|
||||
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index), r'\1{0}\2'.format(promotion_block_str), recommend_multi_pro_buff)
|
||||
|
||||
if index == 2:
|
||||
# expend block3 to full width bottom
|
||||
inner_block = re.search(r'(?is);block{0}(.*);endblock{0}'.format(index+1), recommend_multi_pro_buff).group(1)
|
||||
inner_block = inner_block.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
|
||||
inner_block = inner_block.replace("<Max> 4 </Max>", "<Max> 8 </Max>", 1)
|
||||
inner_block = inner_block.replace("<Column> 2 </Column>", "<Column> 4 </Column>", 1)
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+1), r'\1{0}\2'.format(inner_block), recommend_multi_pro_buff)
|
||||
|
||||
# remove block4
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+2), r'\1\2', recommend_multi_pro_buff)
|
||||
|
||||
if index == 3:
|
||||
# create expand block
|
||||
inner_block2 = re.search(r'(?is)(;block{0}.*;endblock{0})'.format(index+1), recommend_multi_pro_buff).group(1)
|
||||
inner_block2 = inner_block2.replace(";block{0}".format(index+1), ";block{0}-expand".format(index+1))
|
||||
inner_block2 = inner_block2.replace(";endblock{0}".format(index+1), ";endblock{0}-expand".format(index+1))
|
||||
|
||||
inner_block2 = inner_block2.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
|
||||
# inner_block2 = inner_block2.replace("<State> \"Enable\" </State> ", "<State>\r\n\teval(\r\n\tIf PromotionState{0} = \"Enable\" Then\r\n\t\tVar block_expend_show = \"Invisible\"\r\n\tElse\r\n\t\tVar block_expend_show = \"Enable\"\r\n\tEndIf\r\n\tVar return = block_expend_show\r\n\t)\r\n</State>".format(index), 1)
|
||||
inner_block2 = inner_block2.replace("<Max> 4 </Max>", "<Max>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar max_count = 4\r\n\tElse\r\n\t\tVar max_count = 8\r\n\tEndIf\r\n\tVar return = max_count\r\n)\r\n</Max>", 1)
|
||||
inner_block2 = inner_block2.replace("<Column> 2 </Column>", "<Column>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar column_count = 2\r\n\tElse\r\n\t\tVar column_count = 4\r\n\tEndIf\r\n\tVar return = column_count\r\n)\r\n</Column>", 1)
|
||||
recommend_multi_pro_buff = re.sub(r'(?is);block{0}.*;endblock{0}'.format(index+1), inner_block2, recommend_multi_pro_buff)
|
||||
|
||||
|
||||
# create promotion file
|
||||
count_name_dict = {
|
||||
2: "double_",
|
||||
3: "triple_"
|
||||
}
|
||||
promo_file = open(directory_to_process + "/event/" + count_name_dict[len(multi_pro_config)]+ "promotion_" + "_and_".join(promotion_name) + ".xml", "w")
|
||||
promo_file.write(recommend_multi_pro_buff)
|
||||
promo_file.close()
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/promotion_energy_drink_1_bath.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/promotion_coffee_drink_1_bath.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/promotion_tea_time.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/promotion_wednesday_melon.xml
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
SAVELOG "Call health.ev"
|
||||
TabMenuVisibleInst 6
|
||||
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/page_instance2.xml"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
SAVELOG "Call kidandwhey.ev"
|
||||
TabMenuVisibleInst 5
|
||||
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/page_instance2.xml"
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
|
||||
#print("new menu_catalog_default_init catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_default_init.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
Var NextPage = "-"
|
||||
|
||||
DEBUGVAR ICE_PROCESS_STATUS
|
||||
DEBUGVAR ICE_PROCESS_TXT
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var showthaiText = "Invisible"
|
||||
Var showengText = "Enable"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_thai_lang_press_2.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_thai_lang_2.png"
|
||||
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
|
||||
InstanceSetString "ShowEng"
|
||||
Else
|
||||
Var showengText = "Invisible"
|
||||
Var showthaiText = "Enable"
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page3"
|
||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
||||
|
||||
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
InstanceSetString "ShowThai"
|
||||
EndIf
|
||||
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
Var ice_tab_process_show = "Enable"
|
||||
Var ice_show_open = ice_tab_text + ICE_PROCESS_TXT
|
||||
Else
|
||||
Var ice_tab_process_show = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
; SpiralOnline
|
||||
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
|
||||
Var Menu1Selected2 = "Invisible"
|
||||
Var Menu2Selected2 = "Invisible"
|
||||
Var Menu3Selected2 = "Invisible"
|
||||
Var Menu4Selected2 = "Invisible"
|
||||
|
||||
Var Menu6Selected2 = "Invisible"
|
||||
Var Menu7Selected2 = "Invisible"
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
Var Menu11Selected2 = "Invisible"
|
||||
|
||||
Var Menu21Selected2 = "Invisible"
|
||||
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
If SpiralOnline = "true" Then
|
||||
If Seeker = "curr" Then
|
||||
Var MenuVSelected2 = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; init default
|
||||
Var Menu1Selected = "Enable"
|
||||
Var Menu2Selected = "Enable"
|
||||
Var Menu3Selected = "Enable"
|
||||
Var Menu4Selected = "Enable"
|
||||
; 5 fruit
|
||||
Var Menu5Selected = "Invisible"
|
||||
;Var Menu6Selected = "Enable"
|
||||
|
||||
Var Menu61Selected = "Enable"
|
||||
Var Menu62Selected = "Enable"
|
||||
|
||||
Var Menu7Selected = "Enable"
|
||||
; 8 cocktail
|
||||
Var Menu8Selected = "Invisible"
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu8Selected = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "Enable"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
If MenuKidEnable = "true" Then
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu21Selected = "Enable"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Var Menu7Selected = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Var Menu7Selected = "Invisible"
|
||||
EndIf
|
||||
|
||||
If RecipeTag1 = "HealthTurnOn" Then
|
||||
Var Menu22Selected = "Enable"
|
||||
Else
|
||||
Var Menu22Selected = "Invisible"
|
||||
EndIf
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue