View Single Post
07-26-13, 12:43 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
It's certainly possible but a bit more context about what you want to achieve might help you get some more specific information.

Edit: The most basic (rough as guts) is you have a frame with 3 buttons. In the OnClick event for button A and B.

For A:
Code:
  self:GetParent().A_Clicked = true
  if self:GetParent().A_Clicked and self:GetParent().B_Clicked then
     --show button C
     self:GetParent().A_Clicked = nil
     self:GetParent().B_Clicked = nil
  end
For B:
Code:
  self:GetParent().B_Clicked = true
  if self:GetParent().A_Clicked and self:GetParent().B_Clicked then
     --show button C
     self:GetParent().A_Clicked = nil
     self:GetParent().B_Clicked = nil
  end
Very rudimentry and open to refinement depending on requirement.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-26-13 at 12:57 AM.
  Reply With Quote