TSpellBox


Croquet-Teapot

Comment:

TSpellBox is a test object used to allow the pointer to select a tool.

Hierarchy:

ProtoObject
Object
TObject
TFrame
TGroup
TButton
TSpellBox

Summary:

instance variables:

spellClass

methods:

instance class
events initialize instance creation

Detail:

instance variables:

spellClass

instance methods:

events
pointerUp: pointer


	(super pointerUp: pointer) ifTrue:[
		pointer setSpell: spellClass.
		].

initialize
initializeClass: class texture: txtr


	| box |
	super initialize.
	box _ TCube new.
	box texture: txtr.
	box extent: (B3DVector3 x: 0.25 y: 0.25 z:0.25).
	super initializeFrame: box.
	self persist: true.
	spellClass _ class.
	^self
initializeWithFrame: frm class: class


	super initializeWithFrame: frm.
	spellClass _ class.
	^self

class methods:

^top


- made by Dandelion -