mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
skin: move durability into skins
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
pfUI:RegisterModule("durability", function ()
|
|
||||||
|
|
||||||
pfUI.durability = CreateFrame("Frame","pfDurability",UIParent)
|
|
||||||
pfUI.durability:SetPoint("TOPLEFT", pfUI.minimap, "BOTTOMLEFT", 0, -35)
|
|
||||||
UpdateMovable(pfUI.durability)
|
|
||||||
pfUI.durability:SetWidth(80)
|
|
||||||
pfUI.durability:SetHeight(70)
|
|
||||||
pfUI.durability:SetFrameStrata("BACKGROUND")
|
|
||||||
|
|
||||||
pfUI.durability:SetScript("OnUpdate", function()
|
|
||||||
DurabilityFrame:SetParent(pfUI.durability)
|
|
||||||
DurabilityFrame:ClearAllPoints()
|
|
||||||
DurabilityFrame:SetPoint("CENTER", pfUI.durability)
|
|
||||||
DurabilityFrame:SetFrameLevel(1)
|
|
||||||
pfUI.durability:SetScript("OnUpdate", nil)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
@@ -16,6 +16,18 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
EnableMovable("ClassTrainerFrame", "Blizzard_TrainerUI")
|
EnableMovable("ClassTrainerFrame", "Blizzard_TrainerUI")
|
||||||
EnableMovable("InspectFrame", "Blizzard_InspectUI", { "InspectHonorFrame" })
|
EnableMovable("InspectFrame", "Blizzard_InspectUI", { "InspectHonorFrame" })
|
||||||
|
|
||||||
|
-- durability frame
|
||||||
|
pfUI.durability = CreateFrame("Frame","pfDurability",UIParent)
|
||||||
|
pfUI.durability:SetPoint("TOPLEFT", pfUI.minimap, "BOTTOMLEFT", 0, -35)
|
||||||
|
UpdateMovable(pfUI.durability)
|
||||||
|
pfUI.durability:SetWidth(80)
|
||||||
|
pfUI.durability:SetHeight(70)
|
||||||
|
pfUI.durability:SetFrameStrata("BACKGROUND")
|
||||||
|
DurabilityFrame:SetParent(pfUI.durability)
|
||||||
|
DurabilityFrame:SetAllPoints(pfUI.durability)
|
||||||
|
DurabilityFrame:SetFrameLevel(1)
|
||||||
|
DurabilityFrame.SetPoint = function() return end
|
||||||
|
|
||||||
if C.appearance.cd.blizzard == "1" then
|
if C.appearance.cd.blizzard == "1" then
|
||||||
hooksecurefunc("PaperDollItemSlotButton_Update", function()
|
hooksecurefunc("PaperDollItemSlotButton_Update", function()
|
||||||
local cooldown = getglobal(this:GetName().."Cooldown")
|
local cooldown = getglobal(this:GetName().."Cooldown")
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
## Title: |cff33ffccpf|cffffffffUI
|
## Title: |cff33ffccpf|cffffffffUI
|
||||||
## Author: Shagu
|
## Author: Shagu
|
||||||
## Notes: A complete user interface replacement.
|
## Notes: A complete user interface replacement.
|
||||||
## Version: 3.8.8
|
## Version: 3.9.0
|
||||||
## SavedVariables: pfUI_profiles, pfUI_gold
|
## SavedVariables: pfUI_profiles, pfUI_gold
|
||||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
||||||
|
|
||||||
@@ -91,4 +91,3 @@ modules\hdgraphic.lua
|
|||||||
modules\share.lua
|
modules\share.lua
|
||||||
modules\tracking.lua
|
modules\tracking.lua
|
||||||
modules\easteregg.lua
|
modules\easteregg.lua
|
||||||
modules\durability.lua
|
|
||||||
|
|||||||
Reference in New Issue
Block a user