Thread Tools Display Modes
10-26-13, 11:58 AM   #1
EvolinEU
A Defias Bandit
 
EvolinEU's Avatar
Join Date: May 2013
Posts: 3
AddOn to make a pop-up icon

Hey everybody!
Was thinking, is it possible to write a AddOn to pop-up a icon (that is dragable) on your screen when you enter a zone (in this case SoO)?
In this case, I would want to, if possible ofc. To write a small AddOn to throw a pop-up icon of Flask of Spring Blossom's on my screen when I am in SoO and I don't have that certain buff.

I have almost no clue about LUA, so everybit of help is really appriciated.

Something like this perhaps?

Code:
If Player.Class.Hunter { is { zone = ("Siege of Orgrimmar");
And Missing.Buff = { ID = ("105689");
Then Show.Frame1;
Else if Hide.Frame1;
  Reply With Quote
10-26-13, 01:37 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
This sounds like an ideal situation for weak auras, unless you just want to make your own addon.
  Reply With Quote
10-26-13, 04:42 PM   #3
EvolinEU
A Defias Bandit
 
EvolinEU's Avatar
Join Date: May 2013
Posts: 3
Originally Posted by semlar View Post
This sounds like an ideal situation for weak auras, unless you just want to make your own addon.
Yeah I've used Weak Auras before, just wanted to try to make a seperate addon for this
Thought this might be simple enough for a complete LUA newbie
  Reply With Quote
10-26-13, 05:53 PM   #4
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Is it possible?

Most certainly! You just need to create a frame that has the texture of Flask of Spring Blossoms, make the frame draggable, register events for changing zones and for monitoring auras, and provide some logic for when it should show and be hidden.

Give it a shot and let us know how we can help.
  Reply With Quote
10-27-13, 12:17 AM   #5
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
Well I have this add-on for the draggable flask button... I can probably add zone detection or some other trigger if you want, haven't had new features for it in ages
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!
  Reply With Quote
10-27-13, 04:26 PM   #6
EvolinEU
A Defias Bandit
 
EvolinEU's Avatar
Join Date: May 2013
Posts: 3
Originally Posted by Malsomnus View Post
Well I have this add-on for the draggable flask button... I can probably add zone detection or some other trigger if you want, haven't had new features for it in ages
Would you be okey if I did took a look on your code?
Might even get some tips and tricks from it
  Reply With Quote
10-27-13, 04:38 PM   #7
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
Originally Posted by EvolinEU View Post
Would you be okey if I did took a look on your code?
Might even get some tips and tricks from it
Just don't look too close, I'm not sure my code there is that good
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » AddOn to make a pop-up icon

Thread Tools
Display Modes

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