Skip to main content

DialogClickedInZone

Callable

  • DialogClickedInZone(C: Character, Zone: RectTuple, Zoom: number, X: number, Y: number, HeightRatio: number): boolean

  • Returns whether the clicked co-ordinates are inside the asset zone


    Parameters

    • C: Character

      The character the click is on

    • Zone: RectTuple

      The 4 part array of the rectangular asset zone on the character's body: [X, Y, Width, Height]

    • Zoom: number

      The amount the character has been zoomed

    • X: number

      The X co-ordinate of the click

    • Y: number

      The Y co-ordinate of the click

    • HeightRatio: number

      The displayed height ratio of the character

    Returns boolean

    • If TRUE the click is inside the zone