Here are two fixes for Playfields in the omniuser environment. The first fixes a real bug, the second an inconsistency: Although Playfields behave like a Sketch in that they can be painted on, the graphic thus created could not be accessed like for a Sketch. Per Alan's suggestion I added a slot for the background, rather than changing existent behaviour. Andreas noted that the slot should be named "graphic" to be consistent with Sketches.
"Change Set: PlayfieldBackground-bf Date: 1 October 2002 Author: Bert Freudenberg
- When the backgroundMorph of a Playfield was dragged outside, odd things happened because the background inst var was not nilled out. Fixed. - Playfields now expose the graphic slot (located in cleaned up 'playfield' category)."
With these changes, a script can be made that cycles a playfield through various variations in background graphic, which are created by just putting multiple modified copies of the playfield into a holder. Useful, e.g, for simple multi-level games. No release date announced yet ;-)
-- Bert
squeak-dev@lists.squeakfoundation.org