View Single Post
07-26-13, 02:22 AM   #4
Yksrep
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 21
Originally Posted by Fizzlemizz View Post
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.
Thanks,

A bit more for more context What I am trying to do is once someone selects the type of NPC they want to find (vendor trainer ect), and what City they are looking in (Stormwind, Thunder bluff ect) It will then either set a waypoint to that location Or if there are multiple allow the user to choose the NPC they want to visit.
  Reply With Quote