Thread Tools Display Modes
10-21-22, 04:36 PM   #1
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
How to put an icon to the bottom of the character? (inverse nameplate)

I see that addons can put additional icons (like debuffs) above characters head. I need the same but below character foots.

Is it possible:

1. Put an icon below char?
or
2. Get screen coords of that point?
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
10-21-22, 07:38 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
The only spot you can attach things to is the nameplate. You have two options:
1) Attach frame to nameplate, offset the y value low enough to put frame at the bottom of the unit, then set nameplates to overlap so that the frame stays at the unit's feet.
This command makes nameplates overlap (as in they don't move around if bunched up)
/console nameplateMotion 0
2) Set nameplates to anchor at unit's feet.
This command moves nameplates to the bottom/feet of units
/console nameplateOtherAtBase 2
It is not possible to create or obtain any other anchor relative to the 3D world.
  Reply With Quote
10-22-22, 02:51 AM   #3
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
Originally Posted by Kanegasi View Post
The only spot you can attach things to is the nameplate.
Thank you, I'll try nameplates.

Do you know a good guide about nameplates? I tried to google but not found, and API itself is not clear enough for me ((
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
10-22-22, 04:38 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Originally Posted by Basil2 View Post
Thank you, I'll try nameplates.

Do you know a good guide about nameplates? I tried to google but not found, and API itself is not clear enough for me ((
Unfortunately there aren't really guides to addons out there ..

For nameplates we have this page that lists the functions you can utilise : https://wowpedia.fandom.com/wiki/API....GetNamePlates

And this talks about console variables Kanegasi mentioned : https://wowpedia.fandom.com/wiki/Console_variables

What some of us do when hit with something we don't really know is hook out an addon that does something similar and figure out how it works to find out what it is needed for the task we need.

A search for 'nameplate' on the addon page came up with 56 addons. One of them may do something similar enough for you to learn from.

Good Luck
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
10-22-22, 07:44 AM   #5
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
Originally Posted by Xrystal View Post
For nameplates we have this page that lists the functions you can utilise :
Thank you. I watched the function and examined the source code of Tidy Plates. Most things became clear, except the main one:

How to add my nameplate to a character?

C_NamePlate.GetNamePlates() returns nil, and there is no SetNamePlates()...
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
10-22-22, 02:13 PM   #6
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
I don't quite understand your request. If you're looking for a nameplate for your character, enable the personal resource display. If you're looking to add a nameplate to something that doesn't have one, you can't. If a unit you can target doesn't have one, check your nameplate settings to see if friendly, neutral, or hostile nameplates are being hidden. Go to this page and search for nameplateShowAll and check all those "nameplateShow" settings or just enable nameplateShowAll. Even after checking those settings and the unit you want a nameplate on doesn't have one, either it doesn't get one or there are more than 40 units on screen (max of 40 nameplates on screen).
  Reply With Quote
10-22-22, 07:36 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Kanegasi View Post
1) Attach frame to nameplate, offset the y value low enough to put frame at the bottom of the unit, then set nameplates to overlap so that the frame stays at the unit's feet.
This causes an issue where you detach the visible part of the nameplate from its clickable area. The CompactUnitFrame layer is set to ignore mouse clicks. Instead, this is handled by the NamePlateBase, which is the set of invisible frames that are controlled by C code.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
10-22-22, 07:58 PM   #8
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by SDPhantom View Post
This causes an issue where you detach the visible part of the nameplate from its clickable area. The CompactUnitFrame layer is set to ignore mouse clicks. Instead, this is handled by the NamePlateBase, which is the set of invisible frames that are controlled by C code.
I meant the y value of the custom frame, not the nameplate itself. OP is trying to attach custom frames to unit feet.
  Reply With Quote
10-23-22, 10:49 AM   #9
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
Originally Posted by Kanegasi View Post
I don't quite understand your request.
I am sorry, I didn't formulate my thought well. I meant:


How to attach my frame to nameplate?


I see only GetUnitNamePlate function, not SetUnitNamePlate or AttachFrameToNamePlate. That's the current showstopper
__________________
Wow Switcher - super easy multiboxing software for leveling and more...

Last edited by Basil2 : 10-23-22 at 11:42 AM.
  Reply With Quote
10-23-22, 02:13 PM   #10
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
Oo, it looks like I have found the problem. The nameplate were just off for allies I turned them on and get a nameplate!

So, current problem is:

How to get nameplate coords?

I tried to call GetLeft() (or Center, or Rect), but these functions failed with message "Cannot measure restricted region"...
__________________
Wow Switcher - super easy multiboxing software for leveling and more...

Last edited by Basil2 : 10-23-22 at 02:31 PM.
  Reply With Quote
10-23-22, 03:53 PM   #11
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Long story short, you can't get their coords. Blizzard blocked them for a reason. The best you can do is anchor to them. I would suggest looking at their nameplate code. Note there are different versions of this between Classic and Retail.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to put an icon to the bottom of the character? (inverse nameplate)


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