This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
gui_api [2020/04/23 08:49] – [Important Information] fxfire | gui_api [2020/05/14 13:22] – modera | ||
---|---|---|---|
Line 40: | Line 40: | ||
===Important Information=== | ===Important Information=== | ||
* To get an overview what is possible with the GUI, open the ingame console (CTRL + C) and execute this command: '' | * To get an overview what is possible with the GUI, open the ingame console (CTRL + C) and execute this command: '' | ||
- | * AUTOMATIC TRANSLATIONS - Wrap all your static text like: GUI: | + | |
* If you find something in that Testwindow but you are not sure how to code the same in LUA, have a look in the c++ source of it: [[https:// | * If you find something in that Testwindow but you are not sure how to code the same in LUA, have a look in the c++ source of it: [[https:// | ||
Line 53: | Line 53: | ||
GUI: | GUI: | ||
GUI: | GUI: | ||
+ | Example: Different name in UI, same internal identifier with auto **Translations**: | ||
+ | GUI: | ||
+ | GUI: | ||
</ | </ | ||
Line 812: | Line 815: | ||
***'' | ***'' | ||
*set text data to the clipboard | *set text data to the clipboard | ||
+ | |||
+ | |||
+ | |||
+ | ===Custom Widgets=== | ||
+ | ***'' | ||
+ | *Returns: //number// virtualKey, //string// keyName, //boolean// changed | ||
+ | *Clicking the widget will start a listener for the next key press event | ||