Skip to content
Liam Fruzyna edited this page Jan 27, 2024 · 1 revision

Inputs and Elements

In WildRank 2 the input model has expanded from a basic function-based model to a class-based model. Each type of element or input that can be rendered by WildRank has its own class derivative of the Element class.

Classes

Element

Elements

PageFrame

ColumnFrame

Button

MultiButton

Card

StatusTile

Input

Option

Options

DescriptiveOption

MatchOption

Inputs

Checkbox

Counter

Cycler (Counter)

MultiCounter

Entry

Extended

Slider (Entry)

OptionedInput

OptionedInputs

Select

Dropdown

Global Functions

touch_button(secondary)

Respond to a touch screen event from a Button.

  • secondary
    • Boolean representing if this was a secondary click (right / hold).

increment(id, right, onincrement)

Increases the value of the given counter, descreases on right click.

  • id
    • String ID of the counter.
  • right
    • Boolean representing if this was a secondary click (right / hold)
  • onincrement
    • Function to call when complete.
Clone this wiki locally