Constants.lua

Constants.lua (8.2.5.32144; unchanged since 8.2.5.31960)
  1. --
  2. -- New constants should be added to this file and other constants
  3. -- deprecated and moved to this file.
  4. --
  5. Constant = {
  6. Currency =
  7. {
  8. Honor = 1585,
  9. Conquest = 1602,
  10. }
  11. };
  12. --
  13. -- Expansion Info
  14. --
  15. MAX_PLAYER_LEVEL_TABLE = {};
  16. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_CLASSIC] = 60;
  17. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_BURNING_CRUSADE] = 70;
  18. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_WRATH_OF_THE_LICH_KING] = 80;
  19. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_CATACLYSM] = 85;
  20. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_MISTS_OF_PANDARIA] = 90;
  21. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_WARLORDS_OF_DRAENOR] = 100;
  22. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_LEGION] = 110;
  23. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_BATTLE_FOR_AZEROTH] = 120;
  24. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_9_0] = 120;
  25. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_10_0] = 120;
  26. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_11_0] = 120;
  27. NPE_TUTORIAL_COMPLETE_LEVEL = 10;
  28. --
  29. -- Colors
  30. --
  31. NORMAL_FONT_COLOR_CODE = "|cffffd200";
  32. HIGHLIGHT_FONT_COLOR_CODE = "|cffffffff";
  33. RED_FONT_COLOR_CODE = "|cffff2020";
  34. GREEN_FONT_COLOR_CODE = "|cff20ff20";
  35. GRAY_FONT_COLOR_CODE = "|cff808080";
  36. YELLOW_FONT_COLOR_CODE = "|cffffff00";
  37. LIGHTYELLOW_FONT_COLOR_CODE = "|cffffff9a";
  38. ORANGE_FONT_COLOR_CODE = "|cffff7f3f";
  39. ACHIEVEMENT_COLOR_CODE = "|cffffff00";
  40. BATTLENET_FONT_COLOR_CODE = "|cff82c5ff";
  41. DISABLED_FONT_COLOR_CODE = "|cff7f7f7f";
  42. FONT_COLOR_CODE_CLOSE = "|r";
  43. NORMAL_FONT_COLOR = CreateColor(1.0, 0.82, 0.0);
  44. WHITE_FONT_COLOR = CreateColor(1.0, 1.0, 1.0);
  45. HIGHLIGHT_FONT_COLOR = CreateColor(1.0, 1.0, 1.0);
  46. RED_FONT_COLOR = CreateColor(1.0, 0.1, 0.1);
  47. DIM_RED_FONT_COLOR = CreateColor(0.8, 0.1, 0.1);
  48. DULL_RED_FONT_COLOR = CreateColor(0.75, 0.15, 0.15);
  49. GREEN_FONT_COLOR = CreateColor(0.1, 1.0, 0.1);
  50. GRAY_FONT_COLOR = CreateColor(0.5, 0.5, 0.5);
  51. YELLOW_FONT_COLOR = CreateColor(1.0, 1.0, 0.0);
  52. LIGHTYELLOW_FONT_COLOR = CreateColor(1.0, 1.0, 0.6);
  53. ORANGE_FONT_COLOR = CreateColor(1.0, 0.5, 0.25);
  54. PASSIVE_SPELL_FONT_COLOR = CreateColor(0.77, 0.64, 0.0);
  55. BATTLENET_FONT_COLOR = CreateColor(0.510, 0.773, 1.0);
  56. TRANSMOGRIFY_FONT_COLOR = CreateColor(1, 0.5, 1);
  57. DISABLED_FONT_COLOR = CreateColor(0.498, 0.498, 0.498);
  58. LIGHTBLUE_FONT_COLOR = CreateColor(0.53, 0.67, 1.0);
  59. LIGHTGRAY_FONT_COLOR = CreateColor(0.6, 0.6, 0.6);
  60. PAPER_FRAME_EXPANDED_COLOR = CreateColor(0.929, 0.788, 0.620);
  61. PAPER_FRAME_COLLAPSED_COLOR = CreateColor(0.827, 0.659, 0.463);
  62. ARTIFACT_BAR_COLOR = CreateColor(0.901, 0.8, 0.601);
  63. WARBOARD_OPTION_TEXT_COLOR = CreateColor(0.28, 0.02, 0.02);
  64. DEFAULT_CHAT_CHANNEL_COLOR = CreateColor(1.0, 0.753, 0.753);
  65. DIM_GREEN_FONT_COLOR = CreateColor(0.251, 0.753, 0.251); -- Used for officer chat in guilds.
  66. BLACK_FONT_COLOR = CreateColor(0.0, 0.0, 0.0);
  67. LINK_FONT_COLOR = CreateColor(102.0 / 255.0, 187.0 / 255.0, 255.0 / 255.0); -- Light blue that we use for system links. E.g. calendar events and nydus links in the shop.
  68. SEPIA_COLOR = CreateColor(0.565, 0.377, 0.157);
  69. QUEST_OBJECTIVE_FONT_COLOR = CreateColor(0.8, 0.8, 0.8);
  70. QUEST_OBJECTIVE_HIGHLIGHT_FONT_COLOR = HIGHLIGHT_FONT_COLOR;
  71. QUEST_OBJECTIVE_DISABLED_FONT_COLOR = DISABLED_FONT_COLOR;
  72. QUEST_OBJECTIVE_DISABLED_HIGHLIGHT_FONT_COLOR = LIGHTGRAY_FONT_COLOR;
  73. AREA_NAME_FONT_COLOR = CreateColor(1.0, 0.9294, 0.7607);
  74. AREA_DESCRIPTION_FONT_COLOR = HIGHLIGHT_FONT_COLOR;
  75. INVASION_FONT_COLOR = CreateColor(0.78, 1, 0);
  76. INVASION_DESCRIPTION_FONT_COLOR = CreateColor(1, 0.973, 0.035);
  77. FACTION_BAR_COLORS = {
  78. [1] = {r = 0.8, g = 0.3, b = 0.22},
  79. [2] = {r = 0.8, g = 0.3, b = 0.22},
  80. [3] = {r = 0.75, g = 0.27, b = 0},
  81. [4] = {r = 0.9, g = 0.7, b = 0},
  82. [5] = {r = 0, g = 0.6, b = 0.1},
  83. [6] = {r = 0, g = 0.6, b = 0.1},
  84. [7] = {r = 0, g = 0.6, b = 0.1},
  85. [8] = {r = 0, g = 0.6, b = 0.1},
  86. };
  87. WORLD_QUEST_ICONS_BY_PROFESSION = {
  88. [129] = "worldquest-icon-firstaid",
  89. [164] = "worldquest-icon-blacksmithing",
  90. [165] = "worldquest-icon-leatherworking",
  91. [171] = "worldquest-icon-alchemy",
  92. [182] = "worldquest-icon-herbalism",
  93. [186] = "worldquest-icon-mining",
  94. [202] = "worldquest-icon-engineering",
  95. [333] = "worldquest-icon-enchanting",
  96. [755] = "worldquest-icon-jewelcrafting",
  97. [773] = "worldquest-icon-inscription",
  98. [794] = "worldquest-icon-archaeology",
  99. [356] = "worldquest-icon-fishing",
  100. [185] = "worldquest-icon-cooking",
  101. [197] = "worldquest-icon-tailoring",
  102. [393] = "worldquest-icon-skinning",
  103. };
  104. CHAT_FONT_HEIGHTS = {
  105. [1] = 12,
  106. [2] = 14,
  107. [3] = 16,
  108. [4] = 18
  109. };
  110. MATERIAL_TEXT_COLOR_TABLE = {
  111. ["Default"] = {0.18, 0.12, 0.06},
  112. ["Stone"] = {1.0, 1.0, 1.0},
  113. ["Parchment"] = {0.18, 0.12, 0.06},
  114. ["Marble"] = {0, 0, 0},
  115. ["Silver"] = {0.12, 0.12, 0.12},
  116. ["Bronze"] = {0.18, 0.12, 0.06},
  117. ["ParchmentLarge"] = {.141, 0, 0}
  118. };
  119. MATERIAL_TITLETEXT_COLOR_TABLE = {
  120. ["Default"] = {0, 0, 0},
  121. ["Stone"] = {0.93, 0.82, 0},
  122. ["Parchment"] = {0, 0, 0},
  123. ["Marble"] = {0.93, 0.82, 0},
  124. ["Silver"] = {0.93, 0.82, 0},
  125. ["Bronze"] = {0.93, 0.82, 0},
  126. ["ParchmentLarge"] = {.208, 0, 0}
  127. };
  128. FRIENDS_BNET_NAME_COLOR = CreateColor(0.510, 0.773, 1.0);
  129. FRIENDS_BNET_BACKGROUND_COLOR = CreateColor(0, 0.694, 0.941, 0.05);
  130. FRIENDS_WOW_NAME_COLOR = CreateColor(0.996, 0.882, 0.361);
  131. FRIENDS_WOW_BACKGROUND_COLOR = CreateColor(1.0, 0.824, 0.0, 0.05);
  132. FRIENDS_GRAY_COLOR = CreateColor(0.486, 0.518, 0.541);
  133. FRIENDS_OFFLINE_BACKGROUND_COLOR = CreateColor(0.588, 0.588, 0.588, 0.05);
  134. FRIENDS_BNET_NAME_COLOR_CODE = "|cff82c5ff";
  135. FRIENDS_BROADCAST_TIME_COLOR_CODE = "|cff4381a8"
  136. FRIENDS_WOW_NAME_COLOR_CODE = "|cfffde05c";
  137. FRIENDS_OTHER_NAME_COLOR_CODE = "|cff7b8489";
  138. HTML_START = "

    ";

  139. HTML_START_CENTERED = "

    ";

  140. HTML_END = "

    "
    ;
  141. --
  142. -- Class
  143. --
  144. CLASS_SORT_ORDER = {
  145. "WARRIOR",
  146. "DEATHKNIGHT",
  147. "PALADIN",
  148. "MONK",
  149. "PRIEST",
  150. "SHAMAN",
  151. "DRUID",
  152. "ROGUE",
  153. "MAGE",
  154. "WARLOCK",
  155. "HUNTER",
  156. "DEMONHUNTER",
  157. };
  158. MAX_CLASSES = #CLASS_SORT_ORDER;
  159. LOCALIZED_CLASS_NAMES_MALE = {};
  160. LOCALIZED_CLASS_NAMES_FEMALE = {};
  161. FillLocalizedClassList(LOCALIZED_CLASS_NAMES_MALE, false);
  162. FillLocalizedClassList(LOCALIZED_CLASS_NAMES_FEMALE, true);
  163. --
  164. -- Spell
  165. --
  166. HUNTER_DISMISS_PET = 2641;
  167. WARLOCK_METAMORPHOSIS = 103958;
  168. WARLOCK_SOULBURN = 117198;
  169. WARLOCK_GREEN_FIRE = 101508;
  170. BATTLEGROUND_ENLISTMENT_BONUS = 241260;
  171. SCHOOL_MASK_NONE = 0x00;
  172. SCHOOL_MASK_PHYSICAL = 0x01;
  173. SCHOOL_MASK_HOLY = 0x02;
  174. SCHOOL_MASK_FIRE = 0x04;
  175. SCHOOL_MASK_NATURE = 0x08;
  176. SCHOOL_MASK_FROST = 0x10;
  177. SCHOOL_MASK_SHADOW = 0x20;
  178. SCHOOL_MASK_ARCANE = 0x40;
  179. SCHOOL_STRINGS = {
  180. STRING_SCHOOL_PHYSICAL,
  181. STRING_SCHOOL_HOLY,
  182. STRING_SCHOOL_FIRE,
  183. STRING_SCHOOL_NATURE,
  184. STRING_SCHOOL_FROST,
  185. STRING_SCHOOL_SHADOW,
  186. STRING_SCHOOL_ARCANE
  187. }
  188. MAX_POWER_PER_EMBER = 10;
  189. --
  190. -- Talent
  191. --
  192. SHOW_TALENT_LEVEL = 15;
  193. SHOW_PVP_TALENT_LEVEL = 20;
  194. SHOW_PVP_LEVEL = 10;
  195. SHOW_LFD_LEVEL = 15;
  196. SHOW_MASTERY_LEVEL = 78;
  197. CLASS_TALENT_LEVELS = {
  198. ["DEFAULT"] = { 15, 30, 45, 60, 75, 90, 100 };
  199. ["DEATHKNIGHT"] = { 56, 57, 58, 60, 75, 90, 100 };
  200. ["DEMONHUNTER"] = { 99, 100, 102, 104, 106, 108, 110 };
  201. }
  202. SPECIALIZATION_TAB = 1;
  203. TALENTS_TAB = 2;
  204. NUM_TALENT_FRAME_TABS = 2;
  205. --
  206. -- Specs
  207. --
  208. SHOW_SPEC_LEVEL = 10
  209. SPEC_WARLOCK_AFFLICTION = 1; --These are spec indices
  210. SPEC_WARLOCK_DEMONOLOGY = 2;
  211. SPEC_WARLOCK_DESTRUCTION = 3;
  212. SPEC_PRIEST_SHADOW = 3;
  213. SPEC_MONK_MISTWEAVER = 2;
  214. SPEC_MONK_BREWMASTER = 1;
  215. SPEC_MONK_WINDWALKER = 3;
  216. SPEC_PALADIN_RETRIBUTION = 3;
  217. SPEC_MAGE_ARCANE = 1;
  218. SPEC_SHAMAN_RESTORATION = 3;
  219. TALENT_SORT_ORDER = {
  220. "spec1",
  221. "spec2",
  222. };
  223. TALENT_ACTIVATION_SPELLS = {
  224. 63645,
  225. 63644,
  226. };
  227. --
  228. -- Achievement
  229. --
  230. MAX_TRACKED_ACHIEVEMENTS = 10;
  231. -- Criteria Types
  232. CRITERIA_TYPE_ACHIEVEMENT = 8;
  233. -- Achievement Flags
  234. ACHIEVEMENT_FLAGS_HAS_PROGRESS_BAR = 0x00000080;
  235. ACHIEVEMENT_FLAGS_GUILD = 0x00004000;
  236. ACHIEVEMENT_FLAGS_SHOW_GUILD_MEMBERS = 0x00008000;
  237. ACHIEVEMENT_FLAGS_SHOW_CRITERIA_MEMBERS = 0x00010000;
  238. ACHIEVEMENT_FLAGS_ACCOUNT = 0x00020000;
  239. NUM_ACHIEVEMENT_FLAGS = 3;
  240. -- Eval Tree Flags
  241. EVALUATION_TREE_FLAG_PROGRESS_BAR = 0x00000001;
  242. EVALUATION_TREE_FLAG_DO_NOT_DISPLAY = 0x00000002;
  243. NUM_EVALUATION_TREE_FLAGS = 2;
  244. --
  245. -- Inventory
  246. --
  247. -- General item constants
  248. ITEM_UNIQUE_EQUIPPED = -1;
  249. MAX_NUM_SOCKETS = 3;
  250. COMMON_GRAY_COLOR = CreateColor(0.65882, 0.65882, 0.65882);
  251. UNCOMMON_GREEN_COLOR = CreateColor(0.08235, 0.70196, 0.0);
  252. RARE_BLUE_COLOR = CreateColor(0.0, 0.56863, 0.94902);
  253. EPIC_PURPLE_COLOR = CreateColor(0.78431, 0.27059, 0.98039);
  254. LEGENDARY_ORANGE_COLOR = CreateColor(1.0, 0.50196, 0.0);
  255. ARTIFACT_GOLD_COLOR = CreateColor(0.90196, 0.8, 0.50196);
  256. HEIRLOOM_BLUE_COLOR = CreateColor(0.0, 0.8, 1);
  257. BAG_ITEM_QUALITY_COLORS = {
  258. [LE_ITEM_QUALITY_COMMON] = COMMON_GRAY_COLOR,
  259. [LE_ITEM_QUALITY_UNCOMMON] = UNCOMMON_GREEN_COLOR,
  260. [LE_ITEM_QUALITY_RARE] = RARE_BLUE_COLOR,
  261. [LE_ITEM_QUALITY_EPIC] = EPIC_PURPLE_COLOR,
  262. [LE_ITEM_QUALITY_LEGENDARY] = LEGENDARY_ORANGE_COLOR,
  263. [LE_ITEM_QUALITY_ARTIFACT] = ARTIFACT_GOLD_COLOR,
  264. [LE_ITEM_QUALITY_HEIRLOOM] = HEIRLOOM_BLUE_COLOR,
  265. [LE_ITEM_QUALITY_WOW_TOKEN] = HEIRLOOM_BLUE_COLOR,
  266. }
  267. NEW_ITEM_ATLAS_BY_QUALITY = {
  268. [LE_ITEM_QUALITY_POOR] = "bags-glow-white",
  269. [LE_ITEM_QUALITY_COMMON] = "bags-glow-white",
  270. [LE_ITEM_QUALITY_UNCOMMON] = "bags-glow-green",
  271. [LE_ITEM_QUALITY_RARE] = "bags-glow-blue",
  272. [LE_ITEM_QUALITY_EPIC] = "bags-glow-purple",
  273. [LE_ITEM_QUALITY_LEGENDARY] = "bags-glow-orange",
  274. [LE_ITEM_QUALITY_ARTIFACT] = "bags-glow-artifact",
  275. [LE_ITEM_QUALITY_HEIRLOOM] = "bags-glow-heirloom",
  276. };
  277. -- Loot
  278. LOOT_BORDER_BY_QUALITY = {
  279. [LE_ITEM_QUALITY_UNCOMMON] = "loottoast-itemborder-green",
  280. [LE_ITEM_QUALITY_RARE] = "loottoast-itemborder-blue",
  281. [LE_ITEM_QUALITY_EPIC] = "loottoast-itemborder-purple",
  282. [LE_ITEM_QUALITY_LEGENDARY] = "loottoast-itemborder-orange",
  283. [LE_ITEM_QUALITY_HEIRLOOM] = "loottoast-itemborder-heirloom",
  284. [LE_ITEM_QUALITY_ARTIFACT] = "loottoast-itemborder-artifact",
  285. };
  286. LOOT_ROLL_TYPE_PASS = 0;
  287. LOOT_ROLL_TYPE_NEED = 1;
  288. LOOT_ROLL_TYPE_GREED = 2;
  289. LOOT_ROLL_TYPE_DISENCHANT = 3;
  290. -- Item location bitflags
  291. ITEM_INVENTORY_LOCATION_PLAYER = 0x00100000;
  292. ITEM_INVENTORY_LOCATION_BAGS = 0x00200000;
  293. ITEM_INVENTORY_LOCATION_BANK = 0x00400000;
  294. ITEM_INVENTORY_LOCATION_VOIDSTORAGE = 0x00800000;
  295. ITEM_INVENTORY_BAG_BIT_OFFSET = 8; -- Number of bits that the bag index in GetInventoryItemsForSlot gets shifted to the left.
  296. -- Inventory slots
  297. INVSLOT_AMMO = 0;
  298. INVSLOT_HEAD = 1; INVSLOT_FIRST_EQUIPPED = INVSLOT_HEAD;
  299. INVSLOT_NECK = 2;
  300. INVSLOT_SHOULDER = 3;
  301. INVSLOT_BODY = 4;
  302. INVSLOT_CHEST = 5;
  303. INVSLOT_WAIST = 6;
  304. INVSLOT_LEGS = 7;
  305. INVSLOT_FEET = 8;
  306. INVSLOT_WRIST = 9;
  307. INVSLOT_HAND = 10;
  308. INVSLOT_FINGER1 = 11;
  309. INVSLOT_FINGER2 = 12;
  310. INVSLOT_TRINKET1 = 13;
  311. INVSLOT_TRINKET2 = 14;
  312. INVSLOT_BACK = 15;
  313. INVSLOT_MAINHAND = 16;
  314. INVSLOT_OFFHAND = 17;
  315. INVSLOT_RANGED = 18;
  316. INVSLOT_TABARD = 19;
  317. INVSLOT_LAST_EQUIPPED = INVSLOT_TABARD;
  318. INVSLOTS_EQUIPABLE_IN_COMBAT = {
  319. [INVSLOT_MAINHAND] = true,
  320. [INVSLOT_OFFHAND] = true,
  321. [INVSLOT_RANGED] = true,
  322. }
  323. -- Container constants
  324. ITEM_INVENTORY_BANK_BAG_OFFSET = 4; -- Number of bags before the first bank bag
  325. CONTAINER_BAG_OFFSET = 19; -- Used for PutItemInBag
  326. BACKPACK_CONTAINER = 0;
  327. BANK_CONTAINER = -1;
  328. BANK_CONTAINER_INVENTORY_OFFSET = 39; -- Used for PickupInventoryItem
  329. KEYRING_CONTAINER = -2;
  330. REAGENTBANK_CONTAINER = -3;
  331. NUM_BAG_SLOTS = 4;
  332. NUM_BANKGENERIC_SLOTS = 28;
  333. NUM_BANKBAGSLOTS = 7;
  334. -- Item IDs
  335. HEARTHSTONE_ITEM_ID = 6948;
  336. --
  337. -- Equipment Set
  338. --
  339. MAX_EQUIPMENT_SETS_PER_PLAYER = 10;
  340. EQUIPMENT_SET_EMPTY_SLOT = 0;
  341. EQUIPMENT_SET_IGNORED_SLOT = 1;
  342. EQUIPMENT_SET_ITEM_MISSING = -1;
  343. --
  344. -- Combat Log
  345. --
  346. -- Affiliation
  347. COMBATLOG_OBJECT_AFFILIATION_MINE = 0x00000001;
  348. COMBATLOG_OBJECT_AFFILIATION_PARTY = 0x00000002;
  349. COMBATLOG_OBJECT_AFFILIATION_RAID = 0x00000004;
  350. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER = 0x00000008;
  351. COMBATLOG_OBJECT_AFFILIATION_MASK = 0x0000000F;
  352. -- Reaction
  353. COMBATLOG_OBJECT_REACTION_FRIENDLY = 0x00000010;
  354. COMBATLOG_OBJECT_REACTION_NEUTRAL = 0x00000020;
  355. COMBATLOG_OBJECT_REACTION_HOSTILE = 0x00000040;
  356. COMBATLOG_OBJECT_REACTION_MASK = 0x000000F0;
  357. -- Ownership
  358. COMBATLOG_OBJECT_CONTROL_PLAYER = 0x00000100;
  359. COMBATLOG_OBJECT_CONTROL_NPC = 0x00000200;
  360. COMBATLOG_OBJECT_CONTROL_MASK = 0x00000300;
  361. -- Unit type
  362. COMBATLOG_OBJECT_TYPE_PLAYER = 0x00000400;
  363. COMBATLOG_OBJECT_TYPE_NPC = 0x00000800;
  364. COMBATLOG_OBJECT_TYPE_PET = 0x00001000;
  365. COMBATLOG_OBJECT_TYPE_GUARDIAN = 0x00002000;
  366. COMBATLOG_OBJECT_TYPE_OBJECT = 0x00004000;
  367. COMBATLOG_OBJECT_TYPE_MASK = 0x0000FC00;
  368. -- Special cases (non-exclusive)
  369. COMBATLOG_OBJECT_TARGET = 0x00010000;
  370. COMBATLOG_OBJECT_FOCUS = 0x00020000;
  371. COMBATLOG_OBJECT_MAINTANK = 0x00040000;
  372. COMBATLOG_OBJECT_MAINASSIST = 0x00080000;
  373. COMBATLOG_OBJECT_NONE = 0x80000000;
  374. COMBATLOG_OBJECT_SPECIAL_MASK = 0xFFFF0000;
  375. COMBATLOG_OBJECT_RAIDTARGET1 = 0x00000001;
  376. COMBATLOG_OBJECT_RAIDTARGET2 = 0x00000002;
  377. COMBATLOG_OBJECT_RAIDTARGET3 = 0x00000004;
  378. COMBATLOG_OBJECT_RAIDTARGET4 = 0x00000008;
  379. COMBATLOG_OBJECT_RAIDTARGET5 = 0x00000010;
  380. COMBATLOG_OBJECT_RAIDTARGET6 = 0x00000020;
  381. COMBATLOG_OBJECT_RAIDTARGET7 = 0x00000040;
  382. COMBATLOG_OBJECT_RAIDTARGET8 = 0x00000080;
  383. COMBATLOG_OBJECT_RAIDTARGET_MASK = bit.bor(
  384. COMBATLOG_OBJECT_RAIDTARGET1,
  385. COMBATLOG_OBJECT_RAIDTARGET2,
  386. COMBATLOG_OBJECT_RAIDTARGET3,
  387. COMBATLOG_OBJECT_RAIDTARGET4,
  388. COMBATLOG_OBJECT_RAIDTARGET5,
  389. COMBATLOG_OBJECT_RAIDTARGET6,
  390. COMBATLOG_OBJECT_RAIDTARGET7,
  391. COMBATLOG_OBJECT_RAIDTARGET8
  392. );
  393. -- Object type constants
  394. COMBATLOG_FILTER_ME = bit.bor(
  395. COMBATLOG_OBJECT_AFFILIATION_MINE,
  396. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  397. COMBATLOG_OBJECT_CONTROL_PLAYER,
  398. COMBATLOG_OBJECT_TYPE_PLAYER
  399. );
  400. COMBATLOG_FILTER_MINE = bit.bor(
  401. COMBATLOG_OBJECT_AFFILIATION_MINE,
  402. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  403. COMBATLOG_OBJECT_CONTROL_PLAYER,
  404. COMBATLOG_OBJECT_TYPE_PLAYER,
  405. COMBATLOG_OBJECT_TYPE_OBJECT
  406. );
  407. COMBATLOG_FILTER_MY_PET = bit.bor(
  408. COMBATLOG_OBJECT_AFFILIATION_MINE,
  409. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  410. COMBATLOG_OBJECT_CONTROL_PLAYER,
  411. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  412. COMBATLOG_OBJECT_TYPE_PET
  413. );
  414. COMBATLOG_FILTER_FRIENDLY_UNITS = bit.bor(
  415. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  416. COMBATLOG_OBJECT_AFFILIATION_RAID,
  417. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  418. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  419. COMBATLOG_OBJECT_CONTROL_PLAYER,
  420. COMBATLOG_OBJECT_CONTROL_NPC,
  421. COMBATLOG_OBJECT_TYPE_PLAYER,
  422. COMBATLOG_OBJECT_TYPE_NPC,
  423. COMBATLOG_OBJECT_TYPE_PET,
  424. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  425. COMBATLOG_OBJECT_TYPE_OBJECT
  426. );
  427. COMBATLOG_FILTER_HOSTILE_PLAYERS = bit.bor(
  428. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  429. COMBATLOG_OBJECT_AFFILIATION_RAID,
  430. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  431. COMBATLOG_OBJECT_REACTION_HOSTILE,
  432. COMBATLOG_OBJECT_CONTROL_PLAYER,
  433. COMBATLOG_OBJECT_TYPE_PLAYER,
  434. COMBATLOG_OBJECT_TYPE_NPC,
  435. COMBATLOG_OBJECT_TYPE_PET,
  436. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  437. COMBATLOG_OBJECT_TYPE_OBJECT
  438. );
  439. COMBATLOG_FILTER_HOSTILE_UNITS = bit.bor(
  440. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  441. COMBATLOG_OBJECT_AFFILIATION_RAID,
  442. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  443. COMBATLOG_OBJECT_REACTION_HOSTILE,
  444. COMBATLOG_OBJECT_CONTROL_NPC,
  445. COMBATLOG_OBJECT_TYPE_PLAYER,
  446. COMBATLOG_OBJECT_TYPE_NPC,
  447. COMBATLOG_OBJECT_TYPE_PET,
  448. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  449. COMBATLOG_OBJECT_TYPE_OBJECT
  450. );
  451. COMBATLOG_FILTER_NEUTRAL_UNITS = bit.bor(
  452. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  453. COMBATLOG_OBJECT_AFFILIATION_RAID,
  454. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  455. COMBATLOG_OBJECT_REACTION_NEUTRAL,
  456. COMBATLOG_OBJECT_CONTROL_PLAYER,
  457. COMBATLOG_OBJECT_CONTROL_NPC,
  458. COMBATLOG_OBJECT_TYPE_PLAYER,
  459. COMBATLOG_OBJECT_TYPE_NPC,
  460. COMBATLOG_OBJECT_TYPE_PET,
  461. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  462. COMBATLOG_OBJECT_TYPE_OBJECT
  463. );
  464. COMBATLOG_FILTER_UNKNOWN_UNITS = COMBATLOG_OBJECT_NONE;
  465. COMBATLOG_FILTER_EVERYTHING = 0xFFFFFFFF;
  466. --
  467. -- Calendar
  468. --
  469. CALENDAR_FIRST_WEEKDAY = 1; -- 1=SUN 2=MON 3=TUE 4=WED 5=THU 6=FRI 7=SAT
  470. -- Event Types
  471. CALENDAR_EVENTTYPE_RAID = Enum.CalendarEventType.Raid;
  472. CALENDAR_EVENTTYPE_DUNGEON = Enum.CalendarEventType.Dungeon;
  473. CALENDAR_EVENTTYPE_PVP = Enum.CalendarEventType.Pvp;
  474. CALENDAR_EVENTTYPE_MEETING = Enum.CalendarEventType.Meeting;
  475. CALENDAR_EVENTTYPE_OTHER = Enum.CalendarEventType.Other;
  476. CALENDAR_MAX_EVENTTYPE = Enum.CalendarEventType.Other;
  477. -- Invite Statuses
  478. CALENDAR_INVITESTATUS_INVITED = 1;
  479. CALENDAR_INVITESTATUS_ACCEPTED = 2;
  480. CALENDAR_INVITESTATUS_DECLINED = 3;
  481. CALENDAR_INVITESTATUS_CONFIRMED = 4;
  482. CALENDAR_INVITESTATUS_OUT = 5;
  483. CALENDAR_INVITESTATUS_STANDBY = 6;
  484. CALENDAR_INVITESTATUS_SIGNEDUP = 7;
  485. CALENDAR_INVITESTATUS_NOT_SIGNEDUP = 8;
  486. CALENDAR_INVITESTATUS_TENTATIVE = 9;
  487. CALENDAR_MAX_INVITESTATUS = CALENDAR_INVITESTATUS_TENTATIVE;
  488. -- Invite Types
  489. CALENDAR_INVITETYPE_NORMAL = 1;
  490. CALENDAR_INVITETYPE_SIGNUP = 2;
  491. CALENDAR_MAX_INVITETYPE = CALENDAR_INVITETYPE_SIGNUP;
  492. --
  493. -- Difficulty
  494. --
  495. QuestDifficultyColors = {
  496. ["impossible"] = { r = 1.00, g = 0.10, b = 0.10, font = "QuestDifficulty_Impossible" };
  497. ["verydifficult"] = { r = 1.00, g = 0.50, b = 0.25, font = "QuestDifficulty_VeryDifficult" };
  498. ["difficult"] = { r = 1.00, g = 0.82, b = 0.00, font = "QuestDifficulty_Difficult" };
  499. ["standard"] = { r = 0.25, g = 0.75, b = 0.25, font = "QuestDifficulty_Standard" };
  500. ["trivial"] = { r = 0.50, g = 0.50, b = 0.50, font = "QuestDifficulty_Trivial" };
  501. ["header"] = { r = 0.70, g = 0.70, b = 0.70, font = "QuestDifficulty_Header" };
  502. ["disabled"] = { r = 0.498, g = 0.498, b = 0.498, font = "QuestDifficulty_Impossible" };
  503. };
  504. QuestDifficultyHighlightColors = {
  505. ["impossible"] = { r = 1.00, g = 0.40, b = 0.40, font = "QuestDifficulty_Impossible" };
  506. ["verydifficult"] = { r = 1.00, g = 0.75, b = 0.44, font = "QuestDifficulty_VeryDifficult" };
  507. ["difficult"] = { r = 1.00, g = 1.00, b = 0.10, font = "QuestDifficulty_Difficult" };
  508. ["standard"] = { r = 0.43, g = 0.93, b = 0.43, font = "QuestDifficulty_Standard" };
  509. ["trivial"] = { r = 0.70, g = 0.70, b = 0.70, font = "QuestDifficulty_Trivial" };
  510. ["header"] = { r = 1.00, g = 1.00, b = 1.00, font = "QuestDifficulty_Header" };
  511. ["disabled"] = { r = 0.60, g = 0.60, b = 0.60, font = "QuestDifficulty_Impossible" };
  512. };
  513. --
  514. -- WorldMap
  515. --
  516. NUM_WORLDMAP_PATCH_TILES = 6;
  517. --
  518. -- Totems
  519. --
  520. MAX_TOTEMS = 4;
  521. FIRE_TOTEM_SLOT = 1;
  522. EARTH_TOTEM_SLOT = 2;
  523. WATER_TOTEM_SLOT = 3;
  524. AIR_TOTEM_SLOT = 4;
  525. STANDARD_TOTEM_PRIORITIES = {1, 2, 3, 4};
  526. SHAMAN_TOTEM_PRIORITIES = {
  527. EARTH_TOTEM_SLOT,
  528. FIRE_TOTEM_SLOT,
  529. WATER_TOTEM_SLOT,
  530. AIR_TOTEM_SLOT,
  531. };
  532. TOTEM_MULTI_CAST_SUMMON_SPELLS = {
  533. 66842,
  534. 66843,
  535. 66844,
  536. };
  537. TOTEM_MULTI_CAST_RECALL_SPELLS = {
  538. 36936,
  539. };
  540. --
  541. -- GM Ticket
  542. --
  543. GMTICKET_QUEUE_STATUS_ENABLED = 1;
  544. GMTICKET_QUEUE_STATUS_DISABLED = -1;
  545. GMTICKET_ASSIGNEDTOGM_STATUS_NOT_ASSIGNED = 0; -- ticket is not currently assigned to a gm
  546. GMTICKET_ASSIGNEDTOGM_STATUS_ASSIGNED = 1; -- ticket is assigned to a normal gm
  547. GMTICKET_ASSIGNEDTOGM_STATUS_ESCALATED = 2; -- ticket is in the escalation queue
  548. GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED = 0; -- ticket has never been opened by a gm
  549. GMTICKET_OPENEDBYGM_STATUS_OPENED = 1; -- ticket has been opened by a gm
  550. -- indicies for adding lights ModelFFX:Add*Light
  551. LIGHT_LIVE = 0;
  552. LIGHT_GHOST = 1;
  553. -- general constant translation table
  554. STATIC_CONSTANTS = {}
  555. RegisterStaticConstants(STATIC_CONSTANTS);
  556. -- textures for quest item overlays
  557. TEXTURE_ITEM_QUEST_BANG = "Interface\\ContainerFrame\\UI-Icon-QuestBang";
  558. TEXTURE_ITEM_QUEST_BORDER = "Interface\\ContainerFrame\\UI-Icon-QuestBorder";
  559. -- Friends
  560. SHOW_SEARCH_BAR_NUM_FRIENDS = 12;
  561. -- Search box
  562. MIN_CHARACTER_SEARCH = 3;
  563. -- faction
  564. PLAYER_FACTION_GROUP = { [0] = "Horde", [1] = "Alliance", Horde = 0, Alliance = 1 };
  565. PLAYER_FACTION_COLORS = { [0] = CreateColor(0.90, 0.05, 0.07), [1] = CreateColor(0.29, 0.33, 0.91) }
  566. -- Panel default size
  567. PANEL_DEFAULT_WIDTH = 338;
  568. PANEL_DEFAULT_HEIGHT = 424;
  569. --Inline role icons
  570. INLINE_TANK_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:0:19:22:41|t";
  571. INLINE_HEALER_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:20:39:1:20|t";
  572. INLINE_DAMAGER_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:20:39:22:41|t"
  573. -- Guild
  574. MAX_GUILDBANK_TABS = 8;
  575. MAX_BUY_GUILDBANK_TABS = 6;
  576. EXP_DEFAULT_WIDTH = 1024;
  577. -- Date stuff
  578. CALENDAR_WEEKDAY_NAMES = {
  579. WEEKDAY_SUNDAY,
  580. WEEKDAY_MONDAY,
  581. WEEKDAY_TUESDAY,
  582. WEEKDAY_WEDNESDAY,
  583. WEEKDAY_THURSDAY,
  584. WEEKDAY_FRIDAY,
  585. WEEKDAY_SATURDAY,
  586. };
  587. -- month names show up differently for full date displays in some languages
  588. CALENDAR_FULLDATE_MONTH_NAMES = {
  589. FULLDATE_MONTH_JANUARY,
  590. FULLDATE_MONTH_FEBRUARY,
  591. FULLDATE_MONTH_MARCH,
  592. FULLDATE_MONTH_APRIL,
  593. FULLDATE_MONTH_MAY,
  594. FULLDATE_MONTH_JUNE,
  595. FULLDATE_MONTH_JULY,
  596. FULLDATE_MONTH_AUGUST,
  597. FULLDATE_MONTH_SEPTEMBER,
  598. FULLDATE_MONTH_OCTOBER,
  599. FULLDATE_MONTH_NOVEMBER,
  600. FULLDATE_MONTH_DECEMBER,
  601. };
  602. -- Druid Forms.
  603. CAT_FORM = 1;
  604. BEAR_FORM = 5;
  605. MOONKIN_FORM = 31;
  606. -- PVP Global Lua Constants
  607. CONQUEST_CURRENCY = 390;
  608. HONOR_CURRENCY = 392;
  609. JUSTICE_CURRENCY = 395;
  610. VALOR_CURRENCY = 396;
  611. SHOW_CONQUEST_LEVEL = 70;
  612. -- Looking for Guild Parameters
  613. LFGUILD_PARAM_QUESTS = 1;
  614. LFGUILD_PARAM_DUNGEONS = 2;
  615. LFGUILD_PARAM_RAIDS = 3;
  616. LFGUILD_PARAM_PVP = 4;
  617. LFGUILD_PARAM_RP = 5;
  618. LFGUILD_PARAM_WEEKDAYS = 6;
  619. LFGUILD_PARAM_WEEKENDS = 7;
  620. LFGUILD_PARAM_TANK = 8;
  621. LFGUILD_PARAM_HEALER = 9;
  622. LFGUILD_PARAM_DAMAGE = 10;
  623. LFGUILD_PARAM_ANY_LEVEL = 11;
  624. LFGUILD_PARAM_MAX_LEVEL = 12;
  625. LFGUILD_PARAM_LOOKING = 13;
  626. -- Instance
  627. INSTANCE_TYPE_DUNGEON = 1;
  628. INSTANCE_TYPE_RAID = 2;
  629. INSTANCE_TYPE_BG = 3;
  630. INSTANCE_TYPE_ARENA = 4;
  631. DEFAULT_READY_CHECK_STAY_TIME = 10;
  632. PET_TYPE_SUFFIX = {
  633. [1] = "Humanoid",
  634. [2] = "Dragon",
  635. [3] = "Flying",
  636. [4] = "Undead",
  637. [5] = "Critter",
  638. [6] = "Magical",
  639. [7] = "Elemental",
  640. [8] = "Beast",
  641. [9] = "Water",
  642. [10] = "Mechanical",
  643. };
  644. PET_BATTLE_PET_TYPE_PASSIVES = {
  645. 238, --Humanoid - Recovery
  646. 245, --Dragon - Execute
  647. 239, --Flying - Swiftness
  648. 242, --Undead - Damned
  649. 236, --Critter - Elusive
  650. 243, --Magical - Spellshield
  651. 241, --Elemental - Weather Immune
  652. 237, --Beast - Enrage
  653. 240, --Aquatic - Purity
  654. 244, --Mechanical - Failsafe
  655. };
  656. MAX_NUM_PET_BATTLE_ATTACK_MODIFIERS = 2;
  657. PET_BATTLE_STATE_ATTACK = 18;
  658. PET_BATTLE_STATE_SPEED = 20;
  659. PET_BATTLE_EVENT_ON_APPLY = 0;
  660. PET_BATTLE_EVENT_ON_DAMAGE_TAKEN = 1;
  661. PET_BATTLE_EVENT_ON_DAMAGE_DEALT = 2;
  662. PET_BATTLE_EVENT_ON_HEAL_TAKEN = 3;
  663. PET_BATTLE_EVENT_ON_HEAL_DEALT = 4;
  664. PET_BATTLE_EVENT_ON_AURA_REMOVED = 5;
  665. PET_BATTLE_EVENT_ON_ROUND_START = 6;
  666. PET_BATTLE_EVENT_ON_ROUND_END = 7;
  667. PET_BATTLE_EVENT_ON_TURN = 8;
  668. PET_BATTLE_EVENT_ON_ABILITY = 9;
  669. PET_BATTLE_EVENT_ON_SWAP_IN = 10;
  670. PET_BATTLE_EVENT_ON_SWAP_OUT = 11;
  671. PET_BATTLE_PAD_INDEX = 0;
  672. -- Challenge Mode
  673. CHALLENGE_MEDAL_NONE = 0;
  674. CHALLENGE_MEDAL_BRONZE = 1;
  675. CHALLENGE_MEDAL_SILVER = 2;
  676. CHALLENGE_MEDAL_GOLD = 3;
  677. CHALLENGE_MEDAL_PLAT = 4; --as of 7/2/2013 only used for endless proving grounds
  678. NUM_CHALLENGE_MEDALS = 3;
  679. CHALLENGE_MEDAL_TEXTURES = {
  680. [CHALLENGE_MEDAL_BRONZE] = "Interface\\Challenges\\challenges-bronze",
  681. [CHALLENGE_MEDAL_SILVER] = "Interface\\Challenges\\challenges-silver",
  682. [CHALLENGE_MEDAL_GOLD] = "Interface\\Challenges\\challenges-gold",
  683. [CHALLENGE_MEDAL_PLAT] = "Interface\\Challenges\\challenges-plat",
  684. }
  685. CHALLENGE_MEDAL_TEXTURES_SMALL = {
  686. [CHALLENGE_MEDAL_BRONZE] = "Interface\\Challenges\\challenges-bronze-sm",
  687. [CHALLENGE_MEDAL_SILVER] = "Interface\\Challenges\\challenges-silver-sm",
  688. [CHALLENGE_MEDAL_GOLD] = "Interface\\Challenges\\challenges-gold-sm",
  689. [CHALLENGE_MEDAL_PLAT] = "Interface\\Challenges\\challenges-plat-sm",
  690. }
  691. -- Player Reporting
  692. PLAYER_REPORT_TYPE_SPAM = "spam";
  693. PLAYER_REPORT_TYPE_LANGUAGE = "language";
  694. PLAYER_REPORT_TYPE_ABUSE = "abuse";
  695. PLAYER_REPORT_TYPE_BAD_PLAYER_NAME = "badplayername";
  696. PLAYER_REPORT_TYPE_BAD_GUILD_NAME = "badguildname";
  697. PLAYER_REPORT_TYPE_CHEATING = "cheater";
  698. PLAYER_REPORT_TYPE_BAD_BATTLEPET_NAME = "badbattlepetname";
  699. PLAYER_REPORT_TYPE_BAD_PET_NAME = "badpetname";
  700. --Loot
  701. BONUS_ROLL_REQUIRED_CURRENCY = 697;
  702. -- Quest
  703. QUEST_TYPE_DUNGEON = 81;
  704. QUEST_TYPE_SCENARIO = 98;
  705. MAX_QUESTS = 25;
  706. MAX_OBJECTIVES = 20;
  707. MAX_QUESTLOG_QUESTS = 25;
  708. MAX_WATCHABLE_QUESTS = 25;
  709. WORLD_QUESTS_TIME_CRITICAL_MINUTES = 15;
  710. WORLD_QUESTS_TIME_LOW_MINUTES = 75;
  711. WORLD_QUESTS_AVAILABLE_QUEST_ID = 43341;
  712. -- LFG
  713. LFG_CATEGORY_NAMES = {
  714. [LE_LFG_CATEGORY_LFD] = LOOKING_FOR_DUNGEON,
  715. [LE_LFG_CATEGORY_RF] = RAID_FINDER,
  716. [LE_LFG_CATEGORY_SCENARIO] = SCENARIOS,
  717. [LE_LFG_CATEGORY_LFR] = LOOKING_FOR_RAID,
  718. [LE_LFG_CATEGORY_FLEXRAID] = FLEX_RAID,
  719. [LE_LFG_CATEGORY_WORLDPVP] = WORLD_PVP,
  720. [LE_LFG_CATEGORY_BATTLEFIELD] = LFG_CATEGORY_BATTLEFIELD,
  721. }
  722. -- Instance Difficulty
  723. DIFFICULTY_DUNGEON_NORMAL = 1;
  724. DIFFICULTY_DUNGEON_HEROIC = 2;
  725. DIFFICULTY_RAID10_NORMAL = 3;
  726. DIFFICULTY_RAID25_NORMAL = 4;
  727. DIFFICULTY_RAID10_HEROIC = 5;
  728. DIFFICULTY_RAID25_HEROIC = 6;
  729. DIFFICULTY_RAID_LFR = 7;
  730. DIFFICULTY_DUNGEON_CHALLENGE = 8;
  731. DIFFICULTY_RAID40 = 9;
  732. DIFFICULTY_PRIMARYRAID_NORMAL = 14;
  733. DIFFICULTY_PRIMARYRAID_HEROIC = 15;
  734. DIFFICULTY_PRIMARYRAID_MYTHIC = 16;
  735. DIFFICULTY_PRIMARYRAID_LFR = 17;
  736. -- PVP
  737. MAX_ARENA_TEAMS = 2;
  738. MAX_WORLD_PVP_QUEUES = 2;
  739. -- Chat
  740. CHANNEL_INVITE_TIMEOUT = 60;
  741. -- Scenarios
  742. SCENARIO_FLAG_DEPRECATED1 = 0x00000001;
  743. SCENARIO_FLAG_SUPRESS_STAGE_TEXT = 0x00000002;
  744. SCENARIO_FLAG_DEPRECATED2 = 0x00000004;
  745. SCENARIO_FLAG_DEPRECATED3 = 0x00000008;
  746. -- Lua Warning types
  747. LUA_WARNING_TREAT_AS_ERROR = 0;
  748. -- Quest Tags
  749. QUEST_ICONS_FILE = "Interface\\QuestFrame\\QuestTypeIcons";
  750. QUEST_ICONS_FILE_WIDTH = 128;
  751. QUEST_ICONS_FILE_HEIGHT = 64;
  752. QUEST_TAG_TCOORDS = {
  753. ["COMPLETED"] = { 0.140625, 0.28125, 0, 0.28125 },
  754. ["DAILY"] = { 0.28125, 0.421875, 0, 0.28125 },
  755. ["WEEKLY"] = { 0.28125, 0.421875, 0.5625, 0.84375 },
  756. ["FAILED"] = { 0.84375, 0.984375, 0.28125, 0.5625 },
  757. ["STORY"] = { 0.703125, 0.84375, 0.28125, 0.5625 },
  758. ["ALLIANCE"] = { 0.421875, 0.5625, 0.28125, 0.5625 },
  759. ["HORDE"] = { 0.5625, 0.703125, 0.28125, 0.5625 },
  760. [Enum.QuestTag.Dungeon] = { 0.421875, 0.5625, 0, 0.28125 },
  761. [Enum.QuestTag.Scenario] = { 0.5625, 0.703125, 0, 0.28125 },
  762. [Enum.QuestTag.Account] = { 0.84375, 0.984375, 0, 0.28125 },
  763. [Enum.QuestTag.Legendary] = { 0, 0.140625, 0.28125, 0.5625 },
  764. [Enum.QuestTag.Group] = { 0.140625, 0.28125, 0.28125, 0.5625 },
  765. [Enum.QuestTag.Pvp] = { 0.28125, 0.421875, 0.28125, 0.5625 },
  766. [Enum.QuestTag.Heroic] = { 0, 0.140625, 0.5625, 0.84375 },
  767. -- same texture for all raids
  768. [Enum.QuestTag.Raid] = { 0.703125, 0.84375, 0, 0.28125 },
  769. [Enum.QuestTag.Raid10] = { 0.703125, 0.84375, 0, 0.28125 },
  770. [Enum.QuestTag.Raid25] = { 0.703125, 0.84375, 0, 0.28125 },
  771. };
  772. WORLD_QUEST_TYPE_TCOORDS = {
  773. [LE_QUEST_TAG_TYPE_DUNGEON] = { 0.421875, 0.5625, 0, 0.28125 },
  774. [LE_QUEST_TAG_TYPE_RAID] = { 0.703125, 0.84375, 0, 0.28125 },
  775. };
  776. -- MATCH CONDITIONS
  777. MATCH_CONDITION_WRONG_ACHIEVEMENT = 34;
  778. MATCH_CONDITION_SUCCESS = 57;
  779. -- FOR ABBREVIATING LARGE NUMBERS
  780. FIRST_NUMBER_CAP_VALUE = 1000;
  781. -- GARRISONS
  782. GARRISON_HIGH_THREAT_VALUE = 300;
  783. LOOT_SOURCE_GARRISON_CACHE = 10;
  784. WOW_TOKEN_ITEM_ID = 122284;
  785. -- TRANSMOG
  786. ENCHANT_EMPTY_SLOT_FILEDATAID = 134941;
  787. WARDROBE_TOOLTIP_CYCLE_ARROW_ICON = "|TInterface\\Transmogrify\\transmog-tooltip-arrow:12:11:-1:-1|t";
  788. WARDROBE_TOOLTIP_CYCLE_SPACER_ICON = "|TInterface\\Common\\spacer:12:11:-1:-1|t";
  789. WARDROBE_CYCLE_KEY = "TAB";
  790. WARDROBE_PREV_VISUAL_KEY = "LEFT";
  791. WARDROBE_NEXT_VISUAL_KEY = "RIGHT";
  792. WARDROBE_UP_VISUAL_KEY = "UP";
  793. WARDROBE_DOWN_VISUAL_KEY = "DOWN";
  794. TRANSMOG_INVALID_CODES = {
  795. "NO_ITEM",
  796. "NOT_SOULBOUND",
  797. "LEGENDARY",
  798. "ITEM_TYPE",
  799. "DESTINATION",
  800. "MISMATCH",
  801. "", -- same item
  802. "", -- invalid source
  803. "", -- invalid source quality
  804. "CANNOT_USE",
  805. }
  806. TRANSMOG_SOURCE_BOSS_DROP = 1;
  807. TRANSMOG_SLOTS = {
  808. [1] = { slot = "HEADSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_HEAD },
  809. [2] = { slot = "SHOULDERSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_SHOULDER },
  810. [3] = { slot = "BACKSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_BACK },
  811. [4] = { slot = "CHESTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_CHEST },
  812. [5] = { slot = "TABARDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_TABARD },
  813. [6] = { slot = "SHIRTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_SHIRT },
  814. [7] = { slot = "WRISTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_WRIST },
  815. [8] = { slot = "HANDSSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_HANDS },
  816. [9] = { slot = "WAISTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_WAIST },
  817. [10] = { slot = "LEGSSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_LEGS },
  818. [11] = { slot = "FEETSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_FEET },
  819. [12] = { slot = "MAINHANDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = nil },
  820. [13] = { slot = "SECONDARYHANDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = nil },
  821. [14] = { slot = "MAINHANDSLOT", transmogType = LE_TRANSMOG_TYPE_ILLUSION, armorCategoryID = nil },
  822. [15] = { slot = "SECONDARYHANDSLOT", transmogType = LE_TRANSMOG_TYPE_ILLUSION, armorCategoryID = nil },
  823. }
  824. FIRST_TRANSMOG_COLLECTION_WEAPON_TYPE = LE_TRANSMOG_COLLECTION_TYPE_FEET + 1;
  825. LAST_TRANSMOG_COLLECTION_WEAPON_TYPE = NUM_LE_TRANSMOG_COLLECTION_TYPES;
  826. NO_TRANSMOG_SOURCE_ID = 0;
  827. NO_TRANSMOG_VISUAL_ID = 0;
  828. REMOVE_TRANSMOG_ID = 0;
  829. -- ITEMSUBCLASSTYPES
  830. ITEMSUBCLASSTYPES = {
  831. ["DAGGER"] = { classID = 2, subClassID = 15},
  832. }
  833. -- MINIMAP
  834. TYPEID_DUNGEON = 1;
  835. TYPEID_RANDOM_DUNGEON = 6;
  836. LFG_SUBTYPEID_DUNGEON = 1;
  837. LFG_SUBTYPEID_HEROIC = 2;
  838. LFG_SUBTYPEID_RAID = 3;
  839. LFG_SUBTYPEID_SCENARIO = 4;
  840. LFG_SUBTYPEID_FLEXRAID = 5;
  841. LFG_SUBTYPEID_WORLDPVP = 6;
  842. -- TEXTURES
  843. QUESTION_MARK_ICON = "INTERFACE\\ICONS\\INV_MISC_QUESTIONMARK.BLP";
  844. UPPER_LEFT_VERTEX = 1;
  845. LOWER_LEFT_VERTEX = 2;
  846. UPPER_RIGHT_VERTEX = 3;
  847. LOWER_RIGHT_VERTEX = 4;
  848. -- TUTORIALS
  849. HELPTIP_HEIGHT_PADDING = 29;
  850. -- RELIC TALENTS
  851. RELIC_TALENT_TYPE_LIGHT = 1;
  852. RELIC_TALENT_TYPE_VOID = 2;
  853. RELIC_TALENT_TYPE_NEUTRAL = 3;
  854. RELIC_TALENT_STYLE_CLOSED = 1;
  855. RELIC_TALENT_STYLE_UPCOMING = 2;
  856. RELIC_TALENT_STYLE_AVAILABLE = 3;
  857. RELIC_TALENT_STYLE_CHOSEN = 4;
  858. RELIC_TALENT_LINK_TYPE_LIGHT = 1;
  859. RELIC_TALENT_LINK_TYPE_VOID = 2;
  860. RELIC_TALENT_LINK_STYLE_DISABLED = 1;
  861. RELIC_TALENT_LINK_STYLE_POTENTIAL = 2;
  862. RELIC_TALENT_LINK_STYLE_ACTIVE = 3;
  863. RELIC_TALENT_LINK_STYLE_UPCOMING = 4;
  864. RELIC_TALENT_LINK_STYLE_AVAILABLE = 5;
  865. -- TODO: Need to be able to expose this from client...
  866. Enum.ChatChannelType = {
  867. None = 0,
  868. Custom = 1,
  869. Private_Party = 2,
  870. Public_Party = 3,
  871. Communities = 4,
  872. };
  873. CALENDAR_INVITESTATUS_INFO = {
  874. ["UNKNOWN"] = {
  875. name = UNKNOWN,
  876. color = NORMAL_FONT_COLOR,
  877. },
  878. [CALENDAR_INVITESTATUS_CONFIRMED] = {
  879. name = CALENDAR_STATUS_CONFIRMED,
  880. color = GREEN_FONT_COLOR,
  881. },
  882. [CALENDAR_INVITESTATUS_ACCEPTED] = {
  883. name = CALENDAR_STATUS_ACCEPTED,
  884. color = GREEN_FONT_COLOR,
  885. },
  886. [CALENDAR_INVITESTATUS_DECLINED] = {
  887. name = CALENDAR_STATUS_DECLINED,
  888. color = RED_FONT_COLOR,
  889. },
  890. [CALENDAR_INVITESTATUS_OUT] = {
  891. name = CALENDAR_STATUS_OUT,
  892. color = RED_FONT_COLOR,
  893. },
  894. [CALENDAR_INVITESTATUS_STANDBY] = {
  895. name = CALENDAR_STATUS_STANDBY,
  896. color = ORANGE_FONT_COLOR,
  897. },
  898. [CALENDAR_INVITESTATUS_INVITED] = {
  899. name = CALENDAR_STATUS_INVITED,
  900. color = NORMAL_FONT_COLOR,
  901. },
  902. [CALENDAR_INVITESTATUS_SIGNEDUP] = {
  903. name = CALENDAR_STATUS_SIGNEDUP,
  904. color = GREEN_FONT_COLOR,
  905. },
  906. [CALENDAR_INVITESTATUS_NOT_SIGNEDUP] = {
  907. name = CALENDAR_STATUS_NOT_SIGNEDUP,
  908. color = GRAY_FONT_COLOR,
  909. },
  910. [CALENDAR_INVITESTATUS_TENTATIVE] = {
  911. name = CALENDAR_STATUS_TENTATIVE,
  912. color = ORANGE_FONT_COLOR,
  913. },
  914. };
  915. TOOLTIP_INDENT_OFFSET = 10;