diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2021-10-26 20:28:03 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2021-10-26 20:28:03 -0500 |
| commit | c4f478522ac796476b16233b9606d4c37e916551 (patch) | |
| tree | 2fefd74c120af2b0e89746db604452ee64a6868f /src/client | |
| parent | ec25aeadbd13120a1af76271278ad0863402ac89 (diff) | |
| download | brokengine-c4f478522ac796476b16233b9606d4c37e916551.tar.gz brokengine-c4f478522ac796476b16233b9606d4c37e916551.tar.bz2 brokengine-c4f478522ac796476b16233b9606d4c37e916551.zip | |
Add documentation to the file dialog
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/lua_api/gui/iguifiledialog.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/lua_api/gui/iguifiledialog.cpp b/src/client/lua_api/gui/iguifiledialog.cpp index 9b789cb..88fcae0 100644 --- a/src/client/lua_api/gui/iguifiledialog.cpp +++ b/src/client/lua_api/gui/iguifiledialog.cpp @@ -89,6 +89,12 @@ static int newfileopendialog(lua_State* L){ return 1; } +/*** +Returns the direcotry the client wanted to open. +Returns the name of the directory once the client has pressed "open". +@function iguiopenfiledialog:getdir() +@treturn string The name of the directory the opened file is in. +*/ //{fileopendialog} -> "dir" int getdir(lua_State *L){ lua_getfield(L,-1,"guielement");//{fileopendialog},ud_fileopendialog @@ -99,6 +105,12 @@ int getdir(lua_State *L){ return 1; } +/*** +Returns the name of the file opened. +Returns the name of the file, without the file path. +@function iguiopenfiledialog:getname() +@treturn string the name of the file the user wants to open +*/ //{fileopendialog} -> "name" int getname(lua_State *L){ lua_getfield(L, -1, "guielement");//{fileopendialog},ud_fileopendialog |
