occlusionScale_cmd() { dyna_Add("occlusion", LXsTYPE_FLOAT); dyna_Add("iterations", LXsTYPE_INTEGER); dyna_Add("scale", LXsTYPE_FLOAT); my_log.setByName("myLog"); }
CParticleAttachCommand::CParticleAttachCommand () { dyna_Add ("type", LXsTYPE_INTEGER); dyna_SetHint (0, hint_Type); dyna_Add ("source", "&item"); basic_SetFlags (1, LXfCMDARG_QUERY); }
CCommandLoadFile::CCommandLoadFile () { /* * The constructor is a good place to add arguments and * set flags for those arguments. This command will have * a single argument for the filename. The flags will mark * the argument as optional. This will prevent modo from * launching a dialog to ask for a filename string and * instead allow the command to handle the missing argument * value by spawning a file dialog. */ dyna_Add(ARG_FILENAME, LXsTYPE_FILEPATH); basic_SetFlags(ARGi_FILENAME, LXfCMDARG_OPTIONAL); }