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

    GUI

  • Name

    addObj()

  • Examples

    Object: button {
    tooltip: "Click to open door"
    image: "img_button"
    isOpen: false
    x: 200
    y: 400

    Event: Mouse_Click{
    // Closes the door if open, otherwise opens the door

    if (isOpen){
    room.setPath("in",null)
    tooltip = "Click to open door"
    }
    else{
    room.setPath("in",roomIn)
    tooltip = "Click to close door"
    }

    isOpen = !isOpen
    }
    }

    Room: roomIn

    Room: room
    {
    Event: Game_Start {
    GUI.addObj(button,this)
    }
    }
  • Description

    Add an Object as overlay on the graphical user interface. The image set for the object will be used.

    If a room is given, the overlay will only be displayed when the player is in that room. Additionally, room specific overlays will be placed behind the graphical user interface, over the room background image.

    If no room is given, the overlay will be placed in front of other graphical user interface elements it overlaps.
  • Syntax

    • GUI.addObj(obj)
    • GUI.addObj(obj,room)
  • Related

    removeObj()

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

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