HideUIPanel(self:GetParent()); if ( ColorPickerFrame.cancelFunc ) then ColorPickerFrame.cancelFunc(ColorPickerFrame.previousValues); end PlaySound("igMainMenuOptionCheckBoxOn");
HideUIPanel(self:GetParent()); ColorPickerFrame.func(); if ( ColorPickerFrame.opacityFunc ) then ColorPickerFrame.opacityFunc(); end PlaySound("igMainMenuOptionCheckBoxOn");
if ( ColorPickerFrame.opacityFunc ) then ColorPickerFrame.opacityFunc(); end
if ( self.hasOpacity ) then OpacitySliderFrame:Show(); OpacitySliderFrame:SetValue(self.opacity); self:SetWidth(365); else OpacitySliderFrame:Hide(); self:SetWidth(305); end
ColorSwatch:SetTexture(r, g, b); if ( self.func ) then self.func(); end
if ( GetBindingFromClick(key) == "TOGGLEGAMEMENU" ) then HideUIPanel(self); if ( ColorPickerFrame.cancelFunc ) then ColorPickerFrame.cancelFunc(ColorPickerFrame.previousValues); end end
if ( OpacityFrame.opacityFunc ) then OpacityFrame.opacityFunc(); end
self:SetFrameLevel(self:GetFrameLevel()-1); self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
OpacityFrame:Hide(); if ( OpacityFrame.saveOpacityFunc ) then OpacityFrame.saveOpacityFunc(); end
OpacityFrameCloseButton:Show();
OpacityFrameCloseButton:Hide();