Skip to content

CardMappingButton

Inherits: Control

Properties

Type Name Default
bool disabled false
String text "Button"
LabelSettings label_settings
int horizontal_alignment 1
int vertical_alignment 1
int autowrap_mode
bool uppercase true
bool click_focuses true
CustomLogger logger
Label source_label
Label target_label
TextureRect highlight
InputIcon source_icon
InputIcon target_icon

Methods

Returns Signature
void set_source_device_icon_mapping(mapping_name: String)
void set_target_device_icon_mapping(mapping_name: String)
void set_source_capability(capability: String, direction: String = "")
void set_target_capability(capability: String, direction: String = "")
int set_source_icon(capability: String, direction: String = "")
int set_target_icon(capability: String, direction: String = "")

Property Descriptions

disabled

bool disabled = false

Note

There is currently no description for this property. Please help us by contributing one!

text

String text = "Button"

Note

There is currently no description for this property. Please help us by contributing one!

label_settings

LabelSettings label_settings

Note

There is currently no description for this property. Please help us by contributing one!

horizontal_alignment

int horizontal_alignment = 1

Note

There is currently no description for this property. Please help us by contributing one!

vertical_alignment

int vertical_alignment = 1

Note

There is currently no description for this property. Please help us by contributing one!

autowrap_mode

int autowrap_mode

Note

There is currently no description for this property. Please help us by contributing one!

uppercase

bool uppercase = true

Note

There is currently no description for this property. Please help us by contributing one!

click_focuses

bool click_focuses = true

Note

There is currently no description for this property. Please help us by contributing one!

logger

CustomLogger logger

Note

There is currently no description for this property. Please help us by contributing one!

source_label

Label source_label

Note

There is currently no description for this property. Please help us by contributing one!

target_label

Label target_label

Note

There is currently no description for this property. Please help us by contributing one!

highlight

TextureRect highlight

Note

There is currently no description for this property. Please help us by contributing one!

source_icon

InputIcon source_icon

Note

There is currently no description for this property. Please help us by contributing one!

target_icon

InputIcon target_icon

Note

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

set_source_device_icon_mapping()

void set_source_device_icon_mapping(mapping_name: String)

Set the source input icon's icon mapping

set_target_device_icon_mapping()

void set_target_device_icon_mapping(mapping_name: String)

Set the target input icon's icon mapping

set_source_capability()

void set_source_capability(capability: String, direction: String = "")

Configures the button for the given source capability

set_target_capability()

void set_target_capability(capability: String, direction: String = "")

Configures the button for the given target capability

set_source_icon()

int set_source_icon(capability: String, direction: String = "")

Configures the button for the given mappable event. If a path cannot be found, this will return an error.

set_target_icon()

int set_target_icon(capability: String, direction: String = "")

Configures the button for the given mappable event. If a path cannot be found, this will return an error.