147 lines
3.3 KiB
XML
147 lines
3.3 KiB
XML
|
|
<Page>
|
||
|
|
<Width> 1080 </Width>
|
||
|
|
<Height> 1312 </Height>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<Background> "0x2c2928" </Background>
|
||
|
|
|
||
|
|
<EventOpen>
|
||
|
|
|
||
|
|
Coin ON
|
||
|
|
; Var TestCoinLine1 = "กรุณาใส่เงิน . . ."
|
||
|
|
Var TestCoinLine1 = "insert money . . ."
|
||
|
|
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด 0 บาท"
|
||
|
|
|
||
|
|
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
|
||
|
|
Var TestCoinLine2 = "total amount "
|
||
|
|
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
|
||
|
|
|
||
|
|
Var RemainAmountStr1 = 0
|
||
|
|
Var LastCoin = 0
|
||
|
|
Var openTextTest20bath = "Enable"
|
||
|
|
Var currentStage = "test20bath"
|
||
|
|
|
||
|
|
DEBUGVAR currentStage
|
||
|
|
DEBUGVAR LastCoin
|
||
|
|
|
||
|
|
|
||
|
|
</EventOpen>
|
||
|
|
<EventCoin>
|
||
|
|
|
||
|
|
Var LastCoin = CoinAmount - LastCoin
|
||
|
|
Var RemainAmountStr1 !assigned StringFmt( LastCoin, DisplayFormat, PreScaleConvertShow )
|
||
|
|
|
||
|
|
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
|
||
|
|
|
||
|
|
DEBUGVAR currentStage
|
||
|
|
DEBUGVAR LastCoin
|
||
|
|
|
||
|
|
If currentStage = "test20bath" Then
|
||
|
|
If LastCoin = 20 Then
|
||
|
|
Open "ROOT/taobin_project/xml/page_test_money_change.xml"
|
||
|
|
EndIf
|
||
|
|
EndIf
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
; Var TestCoinLine1 = "ท่านได้ใส่เงินจำนวน "
|
||
|
|
Var TestCoinLine1 = "insert money "
|
||
|
|
Var TestCoinLine1 = TestCoinLine1 + RemainAmountStr1
|
||
|
|
; Var TestCoinLine1 = TestCoinLine1 + " บาท"
|
||
|
|
|
||
|
|
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด "
|
||
|
|
Var TestCoinLine2 = "total amount "
|
||
|
|
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
|
||
|
|
; Var TestCoinLine2 = TestCoinLine2 + " บาท"
|
||
|
|
|
||
|
|
Var LastCoin = CoinAmount
|
||
|
|
|
||
|
|
; Var RemainAmountStr = RemainAmountStr + "###size=90"
|
||
|
|
|
||
|
|
|
||
|
|
Refresh
|
||
|
|
</EventCoin>
|
||
|
|
|
||
|
|
<Timeout> 1000 </Timeout>
|
||
|
|
<EventTimeout>
|
||
|
|
|
||
|
|
Refresh
|
||
|
|
TimerReset
|
||
|
|
|
||
|
|
</EventTimeout>
|
||
|
|
|
||
|
|
|
||
|
|
; header
|
||
|
|
<Image>
|
||
|
|
<X> 0 </X>
|
||
|
|
<Y> 0 </Y>
|
||
|
|
<Height> 80 </Height>
|
||
|
|
<Width> 1080 </Width>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
|
||
|
|
</Image>
|
||
|
|
|
||
|
|
;back
|
||
|
|
<Button>
|
||
|
|
<X> 40 </X>
|
||
|
|
<Y> 20 </Y>
|
||
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
|
||
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
|
||
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<EventClick>
|
||
|
|
|
||
|
|
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
|
||
|
|
|
||
|
|
</EventClick>
|
||
|
|
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
|
||
|
|
<Text>
|
||
|
|
<X> 800 </X>
|
||
|
|
<Y> 20 </Y>
|
||
|
|
<Size> 19 </Size>
|
||
|
|
<Font> fontType1 </Font>
|
||
|
|
<Color> 0xe2e2e2 </Color>
|
||
|
|
<Value> Text1_9 </Value>
|
||
|
|
</Text>
|
||
|
|
|
||
|
|
|
||
|
|
;task
|
||
|
|
|
||
|
|
<Image>
|
||
|
|
<X> 280 </X>
|
||
|
|
<Y> 150 </Y>
|
||
|
|
<Height> 40 </Height>
|
||
|
|
<Width> 560 </Width>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/test_bank_header_page.png" </Filename>
|
||
|
|
</Image>
|
||
|
|
|
||
|
|
|
||
|
|
<Image>
|
||
|
|
<X> 280 </X>
|
||
|
|
<Y> 220 </Y>
|
||
|
|
<Height> 40 </Height>
|
||
|
|
<Width> 560 </Width>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/test_bank_20.png" </Filename>
|
||
|
|
<State> openTextTest20bath </State>
|
||
|
|
</Image>
|
||
|
|
|
||
|
|
|
||
|
|
<Button>
|
||
|
|
<X> 50 </X>
|
||
|
|
<Y> info_cancel_y </Y>
|
||
|
|
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
|
||
|
|
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
|
||
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||
|
|
<Volume> SoundVolume </Volume>
|
||
|
|
<EventClick>
|
||
|
|
Open "ROOT/taobin_project/xml/page_board.xml"
|
||
|
|
</EventClick>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
|
||
|
|
</Page>
|