This commit is contained in:
kong 2021-05-17 22:41:06 +07:00
parent 99b8594db8
commit 81a24c3b6f
5 changed files with 30 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -91,7 +91,7 @@
DEBUGVAR TermTemOnline
; Dtac.
Var CAMPAIGN1 = "true"
Var CAMPAIGN1 = "false"
If TaobinOnline = "true" Then
Var ShowButtonClickFull = "Invisible"

View file

@ -244,6 +244,14 @@
Var PayOfflineMode = 0
EndIf
If DisableUsingCode = "true" Then
SAVELOG "Diable code because using topping."
Var PayState2 = "Disable"
Var pay_with_code_image = DirImage + "/bp_pay_with_code_error.png"
Else
Var pay_with_code_image = DirImage + "/bp_pay_with_code.png"
EndIf
</EventOpen>
<EventActionOk>
@ -719,7 +727,7 @@
<State> PayState2</State>
<Filename> Var( DirImage + "/bn_pay_with_code.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_pay_with_code.png") </FilenamePress>
<FilenameDisable> Var( DirImage + "/bp_pay_with_code.png") </FilenameDisable>
<FilenameDisable> pay_with_code_image </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>

View file

@ -8,7 +8,9 @@
Var y_topping_bg = 912
DEBUGVAR video_menu_0
Var DisableUsingCode = "false"
; On open
Var lidAndStrawOldPageIgnore = "true"
Var SugarState1 = "Invisible"
@ -512,6 +514,9 @@
DEBUGVAR topping2
DEBUGVAR topping3
DEBUGVAR LidState
DEBUGVAR StarwState
; Set drink
Topping "Select" SelectDrink
@ -779,16 +784,18 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
SAVELOG "Press no shot 1"
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Var DisableUsingCode = "false"
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
@ -810,16 +817,18 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
SAVELOG "Press add shot 1"
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Var DisableUsingCode = "false"
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
@ -862,16 +871,18 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
SAVELOG "Press no shot 2"
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Var DisableUsingCode = "false"
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
@ -893,16 +904,18 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
SAVELOG "Press add shot 2"
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Var DisableUsingCode = "false"
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
Var DisableUsingCode = "true"
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp