video
This commit is contained in:
parent
8fdbf4b3f5
commit
afe51cebd4
11 changed files with 115 additions and 58 deletions
|
|
@ -1 +1 @@
|
|||
/event/promotion_momday.xml
|
||||
/event/promotion_Tamatian.xml
|
||||
|
|
@ -1 +1 @@
|
|||
Open "ROOT/taobin_project/xml/page_catalog_momday.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_melon.xml"
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
; zone promote
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
If MomDayEnable = 1 Then
|
||||
If TamatianEnable = 1 Then
|
||||
|
||||
Var BigButtonEnable = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_momday.xml"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_Tamatian.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
Else
|
||||
|
|
@ -14,9 +14,9 @@ If OpenFromPageBoard = 1 Then
|
|||
EndIf
|
||||
Else
|
||||
|
||||
If MomDayEnable = 1 Then
|
||||
If TamatianEnable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_momday.xml"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_Tamatian.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -49,25 +49,41 @@ EndIf
|
|||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
If SystemDateDayInt > 15 Then
|
||||
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
||||
If SystemDateDayInt < 30 Then
|
||||
Var TamatianEnable = 1
|
||||
EndIf
|
||||
If SystemDateDayInt = 30 Then
|
||||
Var TamatianEnable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt > 7 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
Var TamatianEnable = 1
|
||||
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
If BoxID = 173149 Then
|
||||
Var MomDayEnable = 0
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
If BoxID = 200001 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
|
@ -87,6 +103,21 @@ If BoxID = 172053 Then
|
|||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 172644 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 176757 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
Var MayDayRunEnable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If BoxID = 200863 Then
|
||||
Var TamatianEnable = 1
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
|
|
|||
|
|
@ -405,6 +405,10 @@
|
|||
; language instance
|
||||
|
||||
|
||||
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable1
|
||||
DEBUGVAR SelectMenuBetweenBrewEnable2
|
||||
|
||||
|
||||
|
||||
; echo 1 > /mnt/sdcard/game_enable
|
||||
|
|
@ -514,25 +518,38 @@
|
|||
|
||||
|
||||
|
||||
DEBUGVAR Game01Enable
|
||||
DEBUGVAR BREW_CNT
|
||||
If Game01Enable = 1 Then
|
||||
Var ButtonGameCountDown = 15
|
||||
Var ButtonGameCountDownState = "PressForever"
|
||||
If BREW_CNT > 84 Then
|
||||
Var ButtonGameCountDown = BREW_CNT - 70
|
||||
If ButtonGameCountDown > 15 Then
|
||||
Var ButtonGameCountDown = 15
|
||||
EndIf
|
||||
|
||||
Var ButtonGameCountDownState = "PressForever"
|
||||
Else
|
||||
Var Game01Enable = 0
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
|
||||
Var ButtonGameCountDown = 0
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var ButtonGameCountDown = 0
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ButtonGameCountDown
|
||||
|
||||
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 ButtonGameCountDownState = "Enable" Then
|
||||
|
|
@ -546,7 +563,7 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If BREW_CNT > 82 Then
|
||||
If BREW_CNT > 86 Then
|
||||
|
||||
Else
|
||||
If Game01Enable = 1 Then
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ If Seeker = "curr" Then
|
|||
GetFileSizeK "taobin_project/video/event_1.mp4" MainfileSize
|
||||
DEBUGVAR MainfileSize
|
||||
|
||||
If MainfileSize = 2201678 Then
|
||||
If MainfileSize = 6546655 Then
|
||||
Var VideoFileNameInstance3 = "ROOT/taobin_project/video/event_1.mp4"
|
||||
OpenInst 3 "ROOT/taobin_project/xml/sometime/page_play_may_day_delay.xml"
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -268,6 +268,13 @@
|
|||
<X> info_startX </X>
|
||||
<Y> info_4Y </Y>
|
||||
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
|
||||
<EventClick>
|
||||
If CountTouchButton = "" Then
|
||||
Var CountTouchButton = 0
|
||||
EndIf
|
||||
|
||||
Var CountTouchButton = CountTouchButton + 1
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
|
||||
|
|
@ -661,34 +668,38 @@
|
|||
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
|
||||
<EventClick>
|
||||
; reset
|
||||
Var TelephoneNumber = "0859586589"
|
||||
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 CountTouchButton > 4 Then
|
||||
Var CountTouchButton = 0
|
||||
Var TelephoneNumber = "0859586589"
|
||||
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
|
||||
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
|
||||
; 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
|
||||
DEBUGVAR LangString
|
||||
|
||||
Var GameInstalled = "-"
|
||||
CheckApp "com.NDF.taobin" GameInstalled
|
||||
DEBUGVAR GameInstalled
|
||||
|
||||
If GameInstalled = "true" Then
|
||||
RunApp "com.NDF.taobin"
|
||||
EndIf
|
||||
|
||||
Var GameInstalled = "-"
|
||||
CheckApp "com.NDF.taobin" GameInstalled
|
||||
DEBUGVAR GameInstalled
|
||||
|
||||
If GameInstalled = "true" Then
|
||||
RunApp "com.NDF.taobin"
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue