Can't Nest CompoundSprites #26
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Due to expecting to call
draw_override
, there is an incompatibility when trying to add aZif::CompoundSprite
to the@sprites
array on anotherZif::CompoundSprite
.An example to illustrate this would be attempting to refactor the
ExampleApp::FormField
class to use aCompoundSprite
for the background, like switching it toExampleApp::MetalCutout
instead of the simple white rectangle.This class should probably be refactored a bit to handle this situation. The two major complications are:
draw_override
, and should reach into its descendants to draw themx/y
and zoomed relative to its parentsource_w/h
.The text was updated successfully, but these errors were encountered: