< Fin> if I wanted to make an addon LoadOnDemand, but have it load by default (just so that it could be possible to load it from an in-game addon manager without having to reload the UI), is there a Good way to do this?
Look at what Sylvanaar did with Prat:
- if it is enabled, it loads at startup.
- if it is disabled, you can enable it and load it at anytime without reloading the UI.
Sylvannar uses this, that is a bit hacky and won't work with embedded libs :
## LoadWith: Ace2
## LoadManagers: Ace2
Another way would be using an real load manager like AddonLoader.
"load by default"... When exactly do you want the thing to load?
Just, as soon as you start the game, like normal non-LoadOnDemand addons. I just want it to be possible to be able to load the addon in-game without having to reload the entire UI. If it's a normal addon, and it's disabled, you can't do that; but if it's a LoadOnDemand addon, and it's disabled, then it doesn't load when you start the game.
Sorry, I sort of assumed this was a common thing for addon authors to want to do, and that there'd be an easy answer - I will inwestigate the matter more thoroughly.
Quote from Adirelle »
Look at what Sylvanaar did with Prat:
- if it is enabled, it loads at startup.
- if it is disabled, you can enable it and load it at anytime without reloading the UI.
Sylvannar uses this, that is a bit hacky and won't work with embedded libs :
## LoadWith: Ace2
## LoadManagers: Ace2
Well, thanks for making me feel clever - sylvanaar's a lot smarter than me, but I'd actually come up with a similar idea myself already. Woo! Like I said, I'd hoped there was a standard (or Good) way to do this that people were in the habit of using (that didn't rely on something you weren't 100% sure of even though it was very likely).
Quote from Adirelle »
Another way would be using an real load manager like AddonLoader.
Yeh, I saw AddonLoader - it was updated on IRC a few minutes (seemed like minutes, at least) after I asked the question I quoted in my original post. Thought about it, but I was hoping there was a simpler way - like getting the addon to load with something that's always loaded.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
- if it is enabled, it loads at startup.
- if it is disabled, you can enable it and load it at anytime without reloading the UI.
Sylvannar uses this, that is a bit hacky and won't work with embedded libs :
Another way would be using an real load manager like AddonLoader.
Just, as soon as you start the game, like normal non-LoadOnDemand addons. I just want it to be possible to be able to load the addon in-game without having to reload the entire UI. If it's a normal addon, and it's disabled, you can't do that; but if it's a LoadOnDemand addon, and it's disabled, then it doesn't load when you start the game.
Sorry, I sort of assumed this was a common thing for addon authors to want to do, and that there'd be an easy answer - I will inwestigate the matter more thoroughly.
Well, thanks for making me feel clever - sylvanaar's a lot smarter than me, but I'd actually come up with a similar idea myself already. Woo! Like I said, I'd hoped there was a standard (or Good) way to do this that people were in the habit of using (that didn't rely on something you weren't 100% sure of even though it was very likely).
Yeh, I saw AddonLoader - it was updated on IRC a few minutes (seemed like minutes, at least) after I asked the question I quoted in my original post. Thought about it, but I was hoping there was a simpler way - like getting the addon to load with something that's always loaded.