-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Saved variables now kinda seems to work properly. Delay initialisat…
…ion of everything till the saved vars are loaded basically. Not ideal but works
- Loading branch information
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
local an, hst = ... | ||
|
||
hst.create_frame() | ||
hst.load_settings() | ||
local f = CreateFrame("Frame") | ||
f:RegisterEvent('ADDON_LOADED') | ||
f:SetScript("OnEvent", function(self, event, arg1) | ||
if(event == 'ADDON_LOADED' and arg1 == an) then | ||
hst.load_settings() | ||
hst.create_frame() | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters