Pygame Sprites representing parts of a slide that the user can
click.
|
|
|
|
|
__init__(self,
parent,
link,
id=None,
rectRel=None,
layer=0.0,
cursor='',
delay=.1,
zip=False,
soundfile=None,
text=None,
drag=None,
_template=False,
onClick=lambda self: Hotspot.transition(self),
onHighlight=lambda self: None,
onTransition=standard._noTransition)
Creates a new Hotspot. |
source code
|
|
|
|
_getRect(self)
The portion of the screen the user may click to activate the Hotspot. |
source code
|
|
|
|
|
|
|
_getLink(self)
The Panel the user will transition to when the Hotspot is activated |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
draw(self,
screen)
Draws the Hotspot's border, if the game is in design mode. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from pygame.sprite.Sprite:
__repr__,
add,
add_internal,
alive,
groups,
kill,
remove,
remove_internal,
update
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|