Skip to content

Metatable:ModalWindow

Stefan A. Brannfjell edited this page Dec 19, 2017 · 3 revisions

No description available at the moment.

Available methods:

addButton(id, text)
addChoice(id, text)
getButtonCount()
getChoiceCount()
getDefaultEnterButton()
getDefaultEscapeButton()
getId()
getMessage()
getTitle()
hasPriority()
sendToPlayer(player)
setDefaultEnterButton(buttonId)
setDefaultEscapeButton(buttonId)
setMessage(text)
setPriority(priority)
setTitle(text)


addButton(id, text)

Description: N/A
Parameters:

  • id - No description
  • text - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:addButton(some_id, any_string)

Added in version: 1.0


addChoice(id, text)

Description: N/A
Parameters:

  • id - No description
  • text - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:addChoice(some_id, any_string)

Added in version: 1.0


getButtonCount()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getButtonCount()

Added in version: 1.0


getChoiceCount()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getChoiceCount()

Added in version: 1.0


getDefaultEnterButton()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getDefaultEnterButton()

Added in version: 1.0


getDefaultEscapeButton()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getDefaultEscapeButton()

Added in version: 1.0


getId()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getId()

Added in version: 1.0


getMessage()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getMessage()

Added in version: 1.0


getTitle()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:getTitle()

Added in version: 1.0


hasPriority()

Description: N/A
Parameters: None
Returns: N/A
Example:

local modalwindow = ModalWindow(...)
modalwindow:hasPriority()

Added in version: 1.0


sendToPlayer(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:sendToPlayer(some_userdata)

Added in version: 1.0


setDefaultEnterButton(buttonId)

Description: N/A
Parameters:

  • buttonId - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:setDefaultEnterButton(unknown)

Added in version: 1.0


setDefaultEscapeButton(buttonId)

Description: N/A
Parameters:

  • buttonId - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:setDefaultEscapeButton(unknown)

Added in version: 1.0


setMessage(text)

Description: N/A
Parameters:

  • text - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:setMessage(any_string)

Added in version: 1.0


setPriority(priority)

Description: N/A
Parameters:

  • priority - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:setPriority(true)

Added in version: 1.0


setTitle(text)

Description: N/A
Parameters:

  • text - No description
Returns: N/A
Example:
local modalwindow = ModalWindow(...)
modalwindow:setTitle(any_string)

Added in version: 1.0

Clone this wiki locally