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.

Chapter 29 ■ Widget <strong>Reference</strong> 1147Returns:texture—<strong>Reference</strong> to the new Texture object (texture)CreateTitleRegionCreates a title region <strong>for</strong> dragging the frame.region = Frame:CreateTitleRegion()<strong>Creating</strong> a title region allows a frame to be repositioned by the user (byclicking <strong>and</strong> dragging in the region) without requiring additional scripts. (Thisbehavior only applies if the frame is mouse enabled.)Returns:region—<strong>Reference</strong> to the new Region object (region)DisableDrawLayerPrevents display <strong>of</strong> all child objects <strong>of</strong> the frame on a specified graphicslayer.Frame:DisableDrawLayer(“layer“)Arguments:layer—Name <strong>of</strong> a graphics layer (string, layer)EnableDrawLayerAllows display <strong>of</strong> all child objects <strong>of</strong> the frame on a specified graphics layer.Frame:EnableDrawLayer(“layer“)Arguments:layer—Name <strong>of</strong> a graphics layer (string, layer)EnableJoystickEnables or disables joystick interactivity.Frame:EnableJoystick(enable)Joystick interactivity must be enabled in order <strong>for</strong> a frame’s joystickrelatedscript h<strong>and</strong>lers to be run.(As <strong>of</strong> this writing, joystick support is partially implemented but not enabledin the current version <strong>of</strong> <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>.)Arguments:enable—True to enable joystick interactivity; false to disable (boolean)EnableKeyboardEnables or disables keyboard interactivity <strong>for</strong> the frame.Frame:EnableKeyboard(enable)Keyboard interactivity must be enabled in order <strong>for</strong> a frame’s OnKeyDown,OnKeyUp,orOnChar scripts to be run.Arguments:enable—True to enable keyboard interactivity; false to disable(boolean)

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

Saved successfully!

Ooh no, something went wrong!