Hurr
This commit is contained in:
parent
074b805898
commit
d2469e310c
37 changed files with 1535 additions and 20659 deletions
|
|
@ -1,130 +0,0 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_limit_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_en.png"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_limit.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school.png"
|
||||
EndIf
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bp_back_to_school_limit_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bp_back_to_school_en.png"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bp_back_to_school_limit.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bp_back_to_school.png"
|
||||
EndIf
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_limit_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_en.png"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If OreoForFreeLimit = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_limit.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_back_to_school.png"
|
||||
EndIf
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
Var NameDrink = "SUPER OREO VOLCANO"
|
||||
Var NameDrinkTH = "ซูเปอร์โอริภูเขาไฟ"
|
||||
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
|
||||
Var DrinkDescription = "Milk, Sugar, Oreo"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_super_oreo_volcano.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = $-.Price
|
||||
Var PriceD3 = $12-03-03-0032.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "##-##-##-####"
|
||||
Var PD_CODE3 = "12-03-03-0032"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = "Disable2"
|
||||
Var PD_STAGE_3 = $12-03-03-0032.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
|
||||
Topping "Load" "12-03-03-0032"
|
||||
|
||||
Var menu_name_eng_hot = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_hot = $##-##-##-####.Name
|
||||
Var menu_desc_thai_hot = $##-##-##-####.description
|
||||
|
||||
Var menu_name_eng_cold = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_cold = $##-##-##-####.Name
|
||||
Var menu_desc_thai_cold = $##-##-##-####.description
|
||||
|
||||
Var menu_name_eng_blender = $12-03-03-0032.NameE
|
||||
Var menu_desc_eng_blender = $12-03-03-0032.descriptionE
|
||||
Var menu_name_thai_blender = $12-03-03-0032.Name
|
||||
Var menu_desc_thai_blender = $12-03-03-0032.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
If OreoForFreeLimit = "true" Then
|
||||
|
||||
Else
|
||||
Var BackToSchoolForFreeEnable = 1
|
||||
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
|
||||
EndIf
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move_en.png"
|
||||
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move.png"
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move_en.png"
|
||||
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move_en.png"
|
||||
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
Var NameDrink = "OREO SMOOTHIE VOLCANO"
|
||||
Var NameDrinkTH = "โอริโอ้ปั่นภูเขาไฟ"
|
||||
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
|
||||
Var DrinkDescription = "Milk, Sugar, Oreo"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_save_buy2_oreo_volcano.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = 0
|
||||
Var PriceD2 = 0
|
||||
Var PriceD3 = 70
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "##-##-##-####"
|
||||
Var PD_CODE3 = "12-03-03-0009"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = "Disable2"
|
||||
Var PD_STAGE_3 = $12-03-03-0009.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
|
||||
Topping "Load" "12-03-03-0009"
|
||||
|
||||
Var menu_name_eng_hot = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_hot = $##-##-##-####.Name
|
||||
Var menu_desc_thai_hot = $##-##-##-####.description
|
||||
|
||||
Var menu_name_eng_cold = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_cold = $##-##-##-####.Name
|
||||
Var menu_desc_thai_cold = $##-##-##-####.description
|
||||
|
||||
Var menu_name_eng_blender = $12-03-03-0009.NameE
|
||||
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
|
||||
Var menu_name_thai_blender = $12-03-03-0009.Name
|
||||
Var menu_desc_thai_blender = $12-03-03-0009.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var PromotionIDOreoBuyTwoSaveMore = 1
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -8,27 +8,11 @@ else:
|
|||
# ; include-file=dummy_layout.inc
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
file_inc2 = open(directory_to_process + "/big_logo.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.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_xml.close()
|
||||
|
||||
|
||||
# " "
|
||||
file_inc2 = open(directory_to_process + "/event/big_logo_back_to_school.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
|
@ -48,23 +32,4 @@ else:
|
|||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
#############################################
|
||||
file_inc2 = open(directory_to_process + "/event/big_logo_oreo_buy2_save_movel.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
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 = open(directory_to_process + "/event/page_recommend_oreo_buy2_save_more.xml", 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
52
xml/event/promotion_template1.inc
Normal file
52
xml/event/promotion_template1.inc
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<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 = ###press_eng
|
||||
|
||||
Else
|
||||
Var return = ###press_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var return = ###disable_eng
|
||||
|
||||
Else
|
||||
Var return = ###disable_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -69,23 +69,6 @@ If BoxID = 200000 Then
|
|||
EndIf
|
||||
|
||||
|
||||
|
||||
If BoxID = 172527 Then
|
||||
Var OreoDueEnable = 1
|
||||
Var OreoForFreeEnable = 0
|
||||
EndIf
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var OreoDueEnable = 0
|
||||
Var OreoForFreeEnable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 172102 Then
|
||||
Var OreoDueEnable = 0
|
||||
Var OreoForFreeEnable = 1
|
||||
EndIf
|
||||
|
||||
Var OreoForFreeLimit = ""
|
||||
READ_FILE "/mnt/sdcard/oreo_for_free_limit" OreoForFreeLimit
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue