Thread Tools Display Modes
02/05/22, 09:02 PM   #1
nilo
Join Date: Feb 2022
Posts: 15
First addon, need advice :)

Recently I decided to learn more about addon development so I thought about a simple ideia that would be handy and hopefully easy enough for a first experience, so after a couple days of research and tutorials I dont know how to aproach this. So my ideia is to add some kind of role indicator for tanks and healers only (either the tank/healer icon or even the letters T/H) next to each players name in a large group according to their role if they belong to one of these.
Would be great if someone could point me in the right direction.
  Reply With Quote
02/05/22, 10:08 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
Welcome to addon development.

Please read the sticky threads first before posting
Also check the other forum about tutorials: https://www.esoui.com/forums/forumdisplay.php?f=172
and addon help/search (https://www.esoui.com/forums/forumdisplay.php?f=164) as they contain most asked questions and answers already as sticky threads.

You would know then what is possible, and what is not (your idea is somehow possible, as Votans Addon linked below shows, but there is no way to show floating markers above enemies/NPCs/Group members) then

New to addon development?
https://www.esoui.com/forums/showthread.php?t=9867
-> What addons can/cannot do https://www.esoui.com/forums/showthread.php?t=9865

btw:
Your addon idea already exists: Votans Group Pins
And I do not think this is an easy "starter addon", it's advanced. If you want to start with any simple addon buid yourself a "standard addon template" for your addons, to learn the difference between locla and global variables, muliple lua files in your addon, SavedVariabes with server dependent saving, settings menu with LibAddonMenu e.g.
If you have build your own template for your addons and have created your own first small addon to change any small thing that you disliked all the time in the game, then advanced with bigger addons like this.
This is only my advice, feel free to directly start with a big project if you like to ;-)

Last edited by Baertram : 02/06/22 at 08:08 AM.
  Reply With Quote
02/06/22, 07:42 AM   #3
nilo
Join Date: Feb 2022
Posts: 15
Thank you for the response.

I did skimm through the sticky threads and a couple others in the various forums and a bit more deeply search through ESOUI Wiki which has great information but I didn't quite find a way on how to get started with this specificaly.

Also I got a bit confused by what you mean with my ideia not being possible, but simultaneously already existing in Votans Group Pins Addon.

I feel like I probably could've done a better job explaing the ideia ... so, like the picture shows the group leader having an icon with their name, my ideia was to also add an icon to the group members names that belong to tank and healer roles. I know that already exist other UI's that have this but would be cool to add it to the default UI.

I apreciate all the help, please let me know if this is such an advanced ideia.
Attached Thumbnails
Click image for larger version

Name:	ex.PNG
Views:	198
Size:	129.4 KB
ID:	1456  
  Reply With Quote
02/06/22, 08:08 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
Sorry, I had edited my post above and forgot to change the upper text about "not possible"! My fault.
It is possible as I found out later by Votans addons. What I meant was that it is not possible to show floating marker icons above heads of enemies or NPCs or group members (group members can only get the shown arrow replaced by another texture, that's all).

Oh yeah I missunderstood your idea then. You mean to add the textures to the group UI "frame" where you see the whole groups health etc.
Check the code of addons related to group frames then to learn it at best I'd say:

e.g.
https://www.esoui.com/downloads/info...oupFrames.html
https://www.esoui.com/downloads/info...nitFrames.html

ZOs named them unit frames, so the source can be found here:
https://github.com/esoui/esoui/blob/...me/unitframes/

https://github.com/esoui/esoui/blob/...frames.lua#L10 (ZO_GroupUnitFrame)

Last edited by Baertram : 02/06/22 at 08:21 AM.
  Reply With Quote
02/07/22, 12:59 PM   #5
nilo
Join Date: Feb 2022
Posts: 15
That's what I was looking for.
Thanks alot for the help and advice!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » First addon, need advice :)


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