SGP+WTC: fix get your change not blue theme
This commit is contained in:
parent
e938af0345
commit
5765ad15fa
3 changed files with 230 additions and 8 deletions
207
inter/whatthecup/sgp/xml/page_get_yourchange-SGP_blue.xml
Normal file
207
inter/whatthecup/sgp/xml/page_get_yourchange-SGP_blue.xml
Normal file
|
|
@ -0,0 +1,207 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> BackgroundColor </Background>
|
||||
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
Var LangButtonEnable = "Enable"
|
||||
|
||||
If CountryName = "Singapore" Then
|
||||
Var LangButtonEnable = "Invisible"
|
||||
EndIf
|
||||
|
||||
If CountryName = "HongKong" Then
|
||||
Var LangButtonEnable = "Invisible"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR LangButtonEnable
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||
|
||||
If CountryName = "Singapore" Then
|
||||
Var show_btp = ""
|
||||
Var show_btn = ""
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page_thankyou_en"
|
||||
Else
|
||||
|
||||
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||
|
||||
If CountryName = "Singapore" Then
|
||||
Var show_btp = ""
|
||||
Var show_btn = ""
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page_thankyou"
|
||||
EndIf
|
||||
|
||||
If show_eng = "true" Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Dont_forget_your_changes_below.mp3"
|
||||
Else
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Dont_forget_your_changes_below.mp3"
|
||||
EndIf
|
||||
|
||||
Var imgGetChange = "/imgGetChange.png"
|
||||
|
||||
;inter-image
|
||||
If CountryName = "Malaysia" Then
|
||||
Var imgGetChange = "/imgGetChange-MYR.png"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If CountryName = "Indonesia" Then
|
||||
Var imgGetChange = "/imgGetChange-IDR.png"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If CountryName = "Singapore" Then
|
||||
Var imgGetChange = "/imgGetChange-SGP.png"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If CountryName = "HongKong" Then
|
||||
Var imgGetChange = "/imgGetChange-HKG.png"
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If CountryName = "UnitedArabEmirates Dubai" Then
|
||||
Var imgGetChange = "/imgGetChange-UAE_DUBAI.png"
|
||||
EndIf
|
||||
|
||||
;INT StoreCreditAmount
|
||||
Var StoreCreditAmountStr !assigned StringFmt( StoreCreditAmount, DisplayFormat, PreScaleConvertShow )
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
If Timeout >= 2 Then
|
||||
|
||||
If ChangeStatus = "payout-end" Then
|
||||
Var Timeout = 30
|
||||
EndIf
|
||||
|
||||
If Seeker = "curr" Then
|
||||
Var Timeout = 30
|
||||
EndIf
|
||||
|
||||
If Timeout >= 30 Then
|
||||
|
||||
If Seeker.PayWithQR = 0 Then
|
||||
DEBUGVAR TxRef1
|
||||
Var PayDetail2 = ToppingDetail
|
||||
DEBUGVAR PayDetail
|
||||
DEBUGVAR PayDetail2
|
||||
|
||||
UpdateTxRef2 TxRef1 ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate PayO2 PdpaAccept VendingDiscount VendingCampaign PayReference PayType CreditReference PayDetail PayDetail2
|
||||
EndIf
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
||||
Var Brew3ConInter = CountryRootPath + "/xml/page_brewing3Conti.xml"
|
||||
|
||||
If Seeker = "next" Then
|
||||
;CoinBack
|
||||
Open Brew3ConInter
|
||||
Else
|
||||
Open Brew3Inter
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If New_Payment = 1 Then
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/payment.ev"
|
||||
EndIf
|
||||
|
||||
If Seeker = "next" Then
|
||||
;CoinBack
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
;If New_Payment = 1 Then
|
||||
; TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/payment.ev"
|
||||
;EndIf
|
||||
|
||||
;If Seeker = "next" Then
|
||||
;CoinBack
|
||||
; Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
;Else
|
||||
; Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
;EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 990 </X>
|
||||
<Y> 416 </Y>
|
||||
<State> LangButtonEnable </State>
|
||||
<Filename> show_btn </Filename>
|
||||
<FilenamePress> show_btp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 70 </X>
|
||||
<Y> 932 </Y>
|
||||
<Filename> Var( DirImage + imgGetChange ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 1123 </Y>
|
||||
<Size> 144 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 1080 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> PopupBodyTextColor </Color>
|
||||
<Value> StoreCreditAmountStr </Value>
|
||||
</Text>
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue