From d438d97e13f974cfef37a67b190a78ffde5fdfa0 Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 5 Apr 2010 05:22:34 +0000 Subject: [PATCH] - fixed the player's clickable area when using the ArcHUD texture to be on the outside edge of the bar instead of the inside --- modules/PlayerHealth.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index eb04dd6..bb516a9 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -725,6 +725,14 @@ function PlayerHealth.prototype:CreateBackground(redraw) if self:GetMyBarTexture() == "HiBar" then self.frame.button:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT", 0, 0) self.frame.button:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMRIGHT", -1 * self.frame:GetWidth(), 0) + elseif self:GetMyBarTexture() == "ArcHUD" then + if self.moduleSettings.side == IceCore.Side.Left then + self.frame.button:SetPoint("TOPLEFT", self.frame, "TOPLEFT") + self.frame.button:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMLEFT", self.frame:GetWidth() / 3, 0) + else + self.frame.button:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT") + self.frame.button:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMRIGHT", -1 * self.frame:GetWidth() / 3, 0) + end else if self.moduleSettings.side == IceCore.Side.Left then self.frame.button:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT", -6, 0)