Mercurial > wow > reaction
changeset 152:6d7ef2a3f828
Added border to bag frames for keybind mode (except keyring???)
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 08 May 2009 01:16:08 +0000 |
parents | 57568d3ff3e6 |
children | d5e11e924053 |
files | classes/BagButton.lua |
diffstat | 1 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/classes/BagButton.lua Fri May 08 00:35:14 2009 +0000 +++ b/classes/BagButton.lua Fri May 08 01:16:08 2009 +0000 @@ -70,7 +70,7 @@ if not f.hotkey then local h = f:CreateFontString(name.."HotKey","ARTWORK","NumberFontNormalSmallGray") - h:SetWidth(36) + h:SetWidth(30) h:SetHeight(10) h:SetJustifyH("RIGHT") h:SetPoint("TOPLEFT",f,"TOPLEFT",-2,-2) @@ -84,9 +84,21 @@ anim:Hide() end + if not f.border then + local b = f:CreateTexture(name.."Border","OVERLAY") + b:SetAllPoints() + b:SetWidth(f:GetWidth()*(62/36)) + b:SetHeight(f:GetHeight()*(62/36)) + b:SetTexture("Interface\\Buttons\UI-ActionButton-Border") + b:SetBlendMode("ADD") + b:Hide() + f.border = b + end + self.frames.count:SetDrawLayer("ARTWORK") self.frames.hotkey = f.hotkey + self.frames.border = _G[name.."Border"] self.frames.icon = _G[name.."IconTexture"] self.frames.anim = _G[name.."ItemAnim"] @@ -365,10 +377,8 @@ f:SetHeight(39) local tex = f:GetNormalTexture() - tex:SetWidth(18) - tex:SetHeight(39) tex:ClearAllPoints() - tex:SetPoint("CENTER") + tex:SetAllPoints() f:SetNormalTexture("Interface\\Buttons\\UI-Button-KeyRing") f:SetHighlightTexture("Interface\\Buttons\\UI-Button-KeyRing-Highlight")