49
edits
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{uitech}}{{tocright}} | ||
{{tocright}} | WoW constants are global WoW [[Lua]] variables, which are automatically replaced with their locale specific values when used within any [[XML UI]] .xml or .lua file. They are provided by the World of Warcraft base UI, and can be used in addons. | ||
Most of these values originally came from the old [[Cosmos (AddOn)|Cosmos AddOn]] [http://www.cosmosui.org/texts/BlizzardCommands.xml Blizzard Commands] and the WoW.exe itself. The list here will be out of date but most of these values should still be in use. Feel free to update the list. | |||
[[#Messages|Messages]], [[#Chat Log Messages|Chat Log Messages]] and [[#Other Messages|Other Messages]] can be considered strings. %s,%f,%g,%d are used to substitute values in, be it a player name or a numerical value; see the [[API format|format]] function. Some of these are meant as the complete message to be displayed in chat or on screen, while others are common words used in substitutions and construction of a message. | [[#Messages|Messages]], [[#Chat Log Messages|Chat Log Messages]] and [[#Other Messages|Other Messages]] can be considered strings. %s,%f,%g,%d are used to substitute values in, be it a player name or a numerical value; see the [[API format|format]] function. Some of these are meant as the complete message to be displayed in chat or on screen, while others are common words used in substitutions and construction of a message. | ||
| Line 17: | Line 17: | ||
= Messages = | = Messages = | ||
== A – C == | == A – C == | ||
| Line 213: | Line 212: | ||
; SPELL_EQUIPPED_ITEM : Requires %s | ; SPELL_EQUIPPED_ITEM : Requires %s | ||
= Chat Log Messages = | = Chat Log Messages = | ||
== A – B == | == A – B == | ||
; AUCTION_EXPIRED_MAIL_SUBJECT : Auction expired : %s | ; AUCTION_EXPIRED_MAIL_SUBJECT : Auction expired : %s | ||
| Line 452: | Line 448: | ||
; VSPARRYSELFOTHER : You attack. %s parries. | ; VSPARRYSELFOTHER : You attack. %s parries. | ||
= Other Messages = | = Other Messages = | ||
== A – B == | == A – B == | ||
; ABSORB : Absorb | ; ABSORB : Absorb | ||
| Line 651: | Line 644: | ||
; ZONE_UNDER_ATTACK : |cffffff00%s is under attack!|r | ; ZONE_UNDER_ATTACK : |cffffff00%s is under attack!|r | ||
= Constants = | = Constants = | ||
== Time Based == | == Time Based == | ||
| Line 827: | Line 817: | ||
; WHOS_TO_DISPLAY : 17 | ; WHOS_TO_DISPLAY : 17 | ||
= File Paths = | = File Paths = | ||
; DAMAGE_TEXT_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ; DAMAGE_TEXT_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ||
; NAMEPLATE_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ; NAMEPLATE_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ||
| Line 843: | Line 830: | ||
; UNIT_NAME_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ; UNIT_NAME_FONT : Interface\Addons\Insomniax_Core\Fonts\Tw_Cen_MT_Bold.TTF | ||
== Miscellaneous == | == Miscellaneous == | ||
; BOOKTYPE_ABILITY : "ability" | ; BOOKTYPE_ABILITY : "ability" | ||
; BOOKTYPE_PET : "pet" | ; BOOKTYPE_PET : "pet" | ||
| Line 853: | Line 837: | ||
; CURRENT_ACTIONBAR_PAGE : the action bar to switch to next time [[ChangeActionBarPage|ChangeActionBarPage()]] is called | ; CURRENT_ACTIONBAR_PAGE : the action bar to switch to next time [[ChangeActionBarPage|ChangeActionBarPage()]] is called | ||
== External links == | == External links == | ||
{{elink|icon=|site=Townlong-Yak.com|link=https://www.townlong-yak.com/framexml/live/Constants.lua|desc=<tt>FrameXML/'''Constants.lua'''</tt> ''Build ##### (7.n.n)''|bydate=(sometimes a week or two behind current release)}} | {{elink|icon=|site=Townlong-Yak.com|link=https://www.townlong-yak.com/framexml/live/Constants.lua|desc=<tt>FrameXML/'''Constants.lua'''</tt> ''Build ##### (7.n.n)''|bydate=(sometimes a week or two behind current release)}} | ||