Currently I have three separate images for each item: One lying on the ground, one in the inventory, and one closeup view. As many items are small enough that the ground image and the inventory image can be the same, or large enough that the closeup image and the ground image can be the same, or they just differ in size but not in the actual image, I wanted to store a filename and zoom for each image inside the item.
For example, a potion looks the same no matter where it is (as opposed to a coat, which looks different on the ground than in detail view).
So I tried this:
But the image is displayed at full size. I tried "add" instead of "imagebutton" to see if that's only with imagebuttons, but still, no zoom.
Then I tried im.FactorScale instead of using the zoom property:
Code: Select all
That worked, but made the image ugly compared to the original and also the formerly used, downscaled saved version: semi-transparent areas became dull, smaller white lines almost disappeared etc. See attached image.
What I don't get is why zoom doesn't work with Image(), when it's listed in the property list where also xalign is listed, which is used in the docs as an example property for Image().