this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
GuildAdsConfig_SetUseThisChannel(true);
else
PlaySound("igMainMenuOptionCheckBoxOn");
GuildAdsConfig_SetUseThisChannel(false);
end
if ( this:GetChecked() ) then
GuildAdsConfig_SetProfileValue("ShowNewAsk", true);
PlaySound("igMainMenuOptionCheckBoxOn");
else
GuildAdsConfig_SetProfileValue("ShowNewAsk", nil);
PlaySound("igMainMenuOptionCheckBoxOff");
end
if ( this:GetChecked() ) then
GuildAdsConfig_SetProfileValue("ShowNewHave", true);
PlaySound("igMainMenuOptionCheckBoxOn");
else
GuildAdsConfig_SetProfileValue("ShowNewHave", nil);
PlaySound("igMainMenuOptionCheckBoxOff");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildAds_SetPublishMyAds(this:GetChecked());
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildAds_ShowOfflinePlayer(this:GetChecked());
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildAds_ShowMyAds(this:GetChecked());
getglobal(this:GetName().."Text"):SetText(GUILDADS_ICON.." - "..GUILDADS_ADJUST_ANGLE);
getglobal(this:GetName().."High"):SetText("360");
getglobal(this:GetName().."Low"):SetText("0");
this:SetMinMaxValues(0,360);
this:SetValueStep(1);
GuildAds.Config.MinimapArcOffset = this:GetValue();
GuildAdsMinimapButton_Update();
getglobal(this:GetName().."Text"):SetText(GUILDADS_ICON.." - "..GUILDADS_ADJUST_RADIUS);
getglobal(this:GetName().."High"):SetText("150");
getglobal(this:GetName().."Low"):SetText("0");
this:SetMinMaxValues(0,150);
this:SetValueStep(1);
GuildAds.Config.MinimapRadiusOffset = this:GetValue();
GuildAdsMinimapButton_Update();
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
this:StartMoving();
this.isMoving = true;
end
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
GuildAdsConfigFrame_OnHide();
GuildAdsConfigFrame_OnShow();