Mercurial > wow > buffalo2
comparison Modules/FriendsFrame.lua @ 116:ddfe19d70a34
ArtifactPower:
- Further 7.2 accommodations, relating to tokens that grant millions of AP.
Currency:
- Ancient Mana zones list expanded
- Legionfall War Supplies, Nethershards, and Blood of Sargeras are tracked globally
PaperDoll:
- Should update more effectively when delayed artifact data loads in.
WorldState:
- Fixed hanging panels after OrderHallCommandBar is hidden.
| author | Nenue |
|---|---|
| date | Wed, 26 Apr 2017 20:06:38 -0400 |
| parents | 8c94bee4fdfc |
| children | 1f68c46bc4de |
comparison
equal
deleted
inserted
replaced
| 115:8c94bee4fdfc | 116:ddfe19d70a34 |
|---|---|
| 2 -- FriendsFrame.lua | 2 -- FriendsFrame.lua |
| 3 -- Created: 10/27/2016 8:50 PM | 3 -- Created: 10/27/2016 8:50 PM |
| 4 -- %file-revision% | 4 -- %file-revision% |
| 5 -- | 5 -- |
| 6 | 6 |
| 7 VeneerLFGMixin = {} | |
| 8 local Module = VeneerLFGMixin | |
| 9 local _, db = ... | |
| 10 local print = DEVIAN_WORKSPACE and function(...) print('VnTweaks', ...) end or nop | |
| 11 | |
| 12 print('tweaks') | |
| 13 | |
| 14 local currentMerchButton | |
| 15 local positionsDirty | |
| 16 local FormatPopup = function(index) | |
| 17 local popupName = 'StaticPopup'..index | |
| 18 | |
| 19 local frame = _G[popupName] | |
| 20 frame:SetBackdrop(nil) | |
| 21 frame.Backdrop = frame:CreateTexture('BACKGROUND') | |
| 22 frame.Backdrop:SetAllPoints(frame) | |
| 23 frame.Backdrop:SetColorTexture(0,0,0,.7) | |
| 24 frame:EnableMouse(false) | |
| 25 | |
| 26 local edit = _G[popupName .. 'EditBox'] | |
| 27 edit.Backdrop = edit:CreateTexture('BACKGROUND') | |
| 28 edit.Backdrop:SetAllPoints(edit) | |
| 29 edit.Backdrop:SetColorTexture(0,0,0,1) | |
| 30 | |
| 31 local editLeft = _G[popupName .. 'EditBoxLeft'] | |
| 32 editLeft:Hide() | |
| 33 local editRight = _G[popupName .. 'EditBoxRight'] | |
| 34 editRight:Hide() | |
| 35 | |
| 36 for i = 1, 3 do | |
| 37 local button = frame['button'..i] | |
| 38 button:GetNormalTexture():SetColorTexture(0.25,.25,.25,1) | |
| 39 button:GetPushedTexture():SetColorTexture(0,.4,1,1) | |
| 40 button:GetDisabledTexture():SetColorTexture(0.25,.25,.25,1) | |
| 41 button:GetHighlightTexture():SetColorTexture(.25, 0,1,1) | |
| 42 end | |
| 43 | |
| 44 end | |
| 45 | |
| 46 for i = 1, STATICPOPUP_NUMDIALOGS do | |
| 47 print('setup', i) | |
| 48 FormatPopup(i) | |
| 49 end | |
| 50 | |
| 51 hooksecurefunc('StaticPopup_Show', function(which, text_arg1, text_arg2, data, insertedFrame) | |
| 52 print(which, text_arg1, text_arg2, data) | |
| 53 | |
| 54 | |
| 55 if which == 'CONFIRM_PURCHASE_TOKEN_ITEM' then | |
| 56 local i = data.index | |
| 57 while i > 10 do | |
| 58 i = i - 10 | |
| 59 end | |
| 60 print(i) | |
| 61 | |
| 62 | |
| 63 currentMerchButton = _G['MerchantItem' .. i] | |
| 64 StaticPopup1:ClearAllPoints() | |
| 65 StaticPopup1:SetPoint('TOPLEFT', currentMerchButton, 'TOPRIGHT', 2, 0) | |
| 66 print(StaticPopup1:GetSize()) | |
| 67 positionsDirty = true | |
| 68 else | |
| 69 if positionsDirty then | |
| 70 StaticPopup1:ClearAllPoints() | |
| 71 StaticPopup1:SetPoint('TOP', UIParent, 'TOP', 0, -135) | |
| 72 end | |
| 73 end | |
| 74 | |
| 75 StaticPopup1EditBox:SetWidth(StaticPopup1:GetWidth()) | |
| 76 | |
| 77 | |
| 78 | |
| 79 end) |
