12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Index ■ C–C 1365storing damage <strong>and</strong> healing in<strong>for</strong>mation,405–407updating frame display, 410–412updating pet mappings, 405writing OnUpdate function, 408combat tracking, testing, 280COMBAT_LOG_EVENT, 387COMBAT_LOG_EVENT_UNFILTERED, 387, 409combatEvent argument, 388CombatLog functions, 1046COMBATLOG_OBJECT_AFFILIATION_MASK, 399COMBATLOG_OBJECT_CONTROL_MASK, 398COMBATLOG_OBJECT_ISA, 400CombatLog_Object_IsA, 619–620COMBATLOG_OBJECT_REACTION_MASK, 399COMBATLOG_OBJECT_TYPE_MASK, 398CombatLogAddFilter, 617CombatLogAdvanceEntry, 617CombatLogClearEntries, 618CombatLogGetCurrentEntry, 618CombatLogGetNumEntries, 618CombatLogGetRetentionTime, 618CombatLogResetFilter, 619CombatLogSetCurrentEntry, 619CombatLogSetRetentionTime, 619CombatTextSetActiveUnit, 620CombatTracker addon, 267–281adding functions to CombatTracker.lua,275–278adding script h<strong>and</strong>lers toCombatTrackerFrame, 273–274creating skeleton, 269–270defining specifications, 267–269defining XML frame, 270–272testing, 278–281testing CombatTrackerFrame, 272–273CombatTracker_OnEvent(), 276–278CombatTracker_OnLoad(frame), 275–276CombatTracker_ReportDPS(), 278CombatTracker_UpdateText(), 277–278CombatTrackerFrame, 270–273CombatTracker.luaadding functions, 275–278adding script h<strong>and</strong>lers, 273–274creating, 270CombatTracker.xml, 270–271comm<strong>and</strong> tables, slash comm<strong>and</strong>s, 345–347comm<strong>and</strong>srunning Lua, 18Subversion, 1341–1343commas, in table constructors, 56commentsencouraging users to use localization, 136using consistent programming style, 1310commit comm<strong>and</strong>, Subversion, 1342commits, 1340, 1344community websites, 1349–1351companion functions, 1047comparison functions, 88–89comparison operators, 26–27ComplainChat, 620ComplainInboxItem, 620complaint functions, 1047CompleteQuest, 620complex expressions, 44components, XML, 112–113__concat metamethod, 72concatenation (...) operator, 28conditionalschecking expected, 1319–1320complex expressions, 44extended, 44–45shortcut evaluation optimizing, 1320–1322simple, 43–44in triggered changes, 490–496verifying arguments to functions, 45–46ConfirmAcceptQuest, 621ConfirmBinder, 621ConfirmBindOnUse, 621ConfirmLootRoll, 621ConfirmLootSlot, 621ConfirmReadyCheck, 621ConfirmSummon, 621–622ConfirmTalentWipe, 622/console reloadui, 279ConsoleAddMessage, 622ConsoleExec, 622constants, named, 1307–1308container API, 193container functions, 1047–1048containerID, API meta-type, 546ContainerIDToInventoryID, 622ContainerRefundItemPurchase, 622–623containerSlotID, API meta-type, 546content, tooltip, 453contextual tooltips, 452control structuresif statement, 43–46role in secure environment, 476–477<strong>for</strong> statement, 48–51while statement, 46–48ControlPoint, 1250–1251ConvertToRaid, 623Cooldown type, 1175–1176CopyFontObject(), Font, 1221–1222Corel Paint Shop Pro. See Paint Shop Procounters, improving, 67CREATE, combat events, 393CreateAnimation(), AnimationGroup,1238–1239CreateAnimationGroup(), Region, 1124CreateControlPoint(), Path, 1249CreateFont, 623CreateFontString(), 166, 1146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!