Do straw and lid
BIN
image/topping/bn_checkbox.png
Normal file
|
After Width: | Height: | Size: 655 B |
BIN
image/topping/bnlid.png
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
image/topping/bnstraw.png
Normal file
|
After Width: | Height: | Size: 796 B |
BIN
image/topping/bp_checkbox.png
Normal file
|
After Width: | Height: | Size: 1,013 B |
BIN
image/topping/bp_shot_2.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
image/topping/bplid.png
Normal file
|
After Width: | Height: | Size: 664 B |
BIN
image/topping/bpstraw.png
Normal file
|
After Width: | Height: | Size: 923 B |
BIN
image/topping/img_ontop_shot2.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
image/topping_en/Rectangle 291.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
image/topping_en/block_strawlid.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
|
|
@ -5,7 +5,10 @@
|
|||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
Open "ROOT/taobin_project/xml/page_topping_select.xml"
|
||||
If JXMLVersionInt > 325 Then
|
||||
Open "ROOT/taobin_project/xml/page_topping_select.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
; On open
|
||||
Var SugarState1 = "Invisible"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@
|
|||
Var showShotEnable = "Invisible"
|
||||
|
||||
|
||||
Var StarwState = "Enable"
|
||||
|
||||
; On open
|
||||
Var LidState = Lid1Status
|
||||
|
||||
|
|
@ -69,12 +71,17 @@
|
|||
|
||||
EndIf
|
||||
|
||||
Var lid_straw_bg_iamge = DirImage + "/block_strawonly.png"
|
||||
Var LidState = "Enable"
|
||||
|
||||
If LidState = "Enable" Then
|
||||
Var lid_straw_bg_iamge = DirImage + "/block_strawlid.png"
|
||||
Var ShowLidStraw = "Enable"
|
||||
Var ShowLidOnly = "Invisible"
|
||||
Else
|
||||
Var ShowLidStraw = "Invisible"
|
||||
Var ShowLidOnly = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
|
||||
|
||||
CRLFToSpace showname
|
||||
|
|
@ -156,12 +163,6 @@
|
|||
</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>
|
||||
|
|
@ -379,7 +380,7 @@
|
|||
;Var showShotEnable = "Invisible"
|
||||
|
||||
Var y_lid_straw_bg = y_shot_coffee_bg + y_block
|
||||
|
||||
DEBUGVAR TOPPING2
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
|
|
@ -394,6 +395,8 @@
|
|||
;Var showShotEnable = "Invisible"
|
||||
|
||||
Var y_lid_straw_bg = y_shot_coffee_bg + y_block
|
||||
|
||||
DEBUGVAR TOPPING2
|
||||
Refresh
|
||||
EndIf
|
||||
;-END
|
||||
|
|
@ -517,96 +520,22 @@
|
|||
<Value> PriceDrinkTmpShow </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
;- FRAME SCORELLL
|
||||
<FrameScroll>
|
||||
<X> 44 </X>
|
||||
<Y> y_topping_bg </Y>
|
||||
<Width> 1080 </Width>
|
||||
<ScrollHeight> "auto" </ScrollHeight>
|
||||
<ScrollHeight> "auto-all" </ScrollHeight>
|
||||
<Scroll> "Vertical" </Scroll>
|
||||
<Column> 1 </Column>
|
||||
|
||||
<Block>
|
||||
;-BEGIN shot layout
|
||||
<Width> 986 </Width>
|
||||
<Height> 232 </Height>
|
||||
<State> ShotCoffeeBG </State>
|
||||
|
||||
<Image>
|
||||
<Filename> backGroundAddExtra </Filename>
|
||||
</Image>
|
||||
|
||||
;
|
||||
<Button>
|
||||
<X> 56 </X>
|
||||
<Y> 102 </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> 881 </X>
|
||||
<Y> 102 </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
|
||||
|
||||
|
||||
;- Begin topping1
|
||||
</Block>
|
||||
<Block>
|
||||
<Width> 986 </Width>
|
||||
<Height> 208 </Height>
|
||||
<State> "Enable"</State>
|
||||
<Height> 210 </Height>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<State> BGSugar </State>
|
||||
; sugar layout
|
||||
<Image>
|
||||
<State> BGSugar </State>
|
||||
|
|
@ -797,18 +726,223 @@
|
|||
;- END topping1
|
||||
</Block>
|
||||
|
||||
;-BEGIN shot layout
|
||||
<Block>
|
||||
<Width> 986 </Width>
|
||||
<Height> 232 </Height>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<State> ShotCoffeeBG </State>
|
||||
<Image>
|
||||
<Filename> backGroundAddExtra </Filename>
|
||||
</Image>
|
||||
|
||||
;
|
||||
<Button>
|
||||
<X> 56 </X>
|
||||
<Y> 102 </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> 881 </X>
|
||||
<Y> 102 </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>
|
||||
</Block>
|
||||
|
||||
;-END
|
||||
|
||||
|
||||
|
||||
;-BEGIN Lid straw
|
||||
<Block>
|
||||
<Width> 986 </Width>
|
||||
<Height> 232 </Height>
|
||||
<State> "Enable"</State>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<State> ShowLidOnly </State>
|
||||
<Image>
|
||||
<State> "Enable" </State>
|
||||
<Filename> lid_straw_bg_iamge </Filename>
|
||||
<Filename> Var( DirImage + "/block_strawonly.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
; straw left
|
||||
<Button>
|
||||
<X> 48 </X>
|
||||
<Y> 95 </Y>
|
||||
<State> StarwState </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> Var( DirImage + "/bnstraw.png" )</Filename>
|
||||
<FilenamePress> Var( DirImage + "/bpstraw.png" )</FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG StarwState
|
||||
If StarwState = "Press" Then
|
||||
Var StarwState = "Enable"
|
||||
Else
|
||||
Var StarwState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 873 </X>
|
||||
<Y> 105 </Y>
|
||||
<State> StarwState </State>
|
||||
<Mode> "No" </Mode>
|
||||
Filename> "ROOT/taobin_project/image/topping/bn_checkbox.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping/bp_checkbox.png" </FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG StarwState
|
||||
If StarwState = "Press" Then
|
||||
Var StarwState = "Enable"
|
||||
Else
|
||||
Var StarwState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Block>
|
||||
;- END
|
||||
|
||||
;-BEGIN Lid straw
|
||||
<Block>
|
||||
<Width> 986 </Width>
|
||||
<Height> 274 </Height>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<State> ShowLidStraw </State>
|
||||
<Image>
|
||||
<Filename> Var( DirImage + "/block_strawlid.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
; straw left
|
||||
<Button>
|
||||
<X> 48 </X>
|
||||
<Y> 95 </Y>
|
||||
<State> StarwState </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> Var( DirImage + "/bnstraw.png" )</Filename>
|
||||
<FilenamePress> Var( DirImage + "/bpstraw.png" )</FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG "Click straw cb"
|
||||
If StarwState = "Press" Then
|
||||
Var StarwState = "Enable"
|
||||
Else
|
||||
Var StarwState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 873 </X>
|
||||
<Y> 105 </Y>
|
||||
<State> StarwState </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping/bn_checkbox.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping/bp_checkbox.png" </FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG "Click straw cb"
|
||||
If StarwState = "Press" Then
|
||||
Var StarwState = "Enable"
|
||||
Else
|
||||
Var StarwState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; LID left
|
||||
<Button>
|
||||
<X> 48 </X>
|
||||
<Y> 175 </Y>
|
||||
<State> LidState </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> Var( DirImage + "/bnlid.png" )</Filename>
|
||||
<FilenamePress> Var( DirImage + "/bplid.png" )</FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG "Click LID pic"
|
||||
If LidState = "Press" Then
|
||||
Var LidState = "Enable"
|
||||
Else
|
||||
Var LidState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 873 </X>
|
||||
<Y> 185 </Y>
|
||||
<State> LidState </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping/bn_checkbox.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping/bp_checkbox.png" </FilenamePress>
|
||||
<EventClick>
|
||||
SAVELOG "Click LID cb"
|
||||
If LidState = "Press" Then
|
||||
Var LidState = "Enable"
|
||||
Else
|
||||
Var LidState = "Press"
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Block>
|
||||
|
||||
</FrameScroll>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
|
|
|||
|
|
@ -147,14 +147,17 @@
|
|||
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||
If TaobinOnline = "true" Then
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
|
||||
EndIf
|
||||
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
|
||||
|
||||
|
||||
If TermTemOnline = "true" Then
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
|
||||
EndIf
|
||||
;If TaobinOnline = "true" Then
|
||||
; OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
|
||||
;EndIf
|
||||
;If TermTemOnline = "true" Then
|
||||
; OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
|
||||
;EndIf
|
||||
|
||||
TopView "show"
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||
</EventClick>
|
||||
|
|
|
|||