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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

744 Part IV ■ <strong>Reference</strong>ChatFrame1:AddMessage(“There is no mouse enabled frame under ithe cursor“)elselocal name = frame:GetName() or tostring(frame)ChatFrame1:AddMessage(name .. “ has the mouse focus“)endGetMovieResolutionReturns the horizontal resolution available <strong>for</strong> displaying movie content.resolution = GetMovieResolution()Returns:resolution—Horizontal resolution (in pixels) available <strong>for</strong> displaying moviecontent (number)GetMultisampleFormatsReturns a list <strong>of</strong> available multisample settings.color, depth, multisample, ... = GetMultisampleFormats()Used in the default UI to provide descriptions <strong>of</strong> multisample settings(e.g. ‘‘24-bit color 24-bit depth 6x multisample’’).Indices used by GetCurrentMultisampleFormat() <strong>and</strong>SetMultisampleFormat() refer to the groups <strong>of</strong> color, depth <strong>and</strong>multisample values returned by this function; e.g. index 1 refers to values 1through 3, index 2 to values 4 through 6, etc.Returns:color—Color depth (in bits) (number)depth—Video depth (in bits) (number)multisample—Number <strong>of</strong> samples per pixel (number)...—Additional sets <strong>of</strong> color, depth <strong>and</strong> multisample values, one <strong>for</strong> eachmultisample setting (list)Example:local index = GetCurrentMultisampleFormat()local <strong>for</strong>matsIndex = (index - 1) * 3 + 1local color, depth, samples = select(<strong>for</strong>matsIndex, iGetMultisampleFormats())print(<strong>for</strong>mat(“%d-bit color %d-bit depth %dx multisample“, color, idepth, samples))GetMuteNameReturns the name <strong>of</strong> a character on the mute list.name = GetMuteName(index)Arguments:index—Index <strong>of</strong> an entry in the mute listing (between 1 <strong>and</strong> GetNumMutes())(number)Returns:name—Name <strong>of</strong> the muted character (string)

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

Saved successfully!

Ooh no, something went wrong!