self.type = CONTROLTYPE_CHECKBOX;
self.label = "cheeseDisplaySpellActivationOverlays";
function self:GetValue()
return _G[self.label] or "1";
end
self.uvar = self.label;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_SLIDER;
self.label = "cheeseSpellActivationOverlayOpacity";
function self:GetCurrentValue()
return _G[self.label] or 1.0;
end
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
value = math.floor(value * 100 + 0.5) / 100;
self:SetDisplayValue(value);
CheeseSpellActivationOverlayFrame:SetAlpha(value);
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(_G[self:GetParent():GetName().."ShowSpellAlerts"], self);
value = math.floor(value * 100 + 0.5) / 100;
self.value = value;
self:SetValue(value);
_G[self.label] = value;
self.name = CHEESE_LABEL;
self.options = CheesePanelOptions;
InterfaceOptionsPanel_OnLoad(self);