failcoder / SVUI-Temp

Temporary Repository for SuperVillain UI fixes until Munglunch/failcoder returns from absence.
MIT License
6 stars 3 forks source link

Hearthstone Disappearing *FIX* #93

Open joeymagz opened 7 years ago

joeymagz commented 7 years ago

File: SVUI_!Core\system_docklets\misc.lua Lines 79-80 - replace with

local HEARTH_SPELLS = {556,50977,18960,126892,193753,222695}; local HEARTH_ITEMS = {6948,110560,64488,54452,93672,28585,128353,140192};

Search for "Hearth_OnEnter", replace entire function with

local Hearth_OnEnter = function(self) GameTooltip:AddLine(HELPFRAME_STUCK_HEARTHSTONE_HEADER, 1, 1, 0) GameTooltip:AddLine(" ", 1, 1, 1) local location = GetBindLocation() GameTooltip:AddDoubleLine(L["Hearth Location:"], location, 1, 0.5, 0, 1, 1, 1) if InCombatLockdown() then return end local remaining1 = GetMacroCooldown(SV.db.Dock.hearthOptions.left); local remaining2 = GetMacroCooldown(SV.db.Dock.hearthOptions.right); local text1 = self:GetAttribute("tipText") local text2 = self:GetAttribute("tipExtraText") GameTooltip:AddLine(" ", 1, 1, 1) GameTooltip:AddDoubleLine("[Left-Click]", text1, 0, 1, 0, 1, 1, 1) GameTooltip:AddDoubleLine(L["Time Remaining:"], remaining1, 1, 0.5, 0, 1, 1, 1) if(text2 and text2 ~= "") then GameTooltip:AddLine(" ", 1, 1, 1) GameTooltip:AddDoubleLine("[Right-Click]", text2, 0, 1, 0, 1, 1, 1) GameTooltip:AddDoubleLine(L["Time Remaining:"], remaining2, 1, 0.5, 0, 1, 1, 1) end GameTooltip:AddLine(" ", 1, 1, 1) GameTooltip:AddDoubleLine("|cff0099FFSHIFT|r + Left-Click", "Left Click Options", 0, 1, 0, 0.5, 1, 0.5) GameTooltip:AddDoubleLine("|cff0099FFSHIFT|r + Right-Click", "Right Click Options", 0, 1, 0, 0.5, 1, 0.5) end

Search for "HEARTH_HEADER" and replace that with

--Vanilla Hearth if(IsSpellKnown(6948)) then HEARTH_HEADER = GetHearthOption(6948); return; --Dalaran Hearth elseif (IsSpellKnown(140192)) then HEARTH_HEADER = GetHearthOption(140192); return; --Garrison Hearth elseif (IsSpellKnown(110560)) then HEARTH_HEADER = GetHearthOption(110560); return; end