Ulysses
General => Developers Corner => Topic started by: Tomzen on May 07, 2015, 08:59:23 PM
-
Looking at some of the sources from some commands and notice this line a lot:
(cmd):addParam{ type=ULib.cmds.BoolArg, invisible=true }I would love it if someone could explain when or when not this param would be needed, Just from a brief look I can see its mostly included when the command has a (SILENT) function. Is this correct?
-
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.BoolArg (http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.BoolArg)
Sums it reasonably well.
Let's you add boolean extra param to do something (or not).
-
alright thanks