fix bug video.inc

This commit is contained in:
wanlop run 2024-10-03 12:10:27 +07:00
parent e8148c2786
commit 89b8dbad3a
5 changed files with 2874 additions and 171 deletions

View file

@ -18,6 +18,7 @@
Var DefaultLargeBanner = PepsiLargeBanner Var DefaultLargeBanner = PepsiLargeBanner
Var DefaultNormBanner = PepsiNormBanner Var DefaultNormBanner = PepsiNormBanner
EndIf EndIf
If showMultiAds = "true" Then If showMultiAds = "true" Then
@ -46,6 +47,11 @@
If CountDownPauseVideo2 = -1 Then If CountDownPauseVideo2 = -1 Then
Var CountDownPauseVideo2 = 0 Var CountDownPauseVideo2 = 0
EndIf EndIf
; Default. Do not edit here.
Var AdvTaobinMenu = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu_" + a_video_menu[ads_idx]
Var DisplayAds = AdvTaobinMenu + ".mp4"
DEBUGVAR CurrentXMLFileName2 DEBUGVAR CurrentXMLFileName2
DEBUGVAR PreviousFileName DEBUGVAR PreviousFileName
@ -54,6 +60,7 @@
DEBUGVAR CountryName DEBUGVAR CountryName
If CountryName = "Singapore" Then If CountryName = "Singapore" Then
If CurrentXMLFileName2 = "/mnt/sdcard/coffeevending//taobin_project/xml/page_back_to_main.xml" Then If CurrentXMLFileName2 = "/mnt/sdcard/coffeevending//taobin_project/xml/page_back_to_main.xml" Then
@ -77,10 +84,6 @@
Var DisplayAds = AdvTaobinMenu + ".mp4" Var DisplayAds = AdvTaobinMenu + ".mp4"
EndIf EndIf
EndIf EndIf
Else
Var AdvTaobinMenu = DefaultNormBanner
Var DisplayAds = AdvTaobinMenu + ".mp4"
EndIf EndIf
If CountryName = "Malaysia" Then If CountryName = "Malaysia" Then
@ -108,7 +111,7 @@
EndIf EndIf
EndIf EndIf
; showMultiAds=false
Else Else
DEBUGVAR a_video_menu[ads_idx] DEBUGVAR a_video_menu[ads_idx]
If CountryName = "Singapore" Then If CountryName = "Singapore" Then
@ -126,7 +129,6 @@
If PreviseXMLFileName2 = "/mnt/sdcard/coffeevending/taobin_project/xml/page_list.xml" Then If PreviseXMLFileName2 = "/mnt/sdcard/coffeevending/taobin_project/xml/page_list.xml" Then
DEBUGVAR CurrentXMLFileName2
DEBUGVAR CurrentXMLFileName2 DEBUGVAR CurrentXMLFileName2
DEBUGVAR PreviseXMLFileName2 DEBUGVAR PreviseXMLFileName2
DEBUGVAR CurrPageInst0 DEBUGVAR CurrPageInst0

View file

@ -550,6 +550,23 @@ Name=Health,file=page_catalog_group_health.skt
ชาดำ BLACK TEA ชาไทย และน้ำ Thai tea and Water 12-02-01-1039 12-02-02-1039 - bn_thai_black_tea_SingPark_Healthy.png - - - posi1 ชาดำ BLACK TEA ชาไทย และน้ำ Thai tea and Water 12-02-01-1039 12-02-02-1039 - bn_thai_black_tea_SingPark_Healthy.png - - - posi1
ชาดำมะนาว BLACK TEA LIMENADE ชาไทย ผงมะนาว และน้ำ Thai tea, Limenade and Water 12-02-01-1040 12-02-02-1040 - bn_limeblack_tea_SingPark_Healthy.png - - - posi1 ชาดำมะนาว BLACK TEA LIMENADE ชาไทย ผงมะนาว และน้ำ Thai tea, Limenade and Water 12-02-01-1040 12-02-02-1040 - bn_limeblack_tea_SingPark_Healthy.png - - - posi1
- - - - - -
เจมิลานม JEMILA MILK เจมิลา นม และน้ำแข็ง Jemila, Milk and Ice - 12-03-02-0075 12-03-03-0075 bn_iced_milk_jemila.png - - - posi1
เจมิลาออรจินอล JEMILA ORIGINAL เจมิลา น้ำ และน้ำแข็ง Jemila, Water and Ice - 12-05-02-0124 12-05-03-0124 bn_water_roomtemp_jemila.png - - - posi1
เจมิลาชาไทย JEMILA THAI TEA เจมิลา ชาไทย และน้ำแข็ง Jemila, Thai tea and Ice - 12-02-02-0068 12-02-03-0068 bn_hot_thai_tea_jemila.png - - - posi1
เจมิลาโซดา JEMILA SODA เจมิลา โซดา และน้ำแข็ง Jemila, Soda and Ice - 12-05-02-0125 - bn_soda_jemila.png - - - posi1
เจมิลากาโน่ JEMILA AMERICANO เจมิลา กาแฟ และน้ำแข็ง Jemila, Espresso and Ice - 12-01-02-0075 - bn_hot_america_no_jemila.png - 12-21-02-0075 - posi1
เจมิลาโกโก้ JEMILA COCOA เจมิลา โกโก้ และน้ำแข็ง Jemila, Cocoa and Ice - 12-03-02-0076 12-03-03-0076 bn_iced_cocoa_jemila.png - - - posi1
เจมิลาขิง JEMILA GINGER เจมิลา ขิง และน้ำแข็ง Jemila, Ginger and Ice - 12-02-02-0069 12-02-03-0069 bn_hot_Ginger_tea_jemila.png - - - posi1
เจมิลาเซเว่นอัพโซดา JEMILA 7UP SODA เจมิลา 7up และน้ำแข็ง Jemila, 7 up and Ice - 12-05-02-0126 12-05-03-0126 bn_iced_7up_jemila.png - - - posi1
เจมิลามะนาว JEMILA LIME เจมิลา มะนาว และน้ำแข็ง Jemila, Lime and Ice - 12-05-02-0127 12-05-03-0127 bn_iced_lemonade_jemila.png - - - posi1
เจมิลามะลิ JEMILA JASMINE เจมิลา ชามะลิ และน้ำแข็ง Jemila, Jasmine tea and Ice - 12-02-02-0070 12-02-03-0070 bn_jasmine_tea_jemila.png - - - posi1
Name=Health,file=page_catalog_group_songkran.skt Name=Health,file=page_catalog_group_songkran.skt
โอเลี้ยงจ้ำบ๊ะ SEXY DANCE\nAMERICANO กาแฟ น้ำ และ น้ำแดง Espresso, Salak Syrup,\nwater - 12-01-02-0053 - bn_iced_sexy_dance_americano.png - - - posi1 โอเลี้ยงจ้ำบ๊ะ SEXY DANCE\nAMERICANO กาแฟ น้ำ และ น้ำแดง Espresso, Salak Syrup,\nwater - 12-01-02-0053 - bn_iced_sexy_dance_americano.png - - - posi1
โอยั๊วะเมียงู SNAKE WIFE\nAMERICANO กาแฟ น้ำ และ กล้วย Espresso, Tokyo Banana Syrup,\n Water - 12-01-02-0054 - bn_iced_snake_wife_americano.png - - - posi1 โอยั๊วะเมียงู SNAKE WIFE\nAMERICANO กาแฟ น้ำ และ กล้วย Espresso, Tokyo Banana Syrup,\n Water - 12-01-02-0054 - bn_iced_snake_wife_americano.png - - - posi1
@ -941,22 +958,22 @@ Name=jemila,file=page_catalog_group_pro_jemila.skt
ขวัญอุมามะนาว KWANUMA'S LIME เจมิลา มะนาว และน้ำแข็ง Jemila, Lime and Ice - 12-05-02-0127 12-05-03-0127 bn_iced_lemonade_jemila_pro.png - - - posi1 ขวัญอุมามะนาว KWANUMA'S LIME เจมิลา มะนาว และน้ำแข็ง Jemila, Lime and Ice - 12-05-02-0127 12-05-03-0127 bn_iced_lemonade_jemila_pro.png - - - posi1
รวินทร์วรกานต์มะลิ RAVINWORAGARN'S\nJASMINE เจมิลา ชามะลิ และน้ำแข็ง Jemila, Jasmine tea and Ice - 12-02-02-0070 12-02-03-0070 bn_jasmine_tea_jemila_pro.png - - - posi1 รวินทร์วรกานต์มะลิ RAVINWORAGARN'S\nJASMINE เจมิลา ชามะลิ และน้ำแข็ง Jemila, Jasmine tea and Ice - 12-02-02-0070 12-02-03-0070 bn_jasmine_tea_jemila_pro.png - - - posi1
Name = halloween Name=halloween,file=page_catalog_group_pro_halloween.skt
โหด โฉด สยอง BRUTAL, WICKED, HORRIFYING Matcha, 7Up, Lime and Soda - 12-02-02-0080 posi1
ปอบเมืองลับแล LIVER OF THE LOST Strawberry syrup, Energy drink syrup, 7Up and Lime - - 12-05-03-0128 posi1
หมู่บ้านเลี้ยงผี THE VILLAGE THAT FEEDS GHOSTS Strawberry syrup, Milk, 7Up and Lime - - 12-03-03-0084 posi1
วิวาห์อาถรรพ์ CURSED CUISINE Lychee syrup, Milk, 7Up and Lime - - 12-03-03-0085 posi1
เสน่ห์-บาตรแตก Broken Bowl Charm Thai tea, Strawberry syrup and 7Up - 12-02-02-0081 - posi1
เมตามหาโสมม Foul Metta Jasmine tea, Ume syrup, 7Up and Soda - 12-02-02-0082 - posi1
Ghost House กินอยู่กับผี GHOSTLY GRUB Ginger, Strawberry Syrup and 7Up 12-02-01-0079 - - posi1
ผงกระดูกสัมภเวสี BONE-CHILLING BITES Caramel syrup, Milk, 7Up and Ovaltine - - 12-03-03-0081 posi1
Cast แสดงเพื่อนผี PHANTOM ACTRESS Coffee, 7Up, Lime and Soda - 12-01-02-0082 - posi1
ไสยเวทย์สังหาร SPOOKY SPELLS Pepsi, Thai tea , Milk and Ice - 12-03-02-0080 - posi1
Mortuary ห้องเก็บเธอ MORTUARY: STORING HER Pepsi, Caramel, Milk and Ice - - 12-03-03-0080 posi1
โค้งต้องคำสาป CURSED CURVE Pepsi, Lime, Ginger, Jasmin tea 12-02-01-0078 - - posi1
เสกซากผี SUMMONING THE CORPSE Strawberry syrup, Coffee, 7Up and Soda - 12-01-02-0083 - posi1
คนทรงผี SPIRIT MEDIUM Caramel syrup, Milk, 7Up and Ice - - 12-03-03-0082 posi1
เลี้ยงลูกผี RAISING A GHOST CHILD Strawberry syrup, Milk, 7Up, Lime and Ovaltine - - 12-03-03-0083 posi1
Name=bubble tea,file=page_catalog_group_pro_buble_tea.skt Name=bubble tea,file=page_catalog_group_pro_buble_tea.skt
ลาเต้ LATTE กาแฟ นม และ ฟองนม Espresso, Milk, Foamed milk - 12-21-62-0002 12-21-63-0002 ลาเต้ LATTE กาแฟ นม และ ฟองนม Espresso, Milk, Foamed milk - 12-21-62-0002 12-21-63-0002

Can't render this file because it has a wrong number of fields in line 3.

File diff suppressed because it is too large Load diff

View file

@ -45,6 +45,8 @@ DEBUGVAR CurrentTotalCupInt
Var XMLLiveInfoEnable = 1 Var XMLLiveInfoEnable = 1
; xml verson 8.72 ; xml verson 8.72
If CountryName = "Singapore" Then If CountryName = "Singapore" Then
Var XMLLiveInfoEnable = 0 Var XMLLiveInfoEnable = 0
EndIf EndIf

View file

@ -19,7 +19,11 @@
Var XMLFileVideo = "true" Var XMLFileVideo = "true"
DEBUGVAR XMLFileVideo DEBUGVAR XMLFileVideo
Var SoldCupStage = "Enable"
If CountryName = "Singapore" Then
Var SoldCupStage = "Invisible"
EndIf
</EventOpen> </EventOpen>
;include="ROOT/taobin_project/inc/video.inc" ;include="ROOT/taobin_project/inc/video.inc"
@ -52,117 +56,63 @@
<X> 39 </X> <X> 39 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 148 </X> <X> 148 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 257 </X> <X> 257 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 383 </X> <X> 383 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 492 </X> <X> 492 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 601 </X> <X> 601 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 730 </X> <X> 730 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 839 </X> <X> 839 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<Image> <Image>
<X> 948 </X> <X> 948 </X>
<Y> 450 </Y> <Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename> <Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
<State> eval( <State> SoldCupStage </State>
If CountryName = "Singapore" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Image> </Image>
<FlipNumber> <FlipNumber>
@ -177,13 +127,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[0] </Value> <Value> SoldCupDigit[0] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -198,13 +144,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[1] </Value> <Value> SoldCupDigit[1] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -219,13 +161,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[2] </Value> <Value> SoldCupDigit[2] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -240,13 +178,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[3] </Value> <Value> SoldCupDigit[3] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -261,13 +195,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[4] </Value> <Value> SoldCupDigit[4] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -282,13 +212,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[5] </Value> <Value> SoldCupDigit[5] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -303,13 +229,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[6] </Value> <Value> SoldCupDigit[6] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -324,13 +246,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[7] </Value> <Value> SoldCupDigit[7] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<FlipNumber> <FlipNumber>
@ -345,13 +263,9 @@
<Duration> 1500 </Duration> <Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align> <Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[8] </Value> <Value> SoldCupDigit[8] </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</FlipNumber> </FlipNumber>
<Text> <Text>
@ -362,13 +276,9 @@
<Font> KanitMediumTTF </Font> <Font> KanitMediumTTF </Font>
<Color> HeadlineColor </Color> <Color> HeadlineColor </Color>
<Value> cups_sold_text </Value> <Value> cups_sold_text </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Text> </Text>
<Text> <Text>
@ -380,13 +290,9 @@
<Font> KanitMediumTTF </Font> <Font> KanitMediumTTF </Font>
<Color> HeadlineColor </Color> <Color> HeadlineColor </Color>
<Value> "," </Value> <Value> "," </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Text> </Text>
<Text> <Text>
@ -398,13 +304,9 @@
<Font> KanitMediumTTF </Font> <Font> KanitMediumTTF </Font>
<Color> HeadlineColor </Color> <Color> HeadlineColor </Color>
<Value> "," </Value> <Value> "," </Value>
<State> eval(
If CountryName = "Singapore" Then <State> SoldCupStage </State>
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
) </State>
</Text> </Text>