lua problem
Why does this not work.
anyone know how to fix it Code:
A1 = CreateFrame("Frame", nil, self) |
Code:
A1 = CreateFrame("Frame", nil, self) Replace your two lines with Code:
A1 = CreateFrame("Frame", nil, UIParent) |
Got the normal state working.
But I must be missing something. anyone knows what to do with the events Code:
AI1 = CreateFrame("Frame", nil, UIParent) |
Code:
AI1:SetScript("OnEvent", function(self, event, ...) |
Quote:
the Code:
-------------------------- AI-Panels by Quokka (T.C) ------------------------ |
You Don't register your Frame to listen to any events... Use calls like
Frame:RegisterEvent('EVENTNAME') To actually listen to events before the SetScript-call. Posted via phone, so fix typos yourself ;) |
Quote:
at the bottom I register the frames Code:
AI1:RegisterEvent('UNIT_ENTERED_VEHICLE') |
You're registering the right events, but your onevent is mixed up.
Code:
AI1:SetScript("OnEvent", function(self, event, ...) |
Quote:
Overlooked that bit... |
Quote:
|
okay got it working.
but I need some sort off check, to make sure the textures show when I log in. since my backup function fails. Code:
AI1 = CreateFrame("Frame", nil, UIParent) Code:
AI1:RegisterEvent("PLAYER_ENTERING_WORLD") Code:
AI1:SetScript("OnEvent", function(self, event, ...) could somebody give me some advice to use it this way or how to do this the best way |
*note: I didnt read your code, just your question.
if your concerned about the code being called more than once PLAYER_ENTERING_WORLD is called pretty much anytime you hit a loading screen... going into an instance, leaving an instance, and what not PLAYER_LOGIN is called at login or a reloading of the ui :) |
All times are GMT -6. The time now is 12:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI