Expand | ||
---|---|---|
| ||
|
Inherits | |
Inherited By | diefield |
Context | windowinstance |
A die control contains a group of dice that can be of different types.
...
Code Block | ||
---|---|---|
| ||
<diecontrol name="..." > <noreset /> </diecontrol> |
<diecontrol name="..." > | |
<noreset /> | Disable reset by using the middle mouse button |
</diecontrol> |
Interface
addDie
Code Block | ||
---|---|---|
| ||
function addDie(type) |
...
(table)
An integer indexed table containing strings specifying the types of the dice in the control
isEmpty
Code Block | ||
---|---|---|
| ||
function isEmpty() |
Returns whether the control contains dice or is empty.
Return values
(boolean)
Whether the control is empty
onValueChanged
Code Block | ||
---|---|---|
| ||
function onValueChanged() |
...