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.

1174 Part IV ■ <strong>Reference</strong>SetColorRGBSets the color picker’s selected color by red, green <strong>and</strong> blue components.ColorSelect:SetColorRGB(red, blue, green)Arguments:red—Red component <strong>of</strong> the color (0.0 - 1.0) (number)blue—Blue component <strong>of</strong> the color (0.0 - 1.0) (number)green—Green component <strong>of</strong> the color (0.0 - 1.0) (number)SetColorValueTextureSets the Texture object used to display the color picker’s value slider.ColorSelect:SetColorValueTexture(texture)The color picker’s value slider displays a value gradient (<strong>and</strong> allows control<strong>of</strong> the color’s value component) <strong>for</strong> whichever hue <strong>and</strong> saturation is selected inthe color wheel. In the default UI’s ColorPickerFrame, this part is found to theright <strong>of</strong> the color wheel.This method does not allow changing the texture image displayed <strong>for</strong> theslider background; rather, it allows customization <strong>of</strong> the size <strong>and</strong> placement <strong>of</strong>the Texture object into which the game engine draws the color value gradient.Arguments:texture—<strong>Reference</strong> to a Texture object (texture)SetColorValueThumbTextureSets the texture <strong>for</strong> the color picker’s value slider thumb.ColorSelect:SetColorValueThumbTexture(texture) or iColorSelect:SetColorValueThumbTexture(“filename“)The color picker’s value slider displays a value gradient (<strong>and</strong> allows control <strong>of</strong>the color’s value component) <strong>for</strong> whichever hue <strong>and</strong> saturation is selected inthe color wheel. (In the default UI’s ColorPickerFrame, this part is found to theright <strong>of</strong> the color wheel.) The thumb texture is the movable part indicating thecurrent value selection.Arguments:texture—<strong>Reference</strong> to an existing Texture object (texture)filename—Path to a texture image file (string)SetColorWheelTextureSets the Texture object used to display the color picker’s hue/saturationwheel.ColorSelect:SetColorWheelTexture(texture)This method does not allow changing the texture image displayed <strong>for</strong> the colorwheel; rather, it allows customization <strong>of</strong> the size <strong>and</strong> placement <strong>of</strong> the Textureobject into which the game engine draws the st<strong>and</strong>ard color wheel image.

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

Saved successfully!

Ooh no, something went wrong!