Skip to content

Commit

Permalink
Soft embed IconFileNames again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Aug 8, 2024
1 parent f2798b0 commit 71ae053
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Libs/LibStub
Libs/CallbackHandler-1.0
Libs/Ace*
Data/IconFileNames.lua
3 changes: 3 additions & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ externals:
Libs/LibStub: https://repos.wowace.com/wow/libstub/trunk
Libs/AceTimer-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceTimer-3.0
Libs/AceLocale-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceLocale-3.0
Data/IconFileNames:
url: https://www.townlong-yak.com/addons.git/iconfilenames
commit: default

move-folders:
LargerMacroIconSelection/Data: LargerMacroIconSelectionData
10 changes: 1 addition & 9 deletions Data/IconFileNames.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-- https://www.townlong-yak.com/addons/iconfilenames
local m, V, A, T = {}, select(4, GetBuildInfo()), ...

for i, n in ([[-
Expand Down Expand Up @@ -28925,11 +28924,4 @@ for i, n in ([[-
m[i+0] = n
end

--(A == "IconFileNames" and _G or T).ICON_FILE_NAMES = m

-- I want to use it as loadondemand addon while embedding it into my own addon and changing the TOC
LargerMacroIconSelectionData = {}

function LargerMacroIconSelectionData:GetFileData()
return m
end
(A == "IconFileNames" and _G or T).ICON_FILE_NAMES = m
7 changes: 7 additions & 0 deletions Data/LargerMacroIconSelectionData.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local _, ns = ...

LargerMacroIconSelectionData = {}

function LargerMacroIconSelectionData:GetFileData()
return ns.ICON_FILE_NAMES
end
1 change: 1 addition & 0 deletions Data/LargerMacroIconSelectionData.toc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
## LoadOnDemand: 1
## IconTexture: interface\icons\spell_nature_polymorph

LargerMacroIconSelectionData.lua
IconFileNames.lua

0 comments on commit 71ae053

Please sign in to comment.