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 ■ D–E 1367dropdown frames, 433dropdown menusadding functionality, 437adding toggle button, 432–433automating creation <strong>of</strong>, 445–447CheckButton menu items, 440–441ColorPicker menu items, 441–443creating, 431–432creating dropdown frame, 433creating dynamic menus, 447–448creating multilevel, 436–437customizing text elements, 438–439function menu items, 440initializing dropdown, 433–434overview <strong>of</strong>, 431<strong>for</strong> selection, 443–445summary, 449testing, 435–436toggling, 434–435DropDownTest addon, 435DropItemOnUnit, 630–631DTD (Document Type Definition), XMLdocument validation, 81duel functions, 1052DURABILITY_DAMAGE, 394DURABILITY_DAMAGE_ALL, 394dynamic menus, 447–448EEasyMenu, 445–447EditBoxcreating, 225–226reference guide, 1231–1238as widget type, 229EditMacro, 631EjectPassengerFromSeat, 631elementsadding array, 58–60creating from tables, 54–55removing array, 60–61sorting array, 61XML, 79Elitist Jerks, 1350embedded addon libraries, 1332–1334embedded libraries, 1330Enable(), Button, 1165Enable(), Slider, 1216EnableAddOn, 631EnableAllAddOns, 631–632EnableBoundTradeable, 632EnableDrawLayer(), Frame, 1147EnableJoystick(), Frame, 1147EnableKeyboard(), Frame, 1147EnableMouse(), Frame, 1148enableMouse attribute, CombatTrackerFrame,271EnableMouseWheel(), Frame, 1148EnableSpellAutocast, 632EnableSubtitles(), MovieFrame, 1205ENCHANT_APPLIED, combat events, 396ENCHANT_REMOVED, combat events, 396end keyword, creating functions, 40end_value, <strong>for</strong> loops, 50EndRefund, 632ENERGIZE, combat events, 392entities, XML, 80EnumerateFrames, 632–633EnumerateServerChannels, 633environment, private global, 474–475ENVIRONMENTAL, combat events, 389equality operators, 27, 35EquipCursorItem, 633EquipItemByName, 633Equipment Manager, 355, 1052–1053EquipmentManager_UnpackLocation, 634–635EquipmentManagerClearIgnoredSlotsForSave,634EquipmentManagerIgnoreSlotsForSave, 634EquipmentManagerIsSlotIgnoredForSave, 634EquipmentManagerUnignoreSlotForSave, 634EquipmentSetContainsLockedItems, 635EquipPendingItem, 633–634error, Lua API, 1002error() function, 45–46, 1327error messages, 18–19, 133errorState flag, 343escapes, string, 30–32event <strong>and</strong> click responders, frameshealth update events, 513–514moving the header, 512–513name changes, 516overview <strong>of</strong>, 511power update events, 514–516targeting unit on left click, 511–512events, responding to, 243–255addons, 139–140combat. See combat eventsfinding right, 254–255, 268–269grouping multiple, 355–356grouping to avoid over-processing, 354–355health update, 513–514with OnEvent, 244–245overview <strong>of</strong>, 243–244power update, 514–516query, 246query events, 246registering <strong>for</strong>, 244storing data with SavedVariables, 251–253tracking changes to inventory <strong>for</strong> BagBuddy,246–251underst<strong>and</strong>ing, 243–244using frames, 139–140using items from BagBuddy, 253–254

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

Saved successfully!

Ooh no, something went wrong!