Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleClick here to show Table of Contents
Table of Contents

Inherits

windowcontrol

Inherited By

diefield

Context

windowinstance

A die control contains a group of dice that can be of different types.

...

Code Block
languagexml
<diecontrol name="..." >
  <noreset />
</diecontrol>

<diecontrol name="..." >

<noreset />

Disable reset by using the middle mouse button

</diecontrol>

Interface

addDie

Code Block
languagelua
function addDie(type)

...

(table)
An integer indexed table containing strings specifying the types of the dice in the control

isEmpty

Code Block
languagelua
function isEmpty()

Returns whether the control contains dice or is empty.

Return values

(boolean)
Whether the control is empty

onValueChanged

Code Block
languagelua
function onValueChanged()

...