543 lines
11 KiB
XML
543 lines
11 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
<Background> "0xeae6e1" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventOpen>
|
|
; On open
|
|
Var SugarState1 = "Invisible"
|
|
Var SugarState2 = "Invisible"
|
|
Var SugarState3 = "Invisible"
|
|
Var SugarState4 = "Invisible"
|
|
Var SugarState5 = "Invisible"
|
|
|
|
;Var SugarState1 = "Enable"
|
|
|
|
|
|
SAVELOG TOPPING1
|
|
|
|
SAVELOG toppingID1Default
|
|
Var topping1 = toppingID1Default
|
|
SAVELOG toppingID1index1
|
|
SAVELOG toppingID1index2
|
|
SAVELOG toppingID1index3
|
|
SAVELOG toppingID1index4
|
|
|
|
SAVELOG TOPPING2
|
|
SAVELOG TOPPING3
|
|
SAVELOG TOPPING4
|
|
|
|
Var SugarState2 = "Enable"
|
|
Var SugarState3 = "Pressforever"
|
|
Var SugarState4 = "Enable"
|
|
Var SugarState5 = "Enable"
|
|
Var BGSugar = "Enable"
|
|
|
|
;SAVELOG PreviseXMLFileName2
|
|
|
|
|
|
Var y_sugar_block = 105
|
|
Var y_block = 206
|
|
|
|
Var y_topping_bg = 912
|
|
Var y_topping = 912 + y_sugar_block
|
|
|
|
Var y2_topping_bg = y_topping_bg + y_block
|
|
Var y2_topping = y_topping + y_block
|
|
|
|
Var BugFlag = 0
|
|
|
|
If show_eng = "true" Then
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping_en"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
|
|
Else
|
|
Var DirImage = "ROOT/taobin_project/image/topping"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
EndIf
|
|
|
|
CRLFToSpace showname
|
|
CRLFToSpace showdesc
|
|
;SAVELOG showname
|
|
|
|
|
|
;-BEGIN shot layout
|
|
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
|
|
|
|
If TOPPING2 = "shot coffee" Then
|
|
|
|
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
|
|
Var y_shot_coffee_bg = y2_topping_bg
|
|
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
|
|
Var ShotCoffeeBG = "Enable"
|
|
Var showShotEnable = "Enable"
|
|
;Var ShotCoffeeBG = "Invisible"
|
|
;Var showShotEnable = "Invisible"
|
|
Refresh
|
|
EndIf
|
|
;-END
|
|
|
|
;- Begin Price
|
|
Var PriceDrinkNoTop = PriceDrink
|
|
Var PriceDrinkTmp = PriceDrink
|
|
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
|
|
Var Timeout = 0
|
|
|
|
SAVELOG PriceDrinkTmp
|
|
;- End
|
|
|
|
If RoadShow = "true" Then
|
|
Var PriceShowValue = "Free"
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Sweet.mp3"
|
|
Else
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/select_level.mp3"
|
|
EndIf
|
|
|
|
|
|
</EventOpen>
|
|
<Timeout> 30000 </Timeout>
|
|
<EventTimeout>
|
|
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
|
</EventTimeout>
|
|
|
|
<Button>
|
|
<X> 990 </X>
|
|
<Y> 438 </Y>
|
|
<Filename> show_btn </Filename>
|
|
<FilenamePress> show_btp </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
If show_eng = "true" Then
|
|
Var show_eng = "false"
|
|
Else
|
|
Var show_eng = "true"
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping_en/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
|
|
Else
|
|
Var DirImage = "ROOT/taobin_project/image/topping/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
EndIf
|
|
|
|
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
|
|
|
|
CRLFToSpace showname
|
|
CRLFToSpace showdesc
|
|
|
|
RefreshAll
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 990 </X>
|
|
<Y> 438 </Y>
|
|
<Filename> show_btn </Filename>
|
|
<FilenamePress> show_btp </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
If show_eng = "true" Then
|
|
Var show_eng = "false"
|
|
Else
|
|
Var show_eng = "true"
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping_en/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
|
|
Else
|
|
Var DirImage = "ROOT/taobin_project/image/topping/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
EndIf
|
|
CRLFToSpace showname
|
|
|
|
If show_eng = "true" Then
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Sweet.mp3"
|
|
Else
|
|
Play "/mnt/sdcard/coffeevending/sounds/selectSugar.wav"
|
|
EndIf
|
|
|
|
|
|
RefreshAll
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;<Image>
|
|
;<X> 0 </X>
|
|
;<Y> 0 </Y>
|
|
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
|
;</Image>
|
|
|
|
<Video>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 1080</Width>
|
|
<Height> 380 </Height>
|
|
<Loop> "true" </Loop>
|
|
<Filename> video_menu_0 </Filename>
|
|
</Video>
|
|
|
|
; back
|
|
<Button>
|
|
<X> 19 </X>
|
|
<Y> 420 </Y>
|
|
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
;Open PreviseOfPreviseXMLFileName2
|
|
Open "ROOT/taobin_project/xml/page_catalog.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<EventMachine>
|
|
|
|
|
|
SAVELOG TOPPING1
|
|
SAVELOG MenuCodeName
|
|
;SAVELOG toppingID1Default
|
|
|
|
If BugFlag = 1 Then
|
|
|
|
Else
|
|
|
|
|
|
If RoadShow = "true" Then
|
|
Var PriceShowValue = "Free"
|
|
EndIf
|
|
|
|
SAVELOG toppingID2price1
|
|
SAVELOG toppingID2price2
|
|
SAVELOG toppingID2price3
|
|
EndIf
|
|
|
|
|
|
</EventMachine>
|
|
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 374 </X>
|
|
<Y> 436 </Y>
|
|
<Width> 331 </Width>
|
|
<Height> 436 </Height>
|
|
<Filename> PictureDrink </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 0 </X>
|
|
<Y> 752 </Y>
|
|
<Width> 1080</Width>
|
|
<Align> Center </Align>
|
|
<Size> 72 </Size>
|
|
<Font> KanitMediumTTF </Font>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> showname </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 0 </X>
|
|
<Y> 836 </Y>
|
|
<Width> 1080</Width>
|
|
<Align> Center </Align>
|
|
<Size> 24 </Size>
|
|
<Font> KanitLightTTF </Font>
|
|
<Color> 0x6F5F51 </Color>
|
|
<Value> showdesc </Value>
|
|
</Text>
|
|
|
|
|
|
; back
|
|
<Button>
|
|
<X> 44 </X>
|
|
<Y> 1785 </Y>
|
|
<Filename> Var( DirImage + "/bn_cancel.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_cancel.png" )</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
Open PreviseOfPreviseXMLFileName2
|
|
;"ROOT/taobin_project/xml/page_catalog.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; next
|
|
<Button>
|
|
<X> 447 </X>
|
|
<Y> 1785 </Y>
|
|
<Filename> Var( DirImage + "/bn_next.png" )</Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_next.png" )</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var PriceDrink = PriceDrinkTmp
|
|
|
|
; Set drink
|
|
Topping "Select" SelectDrink
|
|
|
|
; Set option toppinng and pack
|
|
Topping "Select1-ID" topping1
|
|
Topping "Select2-ID" topping2
|
|
Topping "Select3-ID" topping3
|
|
|
|
; Pack
|
|
Topping "Pack" Seeker.ExtendData
|
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_payment.xml"
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 924 </X>
|
|
<Y> 1804 </Y>
|
|
<Font> KanitTTF </Font>
|
|
<Size> 36 </Size>
|
|
<Width> 1080 </Width>
|
|
<Color> 0xFFFFFF </Color>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
<Value> PriceDrinkTmpShow </Value>
|
|
</Text>
|
|
|
|
;-BEGIN shot layout
|
|
|
|
<Image>
|
|
<X> 44 </X>
|
|
<Y> y_shot_coffee_bg </Y>
|
|
<State> ShotCoffeeBG </State>
|
|
<Filename> backGroundAddExtra </Filename>
|
|
</Image>
|
|
|
|
;
|
|
<Button>
|
|
<X> 100 </X>
|
|
<Y> y_shot_coffee_bt </Y>
|
|
<State> showShotEnable </Stage>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/add_shot_img.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/add_shot_img_2.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG showShotEnable
|
|
|
|
If showShotEnable = "Press" Then
|
|
Var showShotEnable = "Enable"
|
|
Var PriceDrinkTmp = PriceDrinkNoTop
|
|
Var topping2 = toppingID2index1
|
|
Else
|
|
Var showShotEnable = "Press"
|
|
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
|
|
Var topping2 = toppingID2index2
|
|
EndIf
|
|
|
|
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
|
|
|
|
SAVELOG PriceDrinkTmp
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 925 </X>
|
|
<Y> y_shot_coffee_bt </Y>
|
|
<State> showShotEnable </Stage>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_nch.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_ch.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG showShotEnable
|
|
|
|
If showShotEnable = "Press" Then
|
|
Var showShotEnable = "Enable"
|
|
Var PriceDrinkTmp = PriceDrinkNoTop
|
|
Var topping2 = toppingID2index1
|
|
Else
|
|
Var showShotEnable = "Press"
|
|
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
|
|
Var topping2 = toppingID2index2
|
|
EndIf
|
|
|
|
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
|
|
|
|
|
|
SAVELOG PriceDrinkTmp
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
;-END
|
|
|
|
|
|
; sugar layout
|
|
<Image>
|
|
<X> 44 </X>
|
|
<Y> y_topping_bg </Y>
|
|
<State> BGSugar </State>
|
|
<Filename> Var( DirImage + "/img_sugar.png" )</Filename>
|
|
</Image>
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 181 </X>
|
|
<Y> y_topping </Y>
|
|
<State> SugarState1 </Stage>
|
|
<Filename> Var( DirImage + "/bn_sugar1.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_sugar1.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 327 </X>
|
|
<Y> y_topping </Y>
|
|
<State> SugarState2 </Stage>
|
|
<Filename> Var( DirImage + "/bn_sugar2.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_sugar2.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var SugarState1 = "Invisible"
|
|
|
|
Var SugarState2 = "Pressforever"
|
|
Var SugarState3 = "Enable"
|
|
Var SugarState4 = "Enable"
|
|
Var SugarState5 = "Enable"
|
|
Var topping1 = toppingID1index1
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 503 </X>
|
|
<Y> y_topping </Y>
|
|
<State> SugarState3 </Stage>
|
|
<Filename> Var( DirImage + "/bn_sugar3.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_sugar3.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var SugarState1 = "Invisible"
|
|
|
|
Var SugarState2 = "Enable"
|
|
Var SugarState3 = "PressForever"
|
|
Var SugarState4 = "Enable"
|
|
Var SugarState5 = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 664 </X>
|
|
<Y> y_topping </Y>
|
|
<State> SugarState4 </Stage>
|
|
<Filename> Var( DirImage + "/bn_sugar4.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_sugar4.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var SugarState1 = "Invisible"
|
|
|
|
Var SugarState2 = "Enable"
|
|
Var SugarState3 = "Enable"
|
|
Var SugarState4 = "PressForever"
|
|
Var SugarState5 = "Enable"
|
|
Var topping1 = toppingID1index3
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar5
|
|
<Button>
|
|
<X> 836 </X>
|
|
<Y> y_topping </Y>
|
|
<State> SugarState5 </Stage>
|
|
<Filename> Var( DirImage + "/bn_sugar5.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_sugar5.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var SugarState1 = "Invisible"
|
|
|
|
Var SugarState2 = "Enable"
|
|
Var SugarState3 = "Enable"
|
|
Var SugarState4 = "Enable"
|
|
Var SugarState5 = "PressForever"
|
|
Var topping1 = toppingID1index4
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<EventSecurity>
|
|
Open "/media/bt/xml/security_alarm.xml"
|
|
</EventSecurity>
|
|
|
|
|
|
</Page>
|