Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.MainMenus.Interactive.IMMInteract Class Reference

Interact handler for interactive main menu. More...

Inheritance diagram for Dragengine.Gui.MainMenus.Interactive.IMMInteract:
Dragengine.Scenery.ColliderListener

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...
 

Detailed Description

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.

Member Function Documentation

◆ canHitCollider()

bool Dragengine.Gui.MainMenus.Interactive.IMMInteract.canHitCollider ( Collider  owner,
Collider  collider 
)

All colliders can be hit.

Implements Dragengine.Scenery.ColliderListener.

◆ clearHotSpot()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.clearHotSpot ( )
protected

Clear hotspot.

◆ colliderChanged()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.colliderChanged ( Collider  owner)

Not used.

Implements Dragengine.Scenery.ColliderListener.

◆ collisionResponse()

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.

◆ createCollisionFilter()

CollisionFilter Dragengine.Gui.MainMenus.Interactive.IMMInteract.createCollisionFilter ( )
protected

Create collision filter.

◆ dispose()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.dispose ( )

Dispose of widget.

◆ getHoverHotSpot()

IMMBehaviorHotSpot.Instance Dragengine.Gui.MainMenus.Interactive.IMMInteract.getHoverHotSpot ( )

Hot-spot under cursor or null.

◆ getMainMenu()

InteractiveMainMenu Dragengine.Gui.MainMenus.Interactive.IMMInteract.getMainMenu ( )

Interactive main menu.

◆ hotSpotFromMouseCursor()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.hotSpotFromMouseCursor ( )
protected

Update hotspot from mouse cursor position.

◆ new()

IMMInteract Dragengine.Gui.MainMenus.Interactive.IMMInteract.new ( InteractiveMainMenu  mainMenu)

Create interact handler for interactive main menu.

◆ onButtonPress()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.onButtonPress ( MouseEvent  event)

Mouse button pressed.

◆ onKeyPress()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.onKeyPress ( KeyEvent  event)

Key pressed.

◆ update()

void Dragengine.Gui.MainMenus.Interactive.IMMInteract.update ( float  elapsed)

Update camera.


The documentation for this class was generated from the following file: