Thread Tools Display Modes
02-05-15, 10:27 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Target arrow

Just watched https://www.youtube.com/watch?v=LJQmwx4iqbk

I have no clue how many of the ui elments are done.

One of the features is the target arrow which I think is super cool. And I want to rebuild that. Semlar posted his sizer idea lately and that is really useful here aswell.

Basically if PLAYER_TARGET_CHANGED is fired and we have a target nameplate we need to wait for 1 frame. After that the target nameplate will be set to the correct alpha. We scan for the target nameplate and clear the sizer setpoints. After that we can disable the OnUpdate by hiding the timer frame.

The sizer frame has OnSizeChanged as an event. Thus once the nameplate moves it will let us know. Now we only need to calculate the position in relation to the screen center and have a texture position in the center of the screen that we rotate properly.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-05-15, 11:03 AM   #2
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
Holy shit. Not sure if Iron Man hud or a wow ui. Call me Jon Snow, 'cause I know nothing anymore.
  Reply With Quote
02-05-15, 12:17 PM   #3
Banknorris
A Chromatic Dragonspawn
 
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
Originally Posted by zork View Post
I watched that video without using a welding mask and now I am blind.

Last edited by Banknorris : 02-05-15 at 12:23 PM.
  Reply With Quote
02-05-15, 12:55 PM   #4
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
I really would like to know how he'S doing those "plates" or "tooltips" or whatever it is:


I can't imagine a way to render that stuff in a perspectively correct way ... especially not if they are moving like in the video.
  Reply With Quote
02-05-15, 01:30 PM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I sat down and wrote the addon for the target pointer.
http://www.wowinterface.com/download...etPointer.html

http://imgur.com/a/4fl4T

To bad I could not disable the OnUpdate completly. I forget about what happens when a nameplate gets off-screen. Another nameplate may take its place. >_<

Nevertheless. Works pretty nicely.

The rotation itself could be done with the WoW animation API I think. Thus I could ease the movement a bit more.

@Duugu
Me too. That 3D transformation lol.
He replied to my questions over at MMO. Maybe he will answer your questions aswell.
http://www.mmo-champion.com/threads/...1#post32115494
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-05-15 at 01:47 PM.
  Reply With Quote
02-05-15, 01:52 PM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I use targeting arrows with my own nameplate addon, but I try and connect all of the units that are targeting each other.

Each set of arrows is just one texture sized and rotated to connect the frames.

Pretty much stole the idea from NPA, just a different implementation.

As for SilverLion's interface, he did almost everything entirely in weak auras and swapping static images out for animations.

Last edited by semlar : 02-19-19 at 01:27 PM.
  Reply With Quote
02-05-15, 06:15 PM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
What is this NPA?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-05-15, 06:33 PM   #8
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
NamePlateAdvance
  Reply With Quote
02-06-15, 03:15 AM   #9
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
@semlar
Btw have I mentioned that your video is quite amazing aswell? If you can extract some of the arrow code and post it I would be grateful. I want to take a look at it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-06-15, 05:37 AM   #10
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
What is up with his player model. I never know it woud be possible to only show the model and not the texturs and even more important it dosen't move e.g. male trolls normaly always go up and down whole time, thats a problem with many 3D portrait addons.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
02-06-15, 06:43 AM   #11
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
His animation is selfmade out of textures. One texture per frame. He probably used some model viewer or sth like that to generate them.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-06-15, 07:52 AM   #12
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by zork View Post
His animation is selfmade out of textures. One texture per frame. He probably used some model viewer or sth like that to generate them.
So what you are saying its not a real 3D animation its just a row of pics that show the model from each side? Then how woud that look if the model dosen't fit your char? He said he is going to upload this as an UI.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
02-06-15, 10:24 AM   #13
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Tonyleila View Post
So what you are saying its not a real 3D animation its just a row of pics that show the model from each side?
Yes, exactly.

Originally Posted by Tonyleila View Post
Then how woud that look if the model dosen't fit your char? He said he is going to upload this as an UI.
I'd guess he'd either just take out the "model" entirely, or maybe provide some generic options to pick from, depending on how much work it is to create the graphics.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
02-19-15, 08:47 PM   #14
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
He posted the ui at a blizz fan website, named NGA in China.
The main structure is working on weakauras, all the animations are created by this addon.

Here is the site: http://bbs.ngacn.cc/read.php?tid=7829347&_ff=200

You can google translate the site.

Last edited by siweia : 02-19-15 at 08:56 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Target arrow


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