replace placeholders with correct fish images
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"cash": 26.0, "owned_baits": ["Worms"], "owned_upgrades": [], "current_bait": "Worms"}
|
||||
{"cash": 112.0, "owned_baits": ["Worms", "Prawns"], "owned_upgrades": [], "current_bait": "Prawns"}
|
||||
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 29 KiB |