replace placeholders with correct fish images
This commit is contained in:
@@ -645,12 +645,18 @@ def drawShopEntities(app):
|
||||
#draw bait purchases
|
||||
for name, sceneFilter, left, right, top, bottom in [interactable for interactable in app.INTERACTABLES if interactable[0].startswith("bait-buy:")]:
|
||||
displayName = name.split(":")[1]
|
||||
bait = [b for b in AVAILABLE_BAITS if b[0] == displayName][0]
|
||||
|
||||
drawRect(left, top, right - left, bottom - top, fill=('gray' if displayName in app.save["owned_baits"] else 'rosyBrown'), border=('green' if displayName == app.save["current_bait"] else'bisque'),borderWidth=4)
|
||||
|
||||
drawLabel(displayName, left + (right-left) / 2, bottom - 20, align="center")
|
||||
|
||||
img_file = [b for b in AVAILABLE_BAITS if b[0] == displayName][0][3]
|
||||
price = bait[2]
|
||||
|
||||
drawLabel("$" + str(price), left + (right-left) / 2, bottom - 10, align="center",size=8)
|
||||
|
||||
|
||||
img_file = bait[3]
|
||||
|
||||
|
||||
#Image creds: ALL ICONS FROM https://www.flaticon.com
|
||||
|
||||
Reference in New Issue
Block a user