from retail

This commit is contained in:
NoM0Re
2025-01-24 21:18:29 +01:00
parent b831fb4009
commit bd6985e67a
8 changed files with 178 additions and 84 deletions
+15
View File
@@ -2349,9 +2349,24 @@ LSM.RegisterCallback(WeakAuras, "LibSharedMedia_Registered", function(_, mediaty
Private.sound_types[path] = key
Private.sound_file_types[path] = key
end
elseif mediatype == "statusbar" then
local path = LSM:Fetch(mediatype, key)
if path then
Private.texture_types["LibSharedMedia Textures"][path] = key
end
end
end)
Private.texture_types["LibSharedMedia Textures"] = {}
for _, mediaType in ipairs{"statusbar"} do
local mediaTable = LSM:HashTable(mediaType)
if mediaTable then
for name, path in pairs(mediaTable) do
Private.texture_types["LibSharedMedia Textures"][path] = name
end
end
end
-- register options font
LSM:Register("font", "Fira Mono Medium", "Interface\\Addons\\WeakAuras\\Media\\Fonts\\FiraMono-Medium.ttf", LSM.LOCALE_BIT_western + LSM.LOCALE_BIT_ruRU)
-- Other Fira fonts