|
||||||
| Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding]. | ||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Junior Member
Join Date: May 2006
Posts: 69
|
Original discussion: http://www.tukui.org/forums/topic.php?id=15823
Basically, when you create a StaticPopupDialog table, set the following member like this: Code:
StaticPopupDialogs["MY_DIALOG_NAME"]={
preferredIndex = 3
-- and then the rest of your definition
}
Alternatively, you may want to use Torhal's http://www.wowace.com/addons/libdialog-1-0/ which always avoids taint, and extends the dialogs with a bit more functionality. And, no, this does not solve all tainting issues. There's plenty more to go around. But it plugs one hole.
__________________
Yes. I'm actually Mikk. The curse user DB has mixed this old account up with my new one. Going on 3 years now! It's awesome.
|
|
|
|
|
|
#2 |
|
Never give up!
Join Date: Nov 2005
Location: Scotland, UK
Posts: 2,958
|
Awesome, thanks for the heads up Mikk!
|
|
|
|
|
|
#4 |
|
Legendary Member
Join Date: Dec 2005
Posts: 2,127
|
A recount ticket? Neat.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2006
Posts: 69
|
Yes, the glyph frame can un-taint itself somehow.
Basically, if you have the glyph frame open, and hit N+N to close it, and then open it again, it's tainted. But if you [Esc] out of the glyph frame, and then open it again, it untaints itself. Obviously just N+N doesn't automagically taint the frame, the taint has to come from somehwere. We haven't quite figured it out yet. My personal guess is that timed popups (like Summon Accept + EPGP's "don't have multiple people change stuff!") is involved. Foxlit & Sylv were being suspicious about popups that read the .data / .data2 members, like loot & instance save accept dialogs.
__________________
Yes. I'm actually Mikk. The curse user DB has mixed this old account up with my new one. Going on 3 years now! It's awesome.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: May 2006
Posts: 69
|
Uh. Except now it happened straight on startup with no popups involved.
Edit: Nailed it. Receiving a whisper causes this strain of taint for me.
__________________
Yes. I'm actually Mikk. The curse user DB has mixed this old account up with my new one. Going on 3 years now! It's awesome.
Last edited by dpsgnome; 03-25-2012 at 02:23 PM. |
|
|
|
|
|
#7 |
|
Newbie
Join Date: May 2010
Posts: 2
|
Recently a huge amount of talent taints are occured, now here is the problem:
whoever calls 'StaticPopup_Show' when PlayerTalentFrame is hidden will cause this taint, you can try it Even this macro will cause the taint when PlayerTalentFrame is hidden "/run StaticPopup_Show('PARTY_INVITE',"a")" , and make you have to reload ui when you want to change your talent so, all addons author, don't use blizzard's StaticPopup systeam and try to use others |
|
|
|
|
|
#8 |
|
Member
|
Necro!
At least since 5.0, probably even before that, it's better to use preferredIndex=STATICPOPUPS_NUMDIALOGS than 3. STATICPOPUPS_NUMDIALOGS is 4, currently.
__________________
Be nice to nerds, chances are you might end up working for one. -- Charles J. Sykes 0x0000000000051417, 0x000000000024737C, 0x00000000008EEEC5 :(, 0x0000000001C3F99F |
|
|
|
|
|
#9 |
|
Newbie
Join Date: May 2010
Posts: 2
|
Yes, i know this thread, but since macro "/run StaticPopup_Show('PARTY_INVITE',"a")" will also taint, it's not the 'preferredIndex' who taint it, we just need to avoid using blz's staticpopup systeam
even /run StaticPopup4.which = '1' will taint talentUI Last edited by Carsight; 01-11-2013 at 03:20 AM. |
|
|
|
![]() |
| Tags |
| taint, tainting |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 03:48 PM.
WowAce Forums







