Go to Page... |
Compatibility: | Necrom (9.0.0) |
Updated: | 06/23/23 05:22 PM |
Created: | 11/09/20 03:08 AM |
Monthly downloads: | 4,895 |
Total downloads: | 257,790 |
Favorites: | 174 |
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 |
Masteroshi430 |
View Public Profile |
Send a private message to Masteroshi430 |
Find More Posts by Masteroshi430 |
Add Masteroshi430 to Your Buddy List |
Attizh |
View Public Profile |
Send a private message to Attizh |
Find More Posts by Attizh |
Add Attizh to Your Buddy List |
CurseOfWar |
View Public Profile |
Send a private message to CurseOfWar |
Find More Posts by CurseOfWar |
Add CurseOfWar to Your Buddy List |
07/09/22, 05:12 PM | |
Forum posts: 0
File comments: 16
Uploads: 0
|
This add on is a must for pvp. When someone in the party calls for help, a quick glance at the minimap shows exactly where each member is. As opposed to having to open the world map and hovering over every icon until the you find the right person. Seconds are vital in pvp.
I do have a couple of requests though. Is it possible to have some plainer icons? For example exactly the same chevron as is already in the game, but just different colours? Secondly, is it possible to have the option to remove the visible icon above characters heads? I personally only use the icons for the minimap benefit, but don't need the icon to distinguish between each person on my screen in front of me. I currently have it set it the highest transparency and as small as it can go, which makes it almost entirely invisible. But an option to turn it off would be appreciated. Thanks for the great add on though!! Love your work. |
|
Zenapop |
View Public Profile |
Send a private message to Zenapop |
Find More Posts by Zenapop |
Add Zenapop to Your Buddy List |
07/01/22, 02:38 AM | |||
It sounds like the problem could be an old imbedded Lib with open glaza. There are also a number of other addons doing the exact same thing as open glaza in terms of functionality, you can also try one of them. |
|||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
06/30/22, 03:10 PM | ||
Forum posts: 0
File comments: 2
Uploads: 0
|
I can not select custom icon to player in guild(or party) list when addon OpenGlaza ( https://www.esoui.com/downloads/info...Assistant.html ) enabled. I can not disable it at all - this addon is very usefull. When OpenGlaza enabled, in custom icon select list there is no result when I'm tryind click to any icon in dropdown list.
Last edited by KYCb : 06/30/22 at 03:17 PM.
|
|
|
KYCb |
View Public Profile |
Send a private message to KYCb |
Find More Posts by KYCb |
Add KYCb to Your Buddy List |
06/25/22, 04:53 PM | |||
Can you guys please deactivate all other addon except libs required by this addon and let me know if the problem persists? (Everything is working fine for me and I can assign custom icons, so there might be another addon interfering) |
|||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
06/25/22, 04:37 PM | ||
Forum posts: 0
File comments: 3
Uploads: 0
|
|
|
|
fntzy |
View Public Profile |
Send a private message to fntzy |
Find More Posts by fntzy |
Add fntzy to Your Buddy List |
06/24/22, 10:40 AM | |
Forum posts: 0
File comments: 8
Uploads: 0
|
Hi guys,
this is the gorgerous addon ever! I love it! Thanks so much for it. Since a few weeks I got the problem that I can't change icons in the group. What can I do. I see the icons but when i click on it nothing works. I can only give everybody a donut (first icon) Please any idea? |
|
Paulchen0711 |
View Public Profile |
Send a private message to Paulchen0711 |
Find More Posts by Paulchen0711 |
Add Paulchen0711 to Your Buddy List |
06/16/22, 09:33 AM | |||
|
Re: Re: Custom Icon Packs?
|
||
|
def venom |
View Public Profile |
Send a private message to def venom |
Send email to def venom |
Find More Posts by def venom |
Add def venom to Your Buddy List |
06/16/22, 02:03 AM | ||
Re: Custom Icon Packs?
Try using "AddCustomIconPack" instead of unique icon pack. Custom icons are some you can just select, which is what you are locking for I believe. Unique Icons are player specific icons and also require the players displayname (account name with the @) |
||
|
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 |
06/15/22, 11:59 PM | ||||
Re: Re: Re: High Isle Update?
|
||||
|
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 |
06/15/22, 08:24 PM | |||
Forum posts: 0
File comments: 39
Uploads: 0
|
Re: Re: High Isle Update?
|
||
|
zathmmo |
View Public Profile |
Send a private message to zathmmo |
Send email to zathmmo |
Find More Posts by zathmmo |
Add zathmmo to Your Buddy List |
06/15/22, 08:16 PM | ||
Forum posts: 0
File comments: 39
Uploads: 0
|
Re: High Isle Update?
|
|
|
zathmmo |
View Public Profile |
Send a private message to zathmmo |
Send email to zathmmo |
Find More Posts by zathmmo |
Add zathmmo to Your Buddy List |
06/15/22, 05:40 PM | |
|
Custom Icon Packs?
I'm trying to make a custom icon pack to upload as an addon, and I'm not sure what I'm doing wrong. The icons don't show up in the Change Custom Icons > Texture option.
I have my folder, "DefsMemeIcons", placed in the AddOns folder. Inside is the .txt and .lua with the same name, and the "icons" folder with all the icons. I also tried putting it in the OdySupportIcons folder. .txt Code:
; This Add-on is not created by, affiliated with or sponsored by ZeniMax Media ; Inc. or its affiliates. The Elder Scrolls and related logos are registered ; trademarks or trademarks of ZeniMax Media Inc. in the United States and/or ; other countries. All rights reserved. ; https://account.elderscrollsonline.com/add-on-terms ## Title: Def's Meme Icons ## APIVersion: 101034 ## IsLibrary: false ## DependsOn: OdySupportIcons DefsMemeIcons.lua Code:
local ADDON_NAME = "DefsMemeIcons" local MY_TEXTURES = { "DefsMemeIcons/icons/sam.dds", "DefsMemeIcons/icons/santa.dds", "DefsMemeIcons/icons/princess.dds", "DefsMemeIcons/icons/dag.dds", "DefsMemeIcons/icons/gary.dds", "DefsMemeIcons/icons/garyfr.dds", "DefsMemeIcons/icons/shh.dds", "DefsMemeIcons/icons/spongebruh.dds", "DefsMemeIcons/icons/teef.dds", "DefsMemeIcons/icons/sweat.dds", "DefsMemeIcons/icons/pika.dds", "DefsMemeIcons/icons/spongewhat.dds", "DefsMemeIcons/icons/pepescam.dds", "DefsMemeIcons/icons/rip.dds", "DefsMemeIcons/icons/pepepray.dds", "DefsMemeIcons/icons/pepewake.dds", "DefsMemeIcons/icons/poohwtf.dds", "DefsMemeIcons/icons/poopblush.dds", "DefsMemeIcons/icons/poopsmirk.dds", "DefsMemeIcons/icons/sally.dds", "DefsMemeIcons/icons/pug.dds", "DefsMemeIcons/icons/pepephone.dds", "DefsMemeIcons/icons/pepenote.dds", "DefsMemeIcons/icons/pepelook.dds", "DefsMemeIcons/icons/pepeknife.dds", "DefsMemeIcons/icons/pepegrin.dds", "DefsMemeIcons/icons/ohno.dds", "DefsMemeIcons/icons/nyanya.dds", "DefsMemeIcons/icons/nootlikethis.dds", "DefsMemeIcons/icons/nobitches.dds", "DefsMemeIcons/icons/mrbubz.dds", "DefsMemeIcons/icons/monkathink.dds", "DefsMemeIcons/icons/hamster.dds", "DefsMemeIcons/icons/froggers.dds", "DefsMemeIcons/icons/frogfaint.dds", "DefsMemeIcons/icons/frogblush.dds", "DefsMemeIcons/icons/end.dds", "DefsMemeIcons/icons/cry.dds", "DefsMemeIcons/icons/concern.dds", "DefsMemeIcons/icons/catwink.dds", "DefsMemeIcons/icons/catsmile.dds", "DefsMemeIcons/icons/catsalad.dds", "DefsMemeIcons/icons/catgun.dds", "DefsMemeIcons/icons/catgrumpy.dds", "DefsMemeIcons/icons/catfurjoy.dds", "DefsMemeIcons/icons/catbutt.dds", "DefsMemeIcons/icons/catangry.dds", "DefsMemeIcons/icons/ahegao.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 ) |
|
def venom |
View Public Profile |
Send a private message to def venom |
Send email to def venom |
Find More Posts by def venom |
Add def venom to Your Buddy List |