this.unit = "player";
this.debuff = 1;
this.UpdateMe = false;
Dcr_LiveListItem_OnUpdate();
Dcr_AfflictedListFrame_OnUpdate(arg1);
Dcr_DisplayTooltip(DCR_VERSION_STRING, this);
DcrDisplay_Tooltip:Hide();
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 (arg1 == "RightButton") then
Dcr_ShowHideButtons();
end
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
Dcr_DisplayTooltip(DCR_PRIORITY_LIST, this);
DcrDisplay_Tooltip:Hide();
this.Offset = 0;
this.UpdateYourself = true;
Dcr_PriorityListFrame_OnUpdate();
Dcr_DisplayTooltip(DCR_SKIP_LIST_STR, this);
DcrDisplay_Tooltip:Hide();
this.Offset = 0;
this.UpdateYourself = true;
Dcr_SkipListFrame_OnUpdate();
local _, faction = UnitFactionGroup("player");
if (faction == DCR_ALLIANCE_NAME) then
DecursivePopulateListFrameOther:SetText(DCR_LOC_CLASS_PALADIN);
DecursivePopulateListFrameOther.ClassType = DCR_CLASS_PALADIN;
else
DecursivePopulateListFrameOther:SetText(DCR_LOC_CLASS_SHAMAN);
DecursivePopulateListFrameOther.ClassType = DCR_CLASS_SHAMAN;
end
Dcr_AmountOfAfflictedSlider_OnValueChanged();
Dcr_AmountOfAfflictedSlider_OnShow();
Dcr_CureBlacklistSlider_OnValueChanged();
Dcr_CureBlacklistSlider_OnShow();
Dcr_ScanTimeSlider_OnValueChanged();
Dcr_ScanTimeSlider_OnShow();
Dcr_Saved.Print_ChatFrame = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_PRINT_CHATFRAME);
if (Dcr_Saved.Print_ChatFrame) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Print_CustomFrame = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_PRINT_CUSTOM);
if (Dcr_Saved.Print_CustomFrame) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Check_For_Abolish = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_ABOLISH_CHECK);
if (Dcr_Saved.Check_For_Abolish) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.DoNot_Blacklist_Prio_List = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_DONOT_BL_PRIO);
if (Dcr_Saved.DoNot_Blacklist_Prio_List) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.AlwaysUseBestSpell = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_BEST_SPELL);
if (Dcr_Saved.AlwaysUseBestSpell) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Random_Order = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_RANDOM_ORDER);
if (Dcr_Saved.Random_Order) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Scan_Pets = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_CURE_PETS);
if (Dcr_Saved.Scan_Pets) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Ingore_Stealthed = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_IGNORE_STEALTH);
if (Dcr_Saved.Ingore_Stealthed) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.PlaySound = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_PLAY_SOUND);
if (Dcr_Saved.PlaySound) then
this:SetChecked(1);
else
this:SetChecked(0);
end
Dcr_Saved.Print_Error = (this:GetChecked() == 1);
Dcr_ThisSetText(DCR_PRINT_ERRORS);
if (Dcr_Saved.Print_Error) then
this:SetChecked(1);
else
this:SetChecked(0);
end
this:SetOwner(this, "ANCHOR_NONE");
Dcr_OnLoad(this);
Dcr_OnEvent(event);
Dcr_OnUpdate(arg1);