View Single Post
06-01-19, 11:04 PM   #2
twin_tania
A Defias Bandit
Join Date: Jun 2019
Posts: 2
Ok, after finally taking a break my mind was finally able to make a bit more progress but it is still incomplete from what I am trying to do. I managed to show and hide on demand by pressing the button a secondary frame I created within the file doing the following.

Code:
local newFrameHidden = false
frame.sBtn:SetScript("OnClick", function(self)
				
	if newFrameHidden == false then
		newFrame:Hide()
		newFrameHidden = true
	else
		newFrame:Show()
		newFrameHidden = false
	end
	
end)
Now this is probably an ugly approach to someone who is experienced but so far is what I was able to think off at the moment.
  Reply With Quote