Module Hotkey
+Druid hotkey component
+ + + +Functions
+add_hotkey(self, keys[, callback_argument]) | +Add hotkey for component callback | +
init(self, keys, callback[, callback_argument]) | +Component init function | +
Tables
+style | +Component style params. | +
Fields
+button | +Button component from click_node | +
click_node | +Button trigger node | +
node | +Visual node | +
on_change_state | +On change state callback(self, state) | +
+
+ + +
Functions
+ +-
+
- + + add_hotkey(self, keys[, callback_argument]) + +
-
+ Add hotkey for component callback
+
+
+
Parameters:
+ + + + + + +
+ - + + init(self, keys, callback[, callback_argument]) + +
-
+ Component init function
+
+
+
Parameters:
+ + + + + + +
+
Tables
+ +-
+
- + + style + +
-
+ Component style params.
+ You can override this component styles params in druid styles table
+ or create your own style
+
+
+
Fields:
+-
+
- MODIFICATORS + string[] + The list of action_id as hotkey modificators + +
+
Fields
+ +-
+
- + + button + +
-
+ Button component from click_node
+
+
+
-
+
- button + Button + Button + +
+ - + + click_node + +
-
+ Button trigger node
+
+
+
-
+
- click_node + node + + (default node) + +
+ - + + node + +
-
+ Visual node
+
+
+
-
+
- node + node + + +
+ - + + on_change_state + +
-
+ On change state callback(self, state)
+
+
+
-
+
- on_change_state + DruidEvent + DruidEvent + +
+