mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
Merge branch 'master' of github.com:brmlab/brmbar
This commit is contained in:
commit
48c583a81c
2 changed files with 29 additions and 0 deletions
|
@ -58,6 +58,8 @@ Item {
|
|||
if (acct.acctype == "cash") { //Copied from BarButton.onButtonClick
|
||||
shop.sellItemCash(dbid)
|
||||
status_text.setStatus("Sold! Put " + price + " Kč in the money box.", "#ffff7c")
|
||||
} else if (!shop.canSellItem(dbid, acct.id)) {
|
||||
status_text.setStatus("NOT SOLD! "+acct.name+"'s credit is TOO LOW: "+shop.balance_user(acct.id), "#ff4444")
|
||||
} else {
|
||||
var balance = shop.sellItem(dbid, acct.id)
|
||||
status_text.setStatus("Sold! "+acct.name+"'s credit is "+balance+".", "#ffff7c")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue