Skip to content

GetColor

StormFX edited this page Dec 13, 2022 · 1 revision

Contents

The GetColor method of the Group API returns a set of color values assigned to the specified region.

Example

local r, g, b, a = MSQ_Group:GetColor("Highlight")
Notes

  • The values returned from this method may not be the same as those currently assigned to the specified region.
  • This method first attempts to return the color values assigned to calling group. If those aren't available, it then attempts to pull them from the calling group's skin. If neither the group nor the skin have colors assigned to the specified region, the values 1, 1, 1, 1 are returned.

Signature

r, g, b, a = {Group}:GetColor("Layer")

Parameters

Parameter Type Required Description
Layer string Yes The name of the region to return colors for.

Returns

Return Type Description
r number The red color value assigned to the region.
g number The green color value assigned to the region.
b number The blue color value assigned to the region.
a number The alpha value assigned to the region.

Wiki
  • Home

Project
  • Contributors
  • History

Reference
  ⚬ Masque API
  ⚬ Group API
     • AddButton()
     • Delete()
     • GetColor()
     • GetLayer()
     • GetOptions()
     • RegisterCallback()
     • RemoveButton()
     • ReSkin()
     • SetCallback()
     • SetName()
  ⚬ Regions

Skins
  • Skin List

Mirrors
  • CurseForge
  • Wago.io
  • Wow Interface

Clone this wiki locally