DO may day and adv
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 35 KiB |
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
; malaysia
|
||||
|
||||
|
||||
;DEBUGVAR SystemDateMonthInt
|
||||
|
|
@ -10,7 +10,9 @@ Var Propepsi99Enable = 0
|
|||
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
Var Propepsi99Enable = 1
|
||||
If SystemDateDayInt > 29 Then
|
||||
Var Propepsi99Enable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
If SystemDateMonthInt = 9 Then
|
||||
Var Propepsi99Enable = 1
|
||||
|
|
|
|||
BIN
video/brewing_txt_adv1.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
video/brewing_txt_adv1_en.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
video/brewing_txt_adv3.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
video/brewing_txt_adv3_en.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
video/event_1.mp4
Executable file
|
|
@ -1,14 +1,9 @@
|
|||
|
||||
Var MainfileSize = 0
|
||||
GetFileSizeK "taobin_project/video/taobin_thank1_event.mp4" MainfileSize
|
||||
DEBUGVAR MainfileSize
|
||||
|
||||
SAVELOG "For change size this file."
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
If CountryName = "Malaysia" Then
|
||||
Var EventTurnOn = 0
|
||||
Else
|
||||
|
|
|
|||
12
video/script3_brew.ev
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
GetFileSizeK "taobin_project/video/brewing_adv3.mp4" brewing_adv_size
|
||||
DEBUGVAR brewing_adv_size
|
||||
If brewing_adv_size = 9526548 Then
|
||||
If TamatianEnable = 1 Then
|
||||
Var adver_brewing_play_index = 1
|
||||
Var adver_brewing_count_down = 16
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; comment for change this file size
|
||||
|
||||
|
||||
|
|
@ -1,12 +1,19 @@
|
|||
total 138956
|
||||
total 140492
|
||||
-rw-rw---- 1 root sdcard_rw 14292128 2022-12-29 13:13 brewing_adv1.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 10307404 2023-07-19 10:04 brewing_adv3.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 9526548 2023-06-30 10:44 brewing_adv3.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 23569 2023-03-21 11:01 brewing_txt_adv1.png
|
||||
-rw-rw---- 1 root sdcard_rw 28097 2023-03-21 11:01 brewing_txt_adv1_en.png
|
||||
-rw-rw---- 1 root sdcard_rw 30982 2023-08-25 17:17 brewing_txt_adv3.png
|
||||
-rw-rw---- 1 root sdcard_rw 35550 2023-08-25 17:17 brewing_txt_adv3_en.png
|
||||
-rw-rw---- 1 root sdcard_rw 2201678 2023-08-07 13:19 event_1.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 7265712 2021-03-06 13:03 main_page.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 19087285 2023-01-23 16:15 main_page_en.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 11040774 2023-08-09 17:39 main_page_event.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 7185758 2023-05-23 11:02 main_page_event_en.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 527 2023-08-09 17:56 script1.ev
|
||||
-rw-rw---- 1 root sdcard_rw 409 2023-08-09 17:56 script2.ev
|
||||
-rw-rw---- 1 root sdcard_rw 0 2023-08-10 10:45 sync_1.file
|
||||
-rw-rw---- 1 root sdcard_rw 384 2023-08-25 16:57 script2.ev
|
||||
-rw-rw---- 1 root sdcard_rw 284 2023-08-25 16:49 script3_brew.ev
|
||||
-rw-rw---- 1 root sdcard_rw 0 2021-03-18 15:12 sync_1.file
|
||||
-rw-rw---- 1 root sdcard_rw 14168973 2021-02-19 17:11 taobin_adv1.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 9135672 2021-02-16 17:41 taobin_adv2.mp4
|
||||
-rw-rw---- 1 root sdcard_rw 8980019 2021-03-05 13:35 taobin_adv2_1.mp4
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ Var BackToSchoolForFreeEnable = 0
|
|||
Var PepsiProEnable = 0
|
||||
Var PepsiPromoteVideo = 0
|
||||
Var PepsiProCodeEnable = 0
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
|
||||
|
||||
Var SoundBackToSchoolType = 0
|
||||
; End
|
||||
|
|
@ -28,30 +28,50 @@ Var Anniversary3VideoEnable = 0
|
|||
|
||||
Var MomDayEnable = 0
|
||||
|
||||
; September
|
||||
; Enable app game
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
; Enable pro Tamatian.
|
||||
Var TamatianEnable = 0
|
||||
|
||||
; September
|
||||
Var MayDayRunEnable = 0
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If JasmineTeaEnable = "true" Then
|
||||
Var MomDayEnable = 1
|
||||
If SystemDateDayInt > 5 Then
|
||||
If SystemDateDayInt < 17 Then
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var MomDayEnable = 0
|
||||
EndIf
|
||||
|
||||
DEBUGVAR MomDayEnable
|
||||
DEBUGVAR JasmineTeaEnable
|
||||
|
||||
|
||||
If BoxID = 200001 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 172053 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 33170 Then
|
||||
Var PepsiProEnable = 0
|
||||
|
|
@ -65,6 +85,8 @@ EndIf
|
|||
|
||||
If InternationalEnable = 1 Then
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
Var TamatianEnable = 0
|
||||
Var MayDayRunEnable = 0
|
||||
Var MomDayEnable = 0
|
||||
Var PepsiProEnable = 0
|
||||
Var PepsiPromoteVideo = 0
|
||||
|
|
|
|||
|
|
@ -855,7 +855,10 @@
|
|||
WEB "DISABLE"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
If GameInstalled = "" Then
|
||||
CheckApp "com.NDF.taobin" GameInstalled
|
||||
EndIf
|
||||
|
||||
Var CountDownCheckCamera = 10
|
||||
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@
|
|||
Var bn_get_lid_image = "ROOT/taobin_project/image/page_doing/bn_get_lid_en.png"
|
||||
Var bp_get_lid_image = "ROOT/taobin_project/image/page_doing/bp_get_lid_en.png"
|
||||
|
||||
Var brew_txt2 = "ROOT/taobin_project/image/page_doing/brewing_txt_adv3_en.png"
|
||||
Var brew_txt1 = "ROOT/taobin_project/image/page_doing/brewing_txt_adv1_en.png"
|
||||
Var brew_txt2 = "ROOT/taobin_project/video/brewing_txt_adv3_en.png"
|
||||
Var brew_txt1 = "ROOT/taobin_project/video/brewing_txt_adv1_en.png"
|
||||
|
||||
Var XStraw = 274
|
||||
Else
|
||||
|
|
@ -101,8 +101,8 @@
|
|||
Var bn_get_lid_image = "ROOT/taobin_project/image/page_doing/bn_get_lid.png"
|
||||
Var bp_get_lid_image = "ROOT/taobin_project/image/page_doing/bp_get_lid.png"
|
||||
|
||||
Var brew_txt2 = "ROOT/taobin_project/image/page_doing/brewing_txt_adv3.png"
|
||||
Var brew_txt1 = "ROOT/taobin_project/image/page_doing/brewing_txt_adv1.png"
|
||||
Var brew_txt2 = "ROOT/taobin_project/video/brewing_txt_adv3.png"
|
||||
Var brew_txt1 = "ROOT/taobin_project/video/brewing_txt_adv1.png"
|
||||
|
||||
Var XStraw = 274
|
||||
EndIf
|
||||
|
|
@ -376,44 +376,17 @@
|
|||
;Var XStraw = 265
|
||||
EndIf
|
||||
|
||||
; BREW_CNT > 15 ( pre-time ) + 60 ( Game Time ) Game01Enable
|
||||
; BREW_CNT > 15 ( pre-time ) + 50 ( Game Time ) + 10 (Debound Time) Game01Enable
|
||||
|
||||
DEBUGVAR Game01Enable
|
||||
DEBUGVAR BREW_CNT
|
||||
If Game01Enable = 1 Then
|
||||
If BREW_CNT > 82 Then
|
||||
|
||||
Else
|
||||
Var Game01Enable = 0
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
If Game01Enable = 1 Then
|
||||
Var ButtonGameCountDown = 15
|
||||
Var ButtonGameCountDownState = "PressForever"
|
||||
Else
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
EndIf
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
|
||||
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable1
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable2
|
||||
|
||||
DEBUGVAR LanguageObjectShow
|
||||
DEBUGVAR NoLangObjectShow
|
||||
|
||||
|
||||
|
||||
Var CreditCardVoid = 0
|
||||
If InternationalEnable = 1 Then
|
||||
Var adver_brewing_en = 0
|
||||
RootLayoutVisible 3 "hide"
|
||||
EndIf
|
||||
|
||||
If adver_brewing_en = 1 Then
|
||||
|
|
@ -431,7 +404,142 @@
|
|||
|
||||
; language instance
|
||||
|
||||
RootLayoutVisible 3 "hide"
|
||||
|
||||
|
||||
|
||||
; echo 1 > /mnt/sdcard/game_enable
|
||||
READ_FILE "/mnt/sdcard/game_enable" game_mode_str
|
||||
STRCONTAIN "1" game_mode_str game_mode_enable
|
||||
DEBUGVAR game_mode_enable
|
||||
|
||||
|
||||
If GameEnableFromTrickerEv = 1 Then
|
||||
Var game_mode_enable = "true"
|
||||
EndIf
|
||||
|
||||
If GameOverrideDisable = 1 Then
|
||||
Var game_mode_enable = "false"
|
||||
EndIf
|
||||
|
||||
READ_FILE "/mnt/sdcard/game_disable" game_mode_str
|
||||
STRCONTAIN "1" game_mode_str game_mode_disable
|
||||
DEBUGVAR game_mode_disable
|
||||
|
||||
If game_mode_disable = "true" Then
|
||||
Var game_mode_enable = "false"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker
|
||||
If game_mode_enable = "true" Then
|
||||
|
||||
|
||||
DEBUGVAR GameInstalled
|
||||
|
||||
If GameInstalled = "true" Then
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
|
||||
If Seeker.TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinMember
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||
EndIf
|
||||
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR TelNumLen
|
||||
|
||||
If TelNumLen = 10 Then
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/config_taobingame.yaml" ""
|
||||
;APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.233:30487/taobingame"\r\n"
|
||||
APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.231:30460"\r\n"
|
||||
|
||||
If TelephoneNumber = "0899999999" Then
|
||||
|
||||
Var ACCString !assigned SprintFmt("ACC: ""\r\n", "")
|
||||
Else
|
||||
|
||||
Var ACCString !assigned SprintFmt("ACC: "%s"\r\n", TelephoneNumber)
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ACCString
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var LangString = "LANG: "EN"\r\n"
|
||||
Else
|
||||
Var LangString = "LANG: "TH"\r\n"
|
||||
EndIf
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/taobingame_acc.yaml" ""
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" ACCString
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" LangString
|
||||
;
|
||||
|
||||
Var Game01Enable = 1
|
||||
Else
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/config_taobingame.yaml" ""
|
||||
;APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.233:30487/taobingame"\r\n"
|
||||
APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.231:30460"\r\n"
|
||||
|
||||
Var ACCString !assigned SprintFmt("ACC: ""\r\n", "")
|
||||
DEBUGVAR ACCString
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var LangString = "LANG: "EN"\r\n"
|
||||
Else
|
||||
Var LangString = "LANG: "TH"\r\n"
|
||||
EndIf
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/taobingame_acc.yaml" ""
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" ACCString
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" LangString
|
||||
;
|
||||
|
||||
Var Game01Enable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If Game01Enable = 1 Then
|
||||
Var ButtonGameCountDown = 15
|
||||
Var ButtonGameCountDownState = "PressForever"
|
||||
Else
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
EndIf
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
|
||||
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable1
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable2
|
||||
|
||||
|
||||
|
||||
; BREW_CNT > 15 ( pre-time ) + 60 ( Game Time ) Game01Enable
|
||||
; BREW_CNT > 15 ( pre-time ) + 50 ( Game Time ) + 10 (Debound Time) Game01Enable
|
||||
|
||||
DEBUGVAR Game01Enable
|
||||
DEBUGVAR BREW_CNT
|
||||
If Game01Enable = 1 Then
|
||||
If BREW_CNT > 82 Then
|
||||
|
||||
Else
|
||||
Var Game01Enable = 0
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<EventLanguageOnChange>
|
||||
|
|
@ -1185,18 +1293,11 @@
|
|||
|
||||
If adver_brewing_count_down = 0 Then
|
||||
|
||||
GetFileSizeK "taobin_project/video/brewing_adv3.mp4" brewing_adv_size
|
||||
DEBUGVAR brewing_adv_size
|
||||
|
||||
Var adver_brewing_play_index = 1
|
||||
Var adver_brewing_count_down = 0
|
||||
|
||||
If brewing_adv_size = 10307404 Then
|
||||
If Anniversary3VideoEnable = 1 Then
|
||||
Var adver_brewing_play_index = 1
|
||||
Var adver_brewing_count_down = 20
|
||||
EndIf
|
||||
EndIf
|
||||
TRY "ROOT/taobin_project/video/script3_brew.ev"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
|
@ -1392,17 +1493,15 @@
|
|||
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Game01Enable
|
||||
DEBUGVAR ButtonGamePressToPlayState
|
||||
DEBUGVAR BREW_CNT
|
||||
If Game01Enable = 1 Then
|
||||
If BREW_CNT > 60 Then
|
||||
If BREW_CNT > 60 Then
|
||||
|
||||
Else
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
Var Game01Enable = 0
|
||||
EndIf
|
||||
Else
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
Var Game01Enable = 0
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
|
|
|
|||
|
|
@ -155,6 +155,8 @@
|
|||
|
||||
Var CreditCardVoid = 0
|
||||
|
||||
DEBUGVAR ButtonGameCountDownState
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
|
@ -905,6 +907,29 @@
|
|||
Open "ROOT/taobin_project/xml/page_drinkok.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If ButtonGameCountDown > 0 Then
|
||||
If ButtonGameCountDown = 1 Then
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
Var ButtonGamePressToPlayState = "Enable"
|
||||
EndIf
|
||||
Var ButtonGameCountDown = ButtonGameCountDown - 1
|
||||
DEBUGVAR ButtonGameCountDown
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR BREW_CNT
|
||||
DEBUGVAR ButtonGamePressToPlayState
|
||||
If BREW_CNT > 60 Then
|
||||
|
||||
Else
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
Var Game01Enable = 0
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
|
|
@ -1000,7 +1025,7 @@
|
|||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 733 </X>
|
||||
<X> 792 </X>
|
||||
<Y> 1787 </Y>
|
||||
<State>EnableSelectMenuBetweenBrew</State>
|
||||
<Filename> next_pic_bn </Filename>
|
||||
|
|
@ -1020,6 +1045,36 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<GIF>
|
||||
<X> 526 </X>
|
||||
<Y> 1680 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 204 </Height>
|
||||
<State> ButtonGamePressToPlayState </State>
|
||||
<Filename> "ROOT/taobin_project/app/game/TAMATIAN-01.gif" </Filename>
|
||||
</GIF>
|
||||
|
||||
<Image>
|
||||
<X> 526 </X>
|
||||
<Y> 1680 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 204 </Height>
|
||||
<State> ButtonGamePressToPlayState </State>
|
||||
<EventClick>
|
||||
DEBUGVAR Game01Enable
|
||||
SAVELOG "Press play game"
|
||||
If Game01Enable = 1 Then
|
||||
Var Game01Enable = 0
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
RunApp "com.NDF.taobin"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 10 </X>
|
||||
<Y> 500 </Y>
|
||||
|
|
@ -1130,4 +1185,27 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 526 </X>
|
||||
<Y> 1787 </Y>
|
||||
<State> ButtonGameCountDownState </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_doing/bn_game_cnt_down.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_doing/bn_game_cnt_down.png" </FilenamePress>
|
||||
<EventClick>
|
||||
|
||||
</EventClick>
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Size> 64 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 240 </Width>
|
||||
<Font> KanitBoldTTF </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
<State> ButtonGameCountDownState </State>
|
||||
<Value> ButtonGameCountDown </Value>
|
||||
</Text>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
|
|
@ -5589,15 +5589,15 @@ LIMENADE" </Value>
|
|||
</Block>
|
||||
; - - -
|
||||
; ==================> Len = 11
|
||||
; 12-02-01-0045 12-02-02-0045 -
|
||||
; 12-02-01-0045 12-02-02-0045 12-02-03-0046
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0045.Button,12-02-02-0045.Button,$Sum12020100451202020045) </State>
|
||||
<State> Flag( 12-02-01-0045.Button,12-02-02-0045.Button,12-02-03-0046.Button,$Sum120201004512020200451202030046) </State>
|
||||
<Button>
|
||||
<State> $Sum12020100451202020045 </State>
|
||||
<State> $Sum120201004512020200451202030046 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_jasmine_tea.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_jasmine_tea.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_jasmine_tea.png" </FilenameDisable>
|
||||
|
|
@ -5612,13 +5612,13 @@ LIMENADE" </Value>
|
|||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $12-02-01-0045.Price
|
||||
Var PriceD2 = $12-02-02-0045.Price
|
||||
Var PriceD3 = $-.Price
|
||||
Var PriceD3 = $12-02-03-0046.Price
|
||||
Var PD_CODE1 = "12-02-01-0045"
|
||||
Var PD_CODE2 = "12-02-02-0045"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
Var PD_CODE3 = "12-02-03-0046"
|
||||
Var PD_STAGE_1 = $12-02-01-0045.Button
|
||||
Var PD_STAGE_2 = $12-02-02-0045.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
Var PD_STAGE_3 = $12-02-03-0046.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
|
|
@ -5639,7 +5639,7 @@ LIMENADE" </Value>
|
|||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "12-02-01-0045"
|
||||
Else
|
||||
Topping "Load" "-"
|
||||
Topping "Load" "12-02-03-0046"
|
||||
EndIf
|
||||
EndIf
|
||||
Var menu_name_eng_hot = $12-02-01-0045.NameE
|
||||
|
|
@ -5652,10 +5652,10 @@ LIMENADE" </Value>
|
|||
Var menu_name_thai_cold = $12-02-02-0045.Name
|
||||
Var menu_desc_thai_cold = $12-02-02-0045.description
|
||||
|
||||
Var menu_name_eng_blender = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||
Var menu_name_eng_blender = $12-02-03-0046.NameE
|
||||
Var menu_desc_eng_blender = $12-02-03-0046.descriptionE
|
||||
Var menu_name_thai_blender = $12-02-03-0046.Name
|
||||
Var menu_desc_thai_blender = $12-02-03-0046.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
|
|
@ -5755,7 +5755,7 @@ LIMENADE" </Value>
|
|||
<Y> 264 </Y>
|
||||
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
|
||||
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
|
||||
<State> "Invisible" </State>
|
||||
<State> $12-02-03-0046.Button </State>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> 180 </X>
|
||||
|
|
@ -5765,8 +5765,8 @@ LIMENADE" </Value>
|
|||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||
<State> "Invisible" </State>
|
||||
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
<State> $12-02-03-0046.Button </State>
|
||||
<Value> StringFmt( $12-02-03-0046.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
|
|
@ -5775,7 +5775,7 @@ LIMENADE" </Value>
|
|||
eval(
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
|
||||
If $Sum12020100451202020045 = "Disable" Then
|
||||
If $Sum120201004512020200451202030046 = "Disable" Then
|
||||
Var ice_tab_process_show = "Disable"
|
||||
Else
|
||||
Var ice_tab_process_show = "Enable"
|
||||
|
|
@ -5795,10 +5795,10 @@ LIMENADE" </Value>
|
|||
<Y> 117 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If $Sum12020100451202020045 = "Disable" Then
|
||||
If $Sum120201004512020200451202030046 = "Disable" Then
|
||||
STRCONTAIN "ERR" $12-02-01-0045.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-02-02-0045.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
|
||||
STRCONTAIN "ERR" $12-02-03-0046.TAG tag3_is_disable
|
||||
Var return = "Invisible"
|
||||
If tag1_is_disable = "true" Then
|
||||
Var return = "Enable"
|
||||
|
|
@ -5834,22 +5834,22 @@ LIMENADE" </Value>
|
|||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> $Sum12020100451202020045 </State>
|
||||
<State> $Sum120201004512020200451202030046 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; - - -
|
||||
; ==================> Len = 11
|
||||
; 12-02-01-0046 12-02-02-0046 -
|
||||
; 12-02-01-0046 12-02-02-0046 12-02-03-0047
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0046.Button,12-02-02-0046.Button,$Sum12020100461202020046) </State>
|
||||
<State> Flag( 12-02-01-0046.Button,12-02-02-0046.Button,12-02-03-0047.Button,$Sum120201004612020200461202030047) </State>
|
||||
<Button>
|
||||
<State> $Sum12020100461202020046 </State>
|
||||
<State> $Sum120201004612020200461202030047 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_jasmine_milk_tea.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_jasmine_milk_tea.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_jasmine_milk_tea.png" </FilenameDisable>
|
||||
|
|
@ -5864,13 +5864,13 @@ LIMENADE" </Value>
|
|||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $12-02-01-0046.Price
|
||||
Var PriceD2 = $12-02-02-0046.Price
|
||||
Var PriceD3 = $-.Price
|
||||
Var PriceD3 = $12-02-03-0047.Price
|
||||
Var PD_CODE1 = "12-02-01-0046"
|
||||
Var PD_CODE2 = "12-02-02-0046"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
Var PD_CODE3 = "12-02-03-0047"
|
||||
Var PD_STAGE_1 = $12-02-01-0046.Button
|
||||
Var PD_STAGE_2 = $12-02-02-0046.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
Var PD_STAGE_3 = $12-02-03-0047.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
|
|
@ -5891,7 +5891,7 @@ LIMENADE" </Value>
|
|||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "12-02-01-0046"
|
||||
Else
|
||||
Topping "Load" "-"
|
||||
Topping "Load" "12-02-03-0047"
|
||||
EndIf
|
||||
EndIf
|
||||
Var menu_name_eng_hot = $12-02-01-0046.NameE
|
||||
|
|
@ -5904,10 +5904,10 @@ LIMENADE" </Value>
|
|||
Var menu_name_thai_cold = $12-02-02-0046.Name
|
||||
Var menu_desc_thai_cold = $12-02-02-0046.description
|
||||
|
||||
Var menu_name_eng_blender = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||
Var menu_name_eng_blender = $12-02-03-0047.NameE
|
||||
Var menu_desc_eng_blender = $12-02-03-0047.descriptionE
|
||||
Var menu_name_thai_blender = $12-02-03-0047.Name
|
||||
Var menu_desc_thai_blender = $12-02-03-0047.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
|
|
@ -6007,7 +6007,7 @@ LIMENADE" </Value>
|
|||
<Y> 264 </Y>
|
||||
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
|
||||
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
|
||||
<State> "Invisible" </State>
|
||||
<State> $12-02-03-0047.Button </State>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> 180 </X>
|
||||
|
|
@ -6017,8 +6017,8 @@ LIMENADE" </Value>
|
|||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||
<State> "Invisible" </State>
|
||||
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
<State> $12-02-03-0047.Button </State>
|
||||
<Value> StringFmt( $12-02-03-0047.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
|
|
@ -6027,7 +6027,7 @@ LIMENADE" </Value>
|
|||
eval(
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
|
||||
If $Sum12020100461202020046 = "Disable" Then
|
||||
If $Sum120201004612020200461202030047 = "Disable" Then
|
||||
Var ice_tab_process_show = "Disable"
|
||||
Else
|
||||
Var ice_tab_process_show = "Enable"
|
||||
|
|
@ -6047,10 +6047,10 @@ LIMENADE" </Value>
|
|||
<Y> 117 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If $Sum12020100461202020046 = "Disable" Then
|
||||
If $Sum120201004612020200461202030047 = "Disable" Then
|
||||
STRCONTAIN "ERR" $12-02-01-0046.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-02-02-0046.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
|
||||
STRCONTAIN "ERR" $12-02-03-0047.TAG tag3_is_disable
|
||||
Var return = "Invisible"
|
||||
If tag1_is_disable = "true" Then
|
||||
Var return = "Enable"
|
||||
|
|
@ -6086,7 +6086,7 @@ LIMENADE" </Value>
|
|||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> $Sum12020100461202020046 </State>
|
||||
<State> $Sum120201004612020200461202030047 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
|
|
|||
|
|
@ -110,79 +110,7 @@
|
|||
EndIf
|
||||
Else
|
||||
|
||||
; echo 1 > /mnt/sdcard/game_enable
|
||||
READ_FILE "/mnt/sdcard/game_enable" game_mode_str
|
||||
STRCONTAIN "1" game_mode_str game_mode_enable
|
||||
DEBUGVAR game_mode_enable
|
||||
|
||||
|
||||
If GameEnableFromTrickerEv = 1 Then
|
||||
Var game_mode_enable = "true"
|
||||
EndIf
|
||||
|
||||
If GameOverrideDisable = 1 Then
|
||||
Var game_mode_enable = "false"
|
||||
EndIf
|
||||
|
||||
READ_FILE "/mnt/sdcard/game_disable" game_mode_str
|
||||
STRCONTAIN "1" game_mode_str game_mode_disable
|
||||
DEBUGVAR game_mode_disable
|
||||
|
||||
If game_mode_disable = "true" Then
|
||||
Var game_mode_enable = "false"
|
||||
EndIf
|
||||
|
||||
|
||||
If game_mode_enable = "true" Then
|
||||
CheckApp "com.NDF.taobin" GameInstalled
|
||||
|
||||
DEBUGVAR GameInstalled
|
||||
|
||||
If GameInstalled = "true" Then
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
|
||||
If Seeker.TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinMember
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||
EndIf
|
||||
|
||||
StrLen TelephoneNumber TelNumLen
|
||||
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR TelNumLen
|
||||
|
||||
If TelNumLen > 0 Then
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/config_taobingame.yaml" ""
|
||||
;APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.233:30487/taobingame"\r\n"
|
||||
APPEND_FILE "/mnt/sdcard/config_taobingame.yaml" "API_ENDPOINT: "http://10.0.16.231:30460"\r\n"
|
||||
|
||||
Var ACCString !assigned SprintFmt("ACC: "%s"\r\n", TelephoneNumber)
|
||||
DEBUGVAR ACCString
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var LangString = "LANG: "EN"\r\n"
|
||||
Else
|
||||
Var LangString = "LANG: "TH"\r\n"
|
||||
EndIf
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/taobingame_acc.yaml" ""
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" ACCString
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" LangString
|
||||
;
|
||||
|
||||
Var Game01Enable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -191,7 +119,7 @@
|
|||
DEBUGVAR TxRef1
|
||||
UpdateTxRef1 TxRef1 ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate PayO2 PdpaAccept VendingDiscount VendingCampaign PayReference PayType CreditReference PayDetail
|
||||
EndIf
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_get_yourchange.xml"
|
||||
|
|
|
|||
|
|
@ -2926,7 +2926,12 @@
|
|||
<EventClick>
|
||||
DEBUGVAR IgnoreNetCore
|
||||
If IgnoreNetCore = "true" Then
|
||||
MakeDrinkV1 SelectDrink SelectSugarID
|
||||
If Seeker = "curr" Then
|
||||
|
||||
MakeDrinkV1 SelectDrink SelectSugarID
|
||||
Else
|
||||
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_thankyou.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
|
|
|
|||
|
|
@ -171,6 +171,8 @@
|
|||
Var remainCredit = "/remainCredit-IDR.png"
|
||||
EndIf
|
||||
|
||||
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/sometime/script_thankyou.ev"
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
|
|
|||
36
xml/sometime/page_play_may_day.xml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0x000001" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
Var Timeout3 = 0
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
|
||||
Var Timeout3 = Timeout3 + 1
|
||||
|
||||
DEBUGVAR Timeout3
|
||||
If Timeout3 > 10 Then
|
||||
RootLayoutVisible 3 "hide"
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
EndIf
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 392 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 1528 </Height>
|
||||
<Filename> VideoFileNameInstance3 </Filename>
|
||||
</Video>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
28
xml/sometime/page_play_may_day_delay.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0x000001" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
Var Timeout3 = 0
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
|
||||
Var Timeout3 = Timeout3 + 1
|
||||
|
||||
DEBUGVAR Timeout3
|
||||
If Timeout3 > 2 Then
|
||||
Var Timeout3 = 0
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
Open "ROOT/taobin_project/xml/sometime/page_play_may_day.xml"
|
||||
EndIf
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
</Popup>
|
||||
15
xml/sometime/script_thankyou.ev
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
If Seeker = "curr" Then
|
||||
If MayDayRunEnable = 1 Then
|
||||
If CountUpPlayMayDay = "" Then
|
||||
Var CountUpPlayMayDay = 0
|
||||
EndIf
|
||||
Var CountUpPlayMayDay = CountUpPlayMayDay + 1
|
||||
DEBUGVAR CountUpPlayMayDay
|
||||
If CountUpPlayMayDay > 3 Then
|
||||
Var CountUpPlayMayDay = 0
|
||||
Var VideoFileNameInstance3 = "ROOT/taobin_project/video/event_1.mp4"
|
||||
OpenInst 3 "ROOT/taobin_project/xml/sometime/page_play_may_day_delay.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
|
@ -673,12 +673,15 @@
|
|||
Var LangString = "LANG: "EN"\r\n"
|
||||
Else
|
||||
Var LangString = "LANG: "TH"\r\n"
|
||||
|
||||
EndIf
|
||||
|
||||
; reset
|
||||
WRITE_FILE "/mnt/sdcard/taobingame_acc.yaml" ""
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" ACCString
|
||||
APPEND_FILE "/mnt/sdcard/taobingame_acc.yaml" LangString
|
||||
|
||||
DEBUGVAR LangString
|
||||
|
||||
Var GameInstalled = "-"
|
||||
CheckApp "com.NDF.taobin" GameInstalled
|
||||
|
|
|
|||