This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
dev:v3:gui_api:dialog:inputgui2 [2020/07/09 12:24] – jedi18 | dev:v3:gui_api:dialog:inputgui2 [2020/07/09 12:36] – jedi18 | ||
---|---|---|---|
Line 151: | Line 151: | ||
* <code lua> entity1: | * <code lua> entity1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Number GUI Class ===== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[https:// | ||
+ | <code cpp-qt> namespace lc::ui::api </ | ||
+ | |||
+ | The number gui widget is used for entering a number (double). | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Constructor ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Constructs a Number GUI widget. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local number1 = gui.Number(" | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Get Values ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Gets the value of the number widget. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local val = number1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Set Value ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Sets the number widget value. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> number1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Add Callback ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Add callback for when the number is changed | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> number1: | ||
---- | ---- |