Ace3 Module with sub modules?
Hi,
im using Ace3 since its making a lot of work much easier. Today I was wondering if it is possible to create Ace3 modules with submodules. Usually you create modules for addons like this: Lua Code:
What I would like to do is something like this: Lua Code:
I want to do that because sometimes things are getting too big. For example im working on data texts. So I have my main addon and a data texts module. keeping all data texts in that module is way too big so I would like to split them into sub modules. |
From line 221 of AceAddon-3.0:
Lua Code:
|
Thx. But im getting nil if I do it:
Main Addon: Lua Code:
MiniMap AddOn: Lua Code:
Module of MiniMap: Lua Code:
SubModule of MiniMap Module: Lua Code:
My import order: Addon .toc: Lua Code:
MiniMap .toc: Lua Code:
MiniMap modules.xml: xml Code:
|
Code:
## RequiredDeps: NameOfCoreAddOn Code:
## RequiredDeps: NameOfCoreAddOn, NameOfFirstModule |
SmartRes2 and its Chat Module don't work anymore, but the code examples will still be of help.
|
Hi,
ignore RegisterModule. Its stuff that I implemented myself. Should not have posted it. my core .toc file does not load the modules which are standalone addons. Core is just the main addon containing core functionality and also general modules. My other addons have their own .toc file and load their own modules individually. But everyone of my addons depends on core: Lua Code:
However. Turned out that the Error was missleading and the source of it was something different. So the the stuff I posted works fine. Thx |
All times are GMT -6. The time now is 03:05 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI