Go to Page... |
Compatibility: | Necrom (9.0.0) |
Updated: | 06/23/23 05:22 PM |
Created: | 11/09/20 03:08 AM |
Monthly downloads: | 3,609 |
Total downloads: | 267,021 |
Favorites: | 182 |
MD5: | |
Categories: | Group, Guild & Friends, Raid Mods |
function OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.RemoveMechanicIconForUnit( displayName -- display name of the affected player )
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MECHANIC_ID = 12345 EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, function( _, changeType, _, _, unitTag ) -- check if OdySupportIcons is active and the affected unit is a player if OSI and OSI.SetMechanicIconForUnit and IsUnitPlayer( unitTag ) then -- retrieve the displayname of the affected player local displayName = GetUnitDisplayName( unitTag ) -- if the player gained the mechanic effect... if changeType == EFFECT_RESULT_GAINED then -- assign your icon to the affected player and make it bigger than other icons OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 0, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 0.5 + 0.5 * math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- displayName, unitTag, texture, size, color, offset end ) -- if the player lost the mechanic effect... elseif changeType == EFFECT_RESULT_FADED then -- remove your icon from the formerly affected player OSI.RemoveMechanicIconForUnit( displayName ) end end end ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_ABILITY_ID, MECHANIC_ID ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_UNIT_TAG_PREFIX, "group" ) end )
function OSI.CreatePositionIcon( x, y, z, -- world coordinates texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.DiscardPositionIcon( icon -- position icon object )
/script OSI.PrintMyPosition()
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MY_ICON = nil EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_BOSSES_CHANGED, function() -- check is OdySupportIcons is active and supports world position icons if OSI and OSI.CreatePositionIcon then -- retrieve name of boss local boss = GetUnitName( "boss1" ) -- if we are in Sharpfangs (Deshaan) lair and... if boss and boss == "Sharpfang" then -- if no icon has been created yet... if not MY_ICON then -- create an icon 2.5m above the stone formation and make it bigger than other icons MY_ICON = OSI.CreatePositionIcon( 274367, 11022, 213871, -- world coordinates MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 2.5, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 2.5 + math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- texture, size, color, offset end ) end -- if we are somewhere else or Sharpfang is not around and... else -- if an icon has been created before... if MY_ICON then -- discard the icon OSI.DiscardPositionIcon( MY_ICON ) MY_ICON = nil end end end end ) end )
function OSI.AddCustomIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { "myaddonname/myiconpath/myicontexture-1.dds", "myaddonname/myiconpath/myicontexture-2.dds", "myaddonname/myiconpath/myicontexture-3.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports custom icon packs if OSI and OSI.AddCustomIconPack then -- add your list of icons OSI.AddCustomIconPack( MY_TEXTURES ) end end )
function OSI.AddUniqueIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { ["@SomePlayer"] = "myaddonname/myiconpath/myiconforsomeplayer.dds", ["@AnotherPlayer"] = "myaddonname/myiconpath/myiconforanotherplayer.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports unique icon packs if OSI and OSI.AddUniqueIconPack then -- add your list of icons OSI.AddUniqueIconPack( MY_TEXTURES ) end end )
File Name |
Version |
Size |
Uploader |
Date |
1.8.0 |
247kB |
ExoY |
02/05/23 03:48 AM |
|
1.7.0 |
247kB |
ExoY |
06/15/22 05:34 PM |
|
1.6.5 |
248kB |
ExoY |
07/13/21 12:45 PM |
|
1.6.4 |
248kB |
Odylon |
07/05/21 12:33 PM |
|
1.6.3 |
247kB |
Odylon |
06/29/21 12:19 PM |
|
1.6.2 |
246kB |
Odylon |
06/05/21 11:09 AM |
|
1.6.1 |
245kB |
Odylon |
05/22/21 09:51 AM |
|
1.6.0 |
244kB |
Odylon |
05/13/21 10:20 AM |
|
1.5.6 |
336kB |
Odylon |
04/10/21 01:02 AM |
|
1.5.5 |
312kB |
Odylon |
03/18/21 03:36 AM |
|
1.5.4 |
262kB |
Odylon |
01/03/21 04:06 AM |
|
1.5.3 |
245kB |
Odylon |
11/12/20 01:45 PM |
|
1.5.2 |
245kB |
Odylon |
11/09/20 11:34 AM |
|
1.5.1 |
245kB |
Odylon |
11/09/20 10:55 AM |
|
1.5.0 |
245kB |
11/09/20 03:08 AM |
![]() |
Comment Options |
Ketryellowynne |
View Public Profile |
Send a private message to Ketryellowynne |
Find More Posts by Ketryellowynne |
Add Ketryellowynne to Your Buddy List |
Sootica |
View Public Profile |
Send a private message to Sootica |
Find More Posts by Sootica |
Add Sootica to Your Buddy List |
DakJaniels |
View Public Profile |
Send a private message to DakJaniels |
Send email to DakJaniels |
Find More Posts by DakJaniels |
Add DakJaniels to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 1
Uploads: 0
|
Where did my custom icon go?
I just logged in this afternoon and I have three separate icons now, depending on what I am looking at. None of them are my custom icon. Why did this get changed and how do I get my custom icon back?
|
![]() |
![]() |
Mokona_Smiles |
View Public Profile |
Send a private message to Mokona_Smiles |
Send email to Mokona_Smiles |
Find More Posts by Mokona_Smiles |
Add Mokona_Smiles to Your Buddy List |
![]() |
||
Forum posts: 2
File comments: 42
Uploads: 0
|
EDIT .. UPDATE\FIX FOR OTHERS. This was definetly scaling, so use the CHAT UI scaling to increase chat scale, bit by bit until graphics work better. To fnd it .. Addon Settings -> OdySupportIcons --> Chat Window =--> Icon Size |
|
![]() |
![]() |
DruiD |
View Public Profile |
Send a private message to DruiD |
Send email to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 1
Uploads: 0
|
Lost custom icon
So i must have pissed someone off in pvp and my original userid in ESO was reported and i had to change it. After changing my userid i lost my custom icon. is there a way to recover it or do i have to do the whole process over again?
|
![]() |
![]() |
NativeFlu |
View Public Profile |
Send a private message to NativeFlu |
Send email to NativeFlu |
Find More Posts by NativeFlu |
Add NativeFlu to Your Buddy List |
![]() |
|
Forum posts: 2
File comments: 42
Uploads: 0
|
So hoping for some help with icons changing colour\effect with in Game UI interface scaling.
We created a guild icon pack and although we have seen recommended at 32x , we found 128 pixel looks much clearer and sharper in the game field. They work in the chat and roster and all that equally well and look great. One thing I notice, is when I adjust the UI scaling fairly low, icon in the chat text seem to loose some of their colour, if I then change the chat iconn scale under Ody Settings, and increase it- that can fix it sometimes. Is there any specifics colour or other settings in the creation of the icon that could cause some icon files to require this custom scaling adjustments to retain their look, whilst others just render fine? |
![]() |
![]() |
DruiD |
View Public Profile |
Send a private message to DruiD |
Send email to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
![]() |
|
![]() So I have never used this addon, until today. I logged in to the game and my companion, Sharp, had this huge annoying companion icon over his head. None of the other companions had it. I searched and found this addon and installed it and was able to make it go away, but my question is what other addons might have turned it on in the first place?
|
|
![]() |
![]() |
SteveCampsOut |
View Public Profile |
Send a private message to SteveCampsOut |
Send email to SteveCampsOut |
Find More Posts by SteveCampsOut |
Add SteveCampsOut to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 28
Uploads: 0
|
Custom Icon Size
Please let us adjust the icon size of all group icons, just like you let us adjust the size of the Group Leader Icon.
|
![]() |
![]() |
NoOneOfImportance |
View Public Profile |
Send a private message to NoOneOfImportance |
Send email to NoOneOfImportance |
Find More Posts by NoOneOfImportance |
Add NoOneOfImportance to Your Buddy List |
![]() |
|
Forum posts: 2
File comments: 42
Uploads: 0
|
Dread Sail Reef - Mound arrows
Hi, thought I possted already, but is Ody working correctly at the moment for the Dread Sail reef "arrows" for the rune dirt mounts?
I cant get it to work anymore, but I was sure Ody was doing it - obviously I also have Q'cells Dread Sail Reef helper etc too .. but neither seem to have a specific setting forr showing\disabling this dirt mount arrows. Added a forum thread here as well (with picture) https://www.esoui.com/forums/showthread.php?t=10658
Last edited by DruiD : 08/13/23 at 07:07 AM.
|
![]() |
![]() |
DruiD |
View Public Profile |
Send a private message to DruiD |
Send email to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
![]() |
||||
Re: Re: Re: Re: Re: 6/24 update
Please Read the addon description or comment section. The origin of the error is explained their including with ways to fix it. |
||||
![]() |
![]() |
ExoY |
View Public Profile |
Send a private message to ExoY |
Send email to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 3
Uploads: 0
|
Re: Re: Re: 6/24 update
I had the exact same error code and message BTW.
|
|
![]() |
![]() |
czlx_321 |
View Public Profile |
Send a private message to czlx_321 |
Send email to czlx_321 |
Find More Posts by czlx_321 |
Add czlx_321 to Your Buddy List |
![]() |
|||
Forum posts: 0
File comments: 3
Uploads: 0
|
Re: Re: Re: Re: 6/24 update
I have tried disabling everything but Ody's and Libaddonmenus and it was working fine.
I turn them back on, the error is back.
|
||
![]() |
![]() |
czlx_321 |
View Public Profile |
Send a private message to czlx_321 |
Send email to czlx_321 |
Find More Posts by czlx_321 |
Add czlx_321 to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 1
Uploads: 0
|
Hello. I haven't 3D banker icon above Factotum Property Steward.
|
![]() |
![]() |
Criotesak |
View Public Profile |
Send a private message to Criotesak |
Send email to Criotesak |
Find More Posts by Criotesak |
Add Criotesak to Your Buddy List |
![]() |
|||
|
Basically EACH addon can handle it (meanwhile) wrong. Here is a generic explanation how to fix such addons yourself: https://www.esoui.com/forums/showthread.php?t=9149 -> "If you see dependencies in subfolders (e.g. "libs") of addons" -> "If the addon is old and still uses "LibStub" (an obsolete library for versioning)"
Last edited by Baertram : 06/25/23 at 03:33 PM.
|
||
![]() |
![]() |
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
![]() |