GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); GameTooltip:SetText(this:GetValue()); NecrosisConfig.NecrosisAngle = this:GetValue(); local x, y = NecrosisButton:GetCenter(); GameTooltip:SetText(this:GetValue()); Necrosis_UpdateButtonsScale(); GameTooltip:Hide(); NBx, NBy = NecrosisButton:GetCenter(); NBx = NBx * (NecrosisConfig.NecrosisButtonScale / 100); NBy = NBy * (NecrosisConfig.NecrosisButtonScale / 100); GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); GameTooltip:SetText(this:GetValue().." %"); if this:GetValue() ~= NecrosisConfig.NecrosisButtonScale then NecrosisButton:ClearAllPoints(); GameTooltip:SetText(this:GetValue().." %"); NecrosisConfig.NecrosisButtonScale = this:GetValue(); NecrosisButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", NBx / (NecrosisConfig.NecrosisButtonScale / 100), NBy / (NecrosisConfig.NecrosisButtonScale / 100)); NecrosisButton:SetScale(NecrosisConfig.NecrosisButtonScale / 100); Necrosis_UpdateButtonsScale(); end GameTooltip:Hide(); STx, STy = NecrosisShadowTranceButton:GetCenter(); STx = STx * (NecrosisConfig.ShadowTranceScale / 100); STy = STy * (NecrosisConfig.ShadowTranceScale / 100); AFx, AFy = NecrosisAntiFearButton:GetCenter(); AFx = AFx * (NecrosisConfig.ShadowTranceScale / 100); AFy = AFy * (NecrosisConfig.ShadowTranceScale / 100); ShowUIPanel(NecrosisShadowTranceButton); ShowUIPanel(NecrosisAntiFearButton); GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); GameTooltip:SetText(this:GetValue().."%"); if this:GetValue() ~= NecrosisConfig.ShadowTranceScale then GameTooltip:SetText(this:GetValue().."%"); NecrosisConfig.ShadowTranceScale = this:GetValue(); NecrosisShadowTranceButton:ClearAllPoints(); NecrosisShadowTranceButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", STx / (NecrosisConfig.ShadowTranceScale / 100), STy / (NecrosisConfig.ShadowTranceScale / 100)); NecrosisShadowTranceButton:SetScale(NecrosisConfig.ShadowTranceScale / 100); NecrosisAntiFearButton:ClearAllPoints(); NecrosisAntiFearButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", AFx / (NecrosisConfig.ShadowTranceScale / 100), AFy / (NecrosisConfig.ShadowTranceScale / 100)); NecrosisAntiFearButton:SetScale(NecrosisConfig.ShadowTranceScale / 100); end if not NecrosisShowTrance_Button:GetChecked() then HideUIPanel(NecrosisShadowTranceButton); HideUIPanel(NecrosisAntiFearButton); end GameTooltip:Hide(); if (this:GetChecked()) then ShowUIPanel(NecrosisShadowTranceButton); ShowUIPanel(NecrosisAntiFearButton); NecrosisShadowTranceButton:RegisterForDrag("LeftButton") NecrosisAntiFearButton:RegisterForDrag("LeftButton") else HideUIPanel(NecrosisShadowTranceButton); HideUIPanel(NecrosisAntiFearButton); NecrosisShadowTranceButton:RegisterForDrag(""); NecrosisAntiFearButton:RegisterForDrag(""); end if (this:GetChecked()) then NecrosisConfig.NecrosisLockServ = true; Necrosis_ClearAllPoints(); Necrosis_UpdateButtonsScale(); Necrosis_NoDrag(); if not NecrosisConfig.NoDragAll then NecrosisButton:RegisterForDrag("LeftButton"); NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); end else NecrosisConfig.NecrosisLockServ = false; Necrosis_ClearAllPoints(); NecrosisFirestoneButton:SetPoint("CENTER", "UIParent", "CENTER", -121,-100); NecrosisSpellstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -87,-100); NecrosisHealthstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -53,-100); NecrosisSoulstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -17,-100); NecrosisBuffMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 17,-100); NecrosisMountButton:SetPoint("CENTER", "UIParent", "CENTER", 53,-100); NecrosisPetMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 87,-100); NecrosisCurseMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 121,-100); Necrosis_Drag(); NecrosisConfig.NoDragAll = false; NecrosisLock_Button:SetChecked(false); NecrosisButton:RegisterForDrag("LeftButton"); NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); end if (this:GetChecked()) then Necrosis_NoDrag(); NecrosisButton:RegisterForDrag(""); NecrosisSpellTimerButton:RegisterForDrag(""); NecrosisConfig.NoDragAll = true; else if not NecrosisConfig.NecrosisLockServ then Necrosis_Drag(); end NecrosisButton:RegisterForDrag("LeftButton"); NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); NecrosisConfig.NoDragAll = false; end if (this:GetChecked()) then NecrosisConfig.BuffMenuPos = -34; else NecrosisConfig.BuffMenuPos = 34; end Necrosis_CreateMenu(); if (this:GetChecked()) then NecrosisConfig.PetMenuPos = -34; else NecrosisConfig.PetMenuPos = 34; end Necrosis_CreateMenu(); if (this:GetChecked()) then NecrosisConfig.CurseMenuPos = -34; else NecrosisConfig.CurseMenuPos = 34; end Necrosis_CreateMenu(); HideUIPanel(NecrosisGraphOptionMenu);