ToggleTalentFrame() / ToggleGlyphFrame() taint issue
Hello, I'm trying to create a custom game menu and I'm having trouble with two buttons pertaining to the talent and glyph frames.
The taint issue comes from calling ToggleTalentFrame() and ToggleGlyphFrame() insecurely. Since these frames are not loaded by default, I can't use ToggleFrame() as I do with the Spellbook. My question is whether it's possible to actually open these frames with code without it blowing up in my face. Edit: Here's the updated code: Lua Code:
|
I use this in Click Menu for the talents, I don't call glyphs though.
Code:
if (not PlayerTalentFrame) then |
I know a decent way to avoid taint is to run the click method on any buttons that exist. You could run the click method on the micro menus' TalentMicroButton. You could then run the click method on the "Glyphs" tab.
Lua Code:
Lua Code:
I know that doesn't help with load on demand issues, but it is a start. |
Lua Code:
|
Resike: Your approach works for opening the talent frame, but using
Lua Code:
The other solutions you guys provided cause full on taint, just like my original approach. Edit: Maybe I should add I'm not clicking these with my mouse. |
Bah, I've decided against a dedicated Glyph button. It's not that necessary.
Thanks for the help everyone. :) |
Quote:
Lua Code:
Edit: Made some changes should work for every tab now and it's toggleable. |
Quote:
|
Quote:
|
This does work for the glyph frame, but it opens the glyph frame regardless of the tabnumber given!
|
Quote:
Lua Code:
Edit: Fixed a typo. Lua Code:
Seems like the show is only spec, while the hide function is specs. This should work now properly. The best thing if you call it without an argument 2-3 times then you can choose a feral spec. :P |
Lua Code:
Actually this causes a taint if you want to remove talents (glyphs are working). Is there a way around? |
All times are GMT -6. The time now is 05:02 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI