Compare commits

..

3 Commits

Author SHA1 Message Date
9512dcd28e Explicitly add TBC support
Some checks failed
Test Commit / create-release (push) Failing after 1m5s
2026-02-17 14:29:59 +01:00
4da5c93c02 Fix typo in default background paths 2026-02-17 14:29:13 +01:00
e461245ca6 Update formatting to use stylua 2026-02-17 14:28:20 +01:00
3 changed files with 23 additions and 15 deletions

3
.stylua.toml Normal file
View File

@@ -0,0 +1,3 @@
indent_type = "Spaces"
indent_width = 4
column_width = 120

View File

@@ -3,20 +3,21 @@ if not lib then
return return
end end
-- stylua: ignore
local DEFAULT_MEDIA_TABLE = { local DEFAULT_MEDIA_TABLE = {
background = { background = {
["Blizzard Dialog Background"] = "Interfacee\\DialogFrame\\UI-DialogBox-Background", ["Blizzard Dialog Background"] = "Interface\\DialogFrame\\UI-DialogBox-Background",
["Blizzard Dialog Background Dark"] = "Interfacee\\DialogFrame\\UI-DialogBox-Background-Dark", ["Blizzard Dialog Background Dark"] = "Interface\\DialogFrame\\UI-DialogBox-Background-Dark",
["Blizzard Dialog Background Gold"] = "Interfacee\\DialogFrame\\UI-DialogBox-Gold-Background", ["Blizzard Dialog Background Gold"] = "Interface\\DialogFrame\\UI-DialogBox-Gold-Background",
["Blizzard Low Health"] = "Interfacee\\FullScreenTextures\\LowHealth", ["Blizzard Low Health"] = "Interface\\FullScreenTextures\\LowHealth",
["Blizzard Marble"] = "Interfacee\\FrameGeneral\\UI-Background-Marble", ["Blizzard Marble"] = "Interface\\FrameGeneral\\UI-Background-Marble",
["Blizzard Out of Control"] = "Interfacee\\FullScreenTextures\\OutOfControl", ["Blizzard Out of Control"] = "Interface\\FullScreenTextures\\OutOfControl",
["Blizzard Parchment"] = "Interfacee\\AchievementFrame\\UI-Achievement-Parchment-Horizontal", ["Blizzard Parchment"] = "Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal",
["Blizzard Parchment 2"] = "Interfacee\\AchievementFrame\\UI-GuildAchievement-Parchment-Horizontal", ["Blizzard Parchment 2"] = "Interface\\AchievementFrame\\UI-GuildAchievement-Parchment-Horizontal",
["Blizzard Rock"] = "Interfacee\\FrameGeneral\\UI-Background-Rock", ["Blizzard Rock"] = "Interface\\FrameGeneral\\UI-Background-Rock",
["Blizzard Tabard Background"] = "Interfacee\\TabardFrame\\TabardFrameBackground", ["Blizzard Tabard Background"] = "Interface\\TabardFrame\\TabardFrameBackground",
["Blizzard Tooltip"] = "Interfacee\\Tooltips\\UI-Tooltip-Background", ["Blizzard Tooltip"] = "Interface\\Tooltips\\UI-Tooltip-Background",
["Solid"] = "Interfacee\\Buttons\\WHITE8X8", ["Solid"] = "Interface\\Buttons\\WHITE8X8",
}, },
font = { font = {
["Arial Narrow"] = "Fonts\\ARIALN.TTF", ["Arial Narrow"] = "Fonts\\ARIALN.TTF",
@@ -58,7 +59,6 @@ end
local DEFAULT_MEDIA_LIST = MakeDefaultList() local DEFAULT_MEDIA_LIST = MakeDefaultList()
-- Interopability with a proprietary alternative is contained in this block -- Interopability with a proprietary alternative is contained in this block
do do
local libsm = LibStub:GetLibrary("LibSharedMedia-3.0", true) local libsm = LibStub:GetLibrary("LibSharedMedia-3.0", true)
@@ -87,7 +87,6 @@ do
lib.mediaList = libsm.MediaList lib.mediaList = libsm.MediaList
end end
---@param kind string The kind of media you are registering. E.g. "font" or "background" ---@param kind string The kind of media you are registering. E.g. "font" or "background"
---@param identifier string Named identifier for the media ---@param identifier string Named identifier for the media
---@param data any ---@param data any
@@ -111,7 +110,6 @@ local function RegisterOne(kind, identifier, data)
return true return true
end end
---@param kind string The kind of media you are registering. E.g. "font" or "background" ---@param kind string The kind of media you are registering. E.g. "font" or "background"
---@param identifier string Named identifier for the media ---@param identifier string Named identifier for the media
---@param data any ---@param data any

7
src/LibFreeMedia_TBC.toc Normal file
View File

@@ -0,0 +1,7 @@
## Interface: 20505
## Title: LibFreeMedia
## Notes: Freely share media between addons
## Version: 0.1.1
libs/LibStub.lua
LibFreeMedia.lua