Navigation menu

WoW:WoW constants: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
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:
{{outdated|See [[#External_links|External links section]] for place to update this list from.}}
{{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.


'''WoW constants''' (which are actually global lua variables) are automatically replaced with their values when used within any .xml or .lua  file. They are provided by the World of Warcraft base UI, and can be used in addons. ''Most of these values came from the now defunct [[Cosmos (AddOn)|Cosmos]] [http://www.cosmosui.org/texts/BlizzardCommands.xml Blizzard Commands] and the WoW.exe itself. They may very well be out of date and inaccurate, please add/edit anything you notice missing.''
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 =
<div style="margin-left:3%;">


== A – C ==
== A – C ==
Line 213: Line 212:
; SPELL_EQUIPPED_ITEM : Requires %s
; SPELL_EQUIPPED_ITEM : Requires %s


</div>
= Chat Log Messages =  
= Chat Log Messages =  
<div style="margin-left:3%;">
== 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.


</div>
= Other Messages =  
= Other Messages =  
<div style="margin-left:3%;">
== 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


</div>
= Constants =  
= Constants =  
<div style="margin-left:3%;">


== Time Based ==
== Time Based ==
Line 827: Line 817:
; WHOS_TO_DISPLAY : 17
; WHOS_TO_DISPLAY : 17


</div>
= File Paths =  
= File Paths =  
<div style="margin-left:3%;">
; 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


</div>
== Miscellaneous ==
== Miscellaneous ==
<div style="margin-left:3%;">
; 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


</div>
== 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)}}