[BUG][FIX] Playfield background (was: [BUG] PasteUpMorph becomes a Sketch)

Bert Freudenberg squeak-dev at lists.squeakfoundation.org
Wed Oct 2 23:51:46 UTC 2002


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime at docserver.cac.washington.edu for more info.

--747459867-750384413-1033601761=:21122
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.44.0210030142281.21122 at balloon.cs.uni-magdeburg.de>

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

--747459867-750384413-1033601761=:21122
Content-Type: APPLICATION/X-GZIP; NAME="PlayfieldBackground-bf.1.cs.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0210030136010.21122 at balloon.cs.uni-magdeburg.de>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="PlayfieldBackground-bf.1.cs.gz"

H4sIAAAAAAAAAL1YW3PTRhR+9oP+w4l5kD3TmFwYoC7QSUJDKZBk6gBlmNBZ
SytrG2lX3V3FcYcf33N2JVmynUAJ06dYu2e/c78lPNYqh8nfJWeXGZMx7I/2
Rg9+3N0HlcDuDvxWZgvY29nZg48Zs9xYKIsYf4zh3u7+wwtQEvbgNLJqyrWn
YxZ2d8c7D8f7j6DIw62gf5QyOeMw4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+Q
jIpHLNw/h/6P3KyE+oYUhdtytAW75sz+nPZ47Oyx+rlfWftfu7XrtYIUAAA=
--747459867-750384413-1033601761=:21122--



More information about the Squeak-dev mailing list