I already noticed that and began subclassing it. I came back to the forum to post just that, but you beat me to it.
EDIT:
Also, I have been using pyglet.Image, not Sprite. Is that a problem? I have just been converting a PIL image (since the final result will use the PILCache) into a pyglet.Image and using a blit to display the appropriate part of the graphic, depending on the sizing mode that is selected.
ANOTHER EDIT:
Alrighty, implemented it into the actor panel. Selectable drawing modes include the following:
- Crop & Shrink: Images will be both scaled down and cropped to fit
- Shrink: Scales image down if too large, else the image is simply centered
- Stretch Aspect: The image will be stretched to fill panel while maintaining aspect ratio
- Cropped: Oversized images too large for the panel will simply be cropped
- Stretch: The entire image is stretched, and aspect ratio is ignored
I also made the character and battler graphic into a splitter panel, so you can modify the size of each to a degree without resizing the main window. Now I am going to implement changing the drawing mode simply by right-clicking the image and changing the mode via a context menu.