Thread Tools Display Modes
04-12-17, 07:13 PM   #1
Tesser
A Deviate Faerie Dragon
Join Date: Oct 2016
Posts: 15
[resolved] basic scoping / taint issue

[RESOLUTION]: calling a frame while nested in functions is fine. The problem was that the frame had associated 'Secure' frames with it, and combat was temporarily locking them.

I have one giant init() function.

I Hide() a frame inside init() that was declared outside it.

Then, it seems I can never Show() that frame again, from outside that function. I want to Show() it in regards to certain combat events, etc.

Did the Hide() from within the function taint the frame to only work in that scope?

Last edited by Tesser : 04-13-17 at 02:31 PM.
  Reply With Quote
04-12-17, 07:23 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
No idea without seeing your code.
https://pastebin.com/
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-12-17, 07:40 PM   #3
Tesser
A Deviate Faerie Dragon
Join Date: Oct 2016
Posts: 15
first the 'Hide()' and then the 'Show()' are commented with 'xyzzy'
https://pastebin.com/Zxg2HMJk

Hide() is within the big init() function.
Show() is within an event listener for COMBAT_LOG_EVENT_UNFILTERED

so basically it's:

Code:
create frame

function
  hide frame
end

function
  show frame
end
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » [resolved] basic scoping / taint issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off