Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------
- -- Engine to make all files communicate.
- -- Credit Nightcracker
- ----------------------------------
- local BasicUI = LibStub("AceAddon-3.0"):GetAddon("BasicUI")
- -- including system
- local addon, engine = ...
- engine[1] = {} -- B, functions, constants
- engine[2] = BasicUI.db.profile -- C, config
- BasicUI = engine --Allow other addons to use Engine
- --[[
- This should be at the top of every file inside of the BasicUI AddOn:
- local B, C = unpack(select(2, ...))
- This is how another addon imports the BasicUI engine:
- local B, C = unpack(BasicUI)
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement