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> 1169Arguments:<strong>for</strong>matString—A string containing <strong>for</strong>mat specifiers (as withstring.<strong>for</strong>mat()) (string)...—A list <strong>of</strong> values to be included in the <strong>for</strong>matted string (list)SetHighlightFontObjectSets the font object used when the button is highlighted.Button:SetHighlightFontObject(font)Arguments:font—<strong>Reference</strong> to a Font object to be used when the button is highlighted(font)SetHighlightTextureSets the texture used when the button is highlighted.Button:SetHighlightTexture(texture [, “mode“]) or iButton:SetHighlightTexture(“filename“ [, “mode“])Unlike the other button textures <strong>for</strong> which only one is visible at a time, thebutton’s highlight texture is drawn on top <strong>of</strong> its existing (normal or pushed)texture; thus, this method also allows specification <strong>of</strong> the texture’s blendmode.Arguments:texture—<strong>Reference</strong> to an existing Texture object (texture)filename—Path to a texture image file (string)mode (optional)—Blend mode <strong>for</strong> the texture; defaults to ADD if omitted(string)ADD - Adds texture color values to the underlying color values, using thealpha channel; light areas in the texture lighten the background while darkareas are more transparentALPHAKEY - One-bit transparency; pixels with alpha values greater than ∼0.8are treated as fully opaque <strong>and</strong> all other pixels are treated as fully transparentBLEND - Normal color blending, using any alpha channel in the textureimageDISABLE - Ignores any alpha channel, displaying the texture as fully opaqueMOD - Ignores any alpha channel in the texture <strong>and</strong> multipliestexture color values by background color values; dark areas in thetexture darken the background while light areas are more transparentSetNormalFontObjectSets the font object used <strong>for</strong> the button’s normal state.Button:SetNormalFontObject(font)Arguments:font—<strong>Reference</strong> to a Font object to be used in the button’s normal state(font)

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

Saved successfully!

Ooh no, something went wrong!