mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-09-21 23:26:57 +00:00
Revert addon-folder texture resolution (assume MetaHunt folder)
This commit is contained in:
@@ -1,23 +1,6 @@
|
||||
MTH_CONST = MTH_CONST or {}
|
||||
MTH_CONST.version = MTH_CONST.version or "2.0.0"
|
||||
|
||||
-- Our AddOns folder name as actually installed. Forgejo/Codeberg zip downloads
|
||||
-- force the archive's root folder to lowercase (forgejo bug #800), so resolve
|
||||
-- the real casing here and build texture paths from it.
|
||||
MTH_CONST.addonFolder = MTH_CONST.addonFolder or "MetaHunt"
|
||||
if type(GetNumAddOns) == "function" and type(GetAddOnInfo) == "function" then
|
||||
local i = 1
|
||||
local total = GetNumAddOns() or 0
|
||||
while i <= total do
|
||||
local folder = GetAddOnInfo(i)
|
||||
if type(folder) == "string" and string.lower(folder) == "metahunt" then
|
||||
MTH_CONST.addonFolder = folder
|
||||
break
|
||||
end
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
|
||||
MTH_CONST.WEAPON_TYPES = {
|
||||
BOWS = "Bows",
|
||||
CROSSBOWS = "Crossbows",
|
||||
|
||||
+1
-1
@@ -908,7 +908,7 @@ function MTH_Map:BuildPin(parent, name, isMinimap)
|
||||
|
||||
pin.tex = pin:CreateTexture(nil, "ARTWORK")
|
||||
pin.tex:SetAllPoints(pin)
|
||||
pin.tex:SetTexture("Interface\\AddOns\\" .. (MTH_CONST and MTH_CONST.addonFolder or "MetaHunt") .. "\\img\\node")
|
||||
pin.tex:SetTexture("Interface\\AddOns\\MetaHunt\\img\\node")
|
||||
pin.tex:SetVertexColor(1, 1, 1, 1)
|
||||
|
||||
pin:SetScript("OnEnter", function()
|
||||
|
||||
Reference in New Issue
Block a user