Adding an empty line doesn't solve the problem, unfortunately. Empty lines generally don't do much in Python, spaces do, and those are all fine.
This function doesn't work:
def Loot_MouseDown(flags, hotspot_id):
Loot_ButtonClicked()
return 0
This one does:
def Loot_MouseDown(flags, hotspot_id):
world.Note("Check 1")
Loot_ButtonClicked()
return 0
This function is called as the hotspot "mousedown" handler, just so you know, though I don't see how that would change anything.
Loot_ButtonClicked() calls the following:
def Loot_ButtonClicked():
world.WindowDrawImage(winid, "Loot1_clicked", 66, 1, 0, 0, 1, 0, 0, 0, 0)
It's definately not a drawing error. I don't even get an error, it just, you know, fails to work.
I'm going to try different names, maybe Python won't accept the current ones or something strange...
Edit:: my spacing seems to be off in this example, this is not the case in the actual code though.
Edit2:: added the code for Loot_ButtonClicked() |