I'm trying to make an addon that replaces the compass with a different graphic (more similar to the one in
Nordic UI from Skyrim, which I think looks a lot better).
I have a problem that when I first launch the game and log in my compass graphic is there, but when I do /reloadui it defaults to either vanilla (if I have no other mods running), or DarkUI (if I have that addon running too). I'll include the code below, it's quite short:
Code:
function SlimCompass()
RedirectTexture("esoui/art/compass/compass.dds", "slimcompass/textures/sc_compass.dds")
end
function OnAddOnLoaded(eventCode, addOnName)
if addOnName ~= Addon.Name then return end
SlimCompass()
end
EVENT_MANAGER:RegisterForEvent(Addon.Name, EVENT_ADD_ON_LOADED, OnAddOnLoaded)
My end goal would be to have the graphic persist at all times, even through /reloadui, just like how DarkUI managed to do. Thanks for any help