AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Name

    showTooltip()

  • Examples

    Room: room
    {
    isLocked: true

    Event: [Nav_Click, true, true] {
    // This event object overrides the default Nav_Click event.
    // As long as the isLocked property of room is true, the player will not enter the room
    // Instead it will display a tooltip saying "Locked"

    if (isLocked)
    showTooltip("Locked")
    else{
    player.moveTo(this)

    // If this object has an Enter_Room event enabled, trigger it after player has been moved here

    if (isEnabled(Enter_Room_First)
    trigger(Enter_Room_First)
    else if (isEnabled(Enter_Room)
    trigger(Enter_Room)
    }
    }
    }
  • Description

    Displays the tooltip window. If a tooltip window is already displayed, it will replace that window. If no text is parsed to this function it will display default tooltip text for the object the cursor is currently over.

    Default tooltip text is the tooltip property if declared, otherwise it is the a snippet of the description if the desc property is declared. If neither is declared, object name will be displayed.

    If the text parsed to showTooltip() is too long to fit within the tooltip window, it will display a snippet of the text instead, followed by an ellipsis.

    The tooltip window will not go away unless hideTooltip() is called. This is done by Mouse_Out by default.

    showTooltip() is the default script of Mouse_Over.
  • Syntax

    • showTooltip()
    • showTooltip(text)
  • Related

    • hideTooltip()

    • Mouse_Out

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen