viewtopic.php?p=466433
viewtopic.php?t=40730
I am trying to add the cost of clothing to my shop, alongside an image. I've tried the fixed and button methods shown in both links, but nothing happens. no images, buttons, or text are displayed, and neither is a bug popping up.
Here is the code I'm trying to insert my price tags into (storepage 3 is for testing the code):
Code: Select all
hbox:
xalign 0.65
yalign 0.5
grid 4 2:
style_prefix "window"
spacing 20
if threadz.storepage == 0:
for key in wardrobe.top_lock:
frame:
imagebutton idle key:
action SetVariable("threadz.receipt", key), Jump("lucy_receipt")
elif threadz.storepage == 1:
for key in wardrobe.pant_lock:
frame:
imagebutton idle key:
action SetVariable("threadz.receipt", key), Jump("lucy_receipt")
elif threadz.storepage == 2:
for key in wardrobe.ling_lock:
frame:
imagebutton idle key:
action SetVariable("threadz.receipt", key), Jump("lucy_receipt")
elif threadz.storepage == 3:
for key in wardrobe.top_unlock:
frame:
button idle key:
action SetVariable("threadz.receipt", key), Jump("lucy_receipt")
Code: Select all
default wardrobe = Wardrobe(
top_unlock = {"turtleneck":{"Description": "A boring cardigan."}},
top_lock = {"longsleeve":{"Description": "A green long-sleeved top", "cost": 50}},