Ulysses

General => Developers Corner => Topic started by: Tomzen on May 07, 2015, 08:59:23 PM

Title: BoolArg explanation
Post 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:
Code: [Select]
(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?
Title: Re: BoolArg explanation
Post by: JamminR on May 07, 2015, 09:08:15 PM
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).

Title: Re: BoolArg explanation
Post by: Tomzen on May 07, 2015, 09:20:29 PM
alright thanks