Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Sets the texture to be desaturated.

TextureBase:SetDesaturated([desaturated])

Arguments[]

desaturated
boolean? = false - True to make the image grayscale, false for the original colors.

Example[]

Turns the icon grayscale.

local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")

tex:SetDesaturated(true)

Patch changes[]

Warlords of Draenor Patch 6.0.2 (2014-10-14): 1/(nil/0) changed to true/false all over the API.

Advertisement