aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/gui/iguibutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/lua_api/gui/iguibutton.cpp')
-rw-r--r--src/client/lua_api/gui/iguibutton.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/lua_api/gui/iguibutton.cpp b/src/client/lua_api/gui/iguibutton.cpp
index aabc992..42d2846 100644
--- a/src/client/lua_api/gui/iguibutton.cpp
+++ b/src/client/lua_api/gui/iguibutton.cpp
@@ -28,8 +28,14 @@ extern IrrlichtDevice* device;
char lhashkey[20];
/***
+Creates a new button.
+Buttons may have the following fields set for callbacks:
+`.onClick(self)`
+`.onFocus(self)`
+`.onUnfocus(self)`
+`.onHover(self)`
+`.onLeave(self)`
@function newbutton()
-Creates a new checkbox
@tparam rect dimensions The rectangle to place the button at. If the box has a parent,
it is offset from the upper-left of the parent element.
@tparam string default_text The default text to have in the button