Gaming
 

MCom.printStatus

From WoWWiki

This article is a part of the documentation of the MCom function library

 --[[
   printStatus ( string text, [string/number/bool] value, bool isbool, bool show )
     If Cosmos is not found printStatus will print out a status message, intended to let user know when an option has
     been changed, when there is no GUI available.
   
   Args:
     text -    the text to print, this can include a %s, and value(or enabled/disabled for bool) will be put in place of the %s
               Ex: "This option has been %s" for bool, or "This option has been set to %s" for number or string
 
   Optional: 
     value -   what value to display, can be a string, a number, or a bool
     isbool -  if this is true, then the value will be treated as a bool, and if true(or 1) then the %s will contain
               the world "Enabled" or "Disabled" for false(or 0)
     show - if this is true, then the text will be printed whether there is a UI or not
 ]]--