Skip to content

Commit

Permalink
TWW Updates #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkthnx committed Aug 17, 2024
1 parent 54738ac commit 0264c3f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion KkthnxUI/Libraries/Unfit-1.0/Unfit-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ end

function Lib:IsItemUnusable(item)
if item then
local slot, _, _, class, subclass = select(9, GetItemInfo(item))
local slot, _, _, class, subclass = select(9, C_Item.GetItemInfo(item))
return Lib:IsClassUnusable(class, subclass, slot)
end
end
Expand Down
8 changes: 4 additions & 4 deletions KkthnxUI/Modules/Auras/Elements/Reminder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ local pairs = pairs
local table_insert = table.insert

local CreateFrame = CreateFrame
local GetItemCooldown = GetItemCooldown
local GetItemCount = GetItemCount
local GetItemIcon = GetItemIcon
local GetItemCooldown = C_Item.GetItemCooldown
local GetItemCount = C_Item.GetItemCount
local GetItemIcon = C_Item.GetItemIconByID
local GetNumGroupMembers = GetNumGroupMembers
local GetSpecialization = GetSpecialization
local GetSpellTexture = GetSpellTexture
local GetWeaponEnchantInfo = GetWeaponEnchantInfo
local GetZonePVPInfo = GetZonePVPInfo
local GetZonePVPInfo = C_PvP.GetZonePVPInfo
local InCombatLockdown = InCombatLockdown
local IsEquippedItem = IsEquippedItem
local IsInInstance = IsInInstance
Expand Down
3 changes: 3 additions & 0 deletions KkthnxUI/Modules/Blizzard/Elements/UIWidgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function Module:CreateUIWidgets()
if parent ~= frame2 then
self:ClearAllPoints()
self:SetPoint("CENTER", frame2)
if self:GetScale() ~= 0.8 then
self:SetScale(0.8)
end
end
end)
end
2 changes: 1 addition & 1 deletion KkthnxUI/Modules/DataText/Elements/Location.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ local function OnEvent()

zone = GetZoneText()
subZone = GetSubZoneText()
pvpType = GetZonePVPInfo()
pvpType = C_PvP.GetZonePVPInfo()
pvpType = pvpType or "neutral"

local r, g, b = unpack(zoneInfo[pvpType][2])
Expand Down
3 changes: 1 addition & 2 deletions KkthnxUI/Modules/Miscellaneous/Elements/MovableFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ local frames = {
["OpenMailFrame"] = false,
["PaperDollFrame"] = true,
["PetitionFrame"] = false,
["PetStableFrame"] = false,
["PVEFrame"] = false,
["QuestFrame"] = false,
["RaidParentFrame"] = false,
["ReputationFrame"] = true,
["SendMailFrame"] = true,
["SpellBookFrame"] = false,
["SplashFrame"] = false,
["StackSplitFrame"] = false,
["TabardFrame"] = false,
Expand Down Expand Up @@ -96,6 +94,7 @@ local lodFrames = {
Blizzard_OrderHallUI = { ["OrderHallTalentFrame"] = false },
Blizzard_ScrappingMachineUI = { ["ScrappingMachineFrame"] = false },
Blizzard_Professions = { ["InspectRecipeFrame"] = false, ["ProfessionsFrame"] = false },
Blizzard_ProfessionsBook = { ["ProfessionsBookFrame"] = false },
Blizzard_ProfessionsCustomerOrders = { ["ProfessionsCustomerOrdersFrame"] = false },
Blizzard_TalentUI = { ["PlayerTalentFrame"] = false, ["PVPTalentPrestigeLevelDialog"] = false },
Blizzard_TimeManager = { ["TimeManagerFrame"] = false },
Expand Down
9 changes: 8 additions & 1 deletion KkthnxUI/Modules/Tooltip/Elements/ID.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,17 @@ function Module:CreateTooltipID()
return
end

local _, _, _, _, _, _, caster, _, _, id = UnitAura(...)
local auraData = C_UnitAuras.GetAuraDataByIndex(...)
if not auraData then
return
end

local caster = auraData.sourceUnit
local id = auraData.spellId
if id then
Module.AddLineForID(self, id, types.spell)
end

if caster then
local name = GetUnitName(caster, true)
local hexColor = K.RGBToHex(K.UnitColor(caster))
Expand Down

0 comments on commit 0264c3f

Please sign in to comment.