Drag[en]gine Script Module DragonScript
1.23
|
Interact handler for interactive main menu. More...
Public Member Functions | |
bool | canHitCollider (Collider owner, Collider collider) |
All colliders can be hit. More... | |
void | colliderChanged (Collider owner) |
Not used. More... | |
void | collisionResponse (Collider owner, CollisionInfo info) |
Store hot-spot if hit collider is a hot-spot. More... | |
void | dispose () |
Dispose of widget. More... | |
IMMBehaviorHotSpot.Instance | getHoverHotSpot () |
Hot-spot under cursor or null. More... | |
InteractiveMainMenu | getMainMenu () |
Interactive main menu. More... | |
IMMInteract | new (InteractiveMainMenu mainMenu) |
Create interact handler for interactive main menu. More... | |
void | onButtonPress (MouseEvent event) |
Mouse button pressed. More... | |
void | onKeyPress (KeyEvent event) |
Key pressed. More... | |
void | update (float elapsed) |
Update camera. More... | |
Notifications. |
Protected Member Functions | |
void | clearHotSpot () |
Clear hotspot. More... | |
CollisionFilter | createCollisionFilter () |
Create collision filter. More... | |
void | hotSpotFromMouseCursor () |
Update hotspot from mouse cursor position. More... | |
Interact handler for interactive main menu.
Checks for hot-spot the mouse cursor is hovering above and triggers actions if primary mouse button is pressed.
bool Dragengine.Gui.MainMenus.Interactive.IMMInteract.canHitCollider | ( | Collider | owner, |
Collider | collider | ||
) |
All colliders can be hit.
Implements Dragengine.Scenery.ColliderListener.
|
protected |
Clear hotspot.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.colliderChanged | ( | Collider | owner | ) |
Not used.
Implements Dragengine.Scenery.ColliderListener.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.collisionResponse | ( | Collider | owner, |
CollisionInfo | info | ||
) |
Store hot-spot if hit collider is a hot-spot.
Implements Dragengine.Scenery.ColliderListener.
|
protected |
Create collision filter.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.dispose | ( | ) |
Dispose of widget.
IMMBehaviorHotSpot.Instance Dragengine.Gui.MainMenus.Interactive.IMMInteract.getHoverHotSpot | ( | ) |
Hot-spot under cursor or null.
InteractiveMainMenu Dragengine.Gui.MainMenus.Interactive.IMMInteract.getMainMenu | ( | ) |
Interactive main menu.
|
protected |
Update hotspot from mouse cursor position.
IMMInteract Dragengine.Gui.MainMenus.Interactive.IMMInteract.new | ( | InteractiveMainMenu | mainMenu | ) |
Create interact handler for interactive main menu.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.onButtonPress | ( | MouseEvent | event | ) |
Mouse button pressed.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.onKeyPress | ( | KeyEvent | event | ) |
Key pressed.
void Dragengine.Gui.MainMenus.Interactive.IMMInteract.update | ( | float | elapsed | ) |
Update camera.