Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible fixes for 10.1.7.51972 #171

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/modules/theme/blizzard/FrameXML/LFGFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ tinsert(C.BlizzThemes, function()
iconTexture:SetTexture(C.Assets.Textures.RoleLfgIcons)
local bg = F.CreateBDFrame(iconTexture)

hooksecurefunc('LFGDungeonReadyPopup_Update', function()
-- DEBUG: LFGDungeonReadyPopup_Update to LFGDungeonReadyPopup_OnUpdate
-- Don't know is this working
hooksecurefunc('LFGDungeonReadyPopup_OnUpdate', function()
print(_G.LFGDungeonReadyDialog)
_G.LFGDungeonReadyDialog:SetBackdrop(nil)
leaderFrame:SetShown(_G.LFGDungeonReadyDialogRoleIconLeaderIcon:IsShown())

Expand Down
4 changes: 3 additions & 1 deletion src/modules/theme/blizzard/FrameXML/LootFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ tinsert(C.BlizzThemes, function()
_G.BONUS_ROLL_CURRENT_COUNT = _G.BONUS_ROLL_CURRENT_COUNT:gsub(from, to)

-- Loot Roll Frame
hooksecurefunc('GroupLootFrame_OpenNewFrame', function()
-- DEBUG: change from GroupLootFrame_OpenNewFrame to GroupLootContainer_OpenNewFrame
-- Don't know is this working
hooksecurefunc('GroupLootContainer_OpenNewFrame', function()
for i = 1, _G.NUM_GROUP_LOOT_FRAMES do
local frame = _G['GroupLootFrame' .. i]
if not frame.styled then
Expand Down
20 changes: 13 additions & 7 deletions src/modules/theme/blizzard/FrameXML/MerchantFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ local function reskinMerchantItem(item)
end

local function reskinMerchantInteract(button)
-- CHANGES:
-- add button:GetRegions():Hide()
-- add F.ReskinIcon(button.Icon)
button:GetRegions():Hide()
F.ReskinIcon(button.Icon)
button:SetPushedTexture(0)
button:GetHighlightTexture():SetColorTexture(1, 1, 1, 0.25)
F.CreateBDFrame(button)
Expand Down Expand Up @@ -66,15 +71,16 @@ tinsert(C.BlizzThemes, function()
end

_G.MerchantBuyBackItem:SetHeight(44)
reskinMerchantItem(_G.MerchantBuyBackItem)

reskinMerchantInteract(_G.MerchantGuildBankRepairButton)
_G.MerchantGuildBankRepairButtonIcon:SetTexCoord(0.595, 0.8075, 0.05, 0.52)

reskinMerchantInteract(_G.MerchantRepairAllButton)
_G.MerchantRepairAllIcon:SetTexCoord(0.31375, 0.53, 0.06, 0.52)
-- CHANGES:
-- Add New Icons
-- Remove:SetTexCoord
reskinMerchantItem(_G.MerchantBuyBackItem)
reskinMerchantInteract(_G.MerchantGuildBankRepairButton)
reskinMerchantInteract(_G.MerchantRepairAllButton)
reskinMerchantInteract(_G.MerchantRepairItemButton)
reskinMerchantInteract(_G.MerchantSellAllJunkButton)

reskinMerchantInteract(_G.MerchantRepairItemButton)
local ic = _G.MerchantRepairItemButton:GetRegions()
ic:SetTexture('Interface\\Icons\\INV_Hammer_20')
ic:SetTexCoord(unpack(C.TEX_COORD))
Expand Down
4 changes: 3 additions & 1 deletion src/modules/theme/blizzard/FrameXML/ObjectiveTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ tinsert(C.BlizzThemes, function()
hooksecurefunc('Scenario_ChallengeMode_SetUpAffixes', F.AffixesSetup)

-- Rewards on bonus tracker
hooksecurefunc('BonusObjectiveTracker_AnimateReward', function(block)
-- DEBUG: BonusObjectiveTracker_AnimateReward to BonusObjectiveTracker_AddReward
-- Don't know is this working
hooksecurefunc('BonusObjectiveTracker_AddReward', function(block)
local rewardsFrame = block.module.rewardsFrame
local rewards = rewardsFrame.Rewards
for i = #rewards, 1, -1 do
Expand Down