Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(12 Kb)
Download
Updated: 10-29-14 11:04 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.3)
Updated:10-29-14 11:04 PM
Created:unknown
Downloads:77,412
Favorites:233
MD5:
Categories:Graphic UI Mods, Unit Mods
6.0.3

Adapt - Almost-Default Animated Portraits  Popular! (More than 5000 hits)

Version: 2.0.14
by: Gello [More]

This small addon animates the unit frames of (nearly) any UI.

When the UI goes to draw a static portrait, this addon instead draws an animated model to the dimensions of the intended portrait.

Adapt is meant to be configuration-free (especially if you use the default unit frames), but there are some options you can change in the Interface Options Panel.

__ FAQ __

Q: Will it work with my custom unit frames?
A: If your existing unit frames are static portraits and not models already, yes it should. The universal approach this addon takes will attempt to convert any 2d portrait texture into a 3d model (if it's bigger than 30 pixels). However, if Adapt already came with the unit frame addon or UI compilation you use, you may need to get an updated version of that addon/compilation if it made any tweaks to portraits/Adapt.

Q: It's not working or there's a bug.
A: I'd love to hear about it in the comments. Please mention what Unit Frame addon or UI compilation you use.

Q: I use circular unit frames (like default), but when I look closely the model cut off as a square! Can the model be fit into a true circle?
A: Sadly, it can't. Addons have no genuine way to mask models. For circular unit frames the model is shrunk to fit within the circle. There's not a lot of wiggle room to create a universal overlay to trim the corners but it is something being investigated.

Q: What's an "anonymous portrait"?
A: When this addon was first written in 2006 over seven years ago, practically everyone named all their textures(portraits). Nowadays it's more common for textures to go unnamed as a courtesy to the UI ecosystem. For anonymous portraits you can only turn them all on or off, unlike named portraits which you can selectively disable.

Q: I want to disable my default focus frame from animating, but I don't see it in the options list.
A: The list in options is only of portraits it's encountered in that session (and those already disabled). Adapt has no awareness of what frames it will be asked to draw until it encounters them. So in this case you can /focus yourself and then when you go back into options the focus frame should be listed so you can disable it.

2.0.14 10/30/14 fix for frames being removed from blacklist staying on blacklist
2.0.13 10/29/14 fix for achievement comparison portrait
2.0.12 10/14/14 toc update for 6.0 patch
2.0.11 4/9/14 torso portrait option
2.0.10 10/27/13 fix for blacklisted portraits belonging to an addon that later gets disabled
2.0.9 09/11/13 toc update for 5.4 patch
2.0.8 05/21/13 toc update for 5.3 patch
2.0.7 04/04/13 added blacklist cache, removed debug code
2.0.6 03/30/13 rewrite
- portraits indexed by the texture itself, not the texture name
- instead of a frame with back and model drawn off it, back and model drawn straight to parent of original texture.
- useParentLevel inherited by models
- setCamera replaced with SetPortraitZoom
- instead of reacting to every SetPortraitTexture, a SetUnit done only if the GUID changed. At the same time, if a UNIT_MODEL_CHANGED happens, every portrait of that unit will be updated at a lower priority update.
- rebuilt options frame
1.92 08/28/12 fixed _ tainting
1.91 08/27/12 5.0 (Mists of Pandaria) update
1.9 09/02/10 4.0 (Cataclysm) support, TargetFrameToTPortrait defaulted DontUse
1.82 10/08/08 scroll fix, /adapt goes to options panel
1.81 08/08/08 updated for WotLK (toc, this->self)
1.8 04/12/08 moved options to new interface options, added full model option
1.71 01/12/07 fixed initialization
1.7 01/11/07 fixed taint issue with default ToT
1.6 10/04/06 edits for lua 5.1
1.5 08/21/06 changed DressUpModel to PlayerModel, moved SetCamera OnUpdate to OnShow
1.4 06/22/06 disabled mouse on portraits, added known frames to /adapt list
1.3 06/11/06 /adapt animate/unanimate options, visibility fix by Lafiell, attempt at more flexibility with frameStrata
1.2 04/01/06 slash options added for circle/square portraits and background
1.0 03/19/06 initial release
Optional Files (0)


Archived Files (12)
File Name
Version
Size
Author
Date
2.0.13
12kB
Gello
10-29-14 09:53 AM
2.0.12
12kB
Gello
10-14-14 06:28 AM
2.0.11
12kB
Gello
04-09-14 07:31 PM
2.0.10
10kB
Gello
10-27-13 03:21 PM
2.0.9
10kB
Gello
09-11-13 10:12 AM
2.0.8
10kB
Gello
05-21-13 11:18 AM
2.0.7
10kB
Gello
04-04-13 11:32 AM
2.0.6
10kB
Gello
03-29-13 11:24 PM
1.92
12kB
Gello
08-28-12 04:36 PM
1.91
12kB
Gello
08-27-12 08:34 PM
1.9
12kB
Gello
01-30-12 06:53 AM
1.82
10kB
Gello
10-14-08 04:43 AM


Post A Reply Comment Options
Unread 04-13-08, 05:11 AM  
chimorra
A Murloc Raider
 
chimorra's Avatar

Forum posts: 5
File comments: 17
Uploads: 0
Thanks alot

Thanks alot for this i think this is the best unit frame addon ever simple and easy keep it up
chimorra is offline Report comment to moderator  
Reply With Quote
Unread 04-13-08, 02:25 AM  
IRID1UM
A Deviate Faerie Dragon
 
IRID1UM's Avatar

Forum posts: 12
File comments: 92
Uploads: 0
thanks for updating!
IRID1UM is offline Report comment to moderator  
Reply With Quote
Unread 09-04-07, 02:39 AM  
Kahoona
A Fallenroot Satyr

Forum posts: 25
File comments: 7
Uploads: 0
For some reason the model animations skip around when using the Target of Target in CT Unitframes.
Kahoona is offline Report comment to moderator  
Reply With Quote
Unread 04-24-07, 05:31 AM  
Lombra
A Cobalt Mageweaver
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 270
Uploads: 25
Confirmed.

However, there is apparently this new function
* NEW - Frame:HookScript("name", function) - Exactly equivalent to hooksecurefunc(), but usable with frame script handlers. (Note that like hooksecurefunc(), this is not intended as a general hooking replacement, but to allow hooking of secure frame handlers.)
dunno if it can solve this anyhow, I tried replacing that hooksecurefunc() line with this

AdaptFrame:HookScript("SetPortraitTexture", Adapt.newSetPortraitTexture)

but is just said AdaptFrame has no SetPortraitTexture function. If anyone with some more knowledge would look into it
__________________
Grab your sword and fight the Horde!
Lombra is offline Report comment to moderator  
Reply With Quote
Unread 04-18-07, 08:13 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1192
File comments: 780
Uploads: 82
Adapt 1.7.1 crashes the PTR 2.1.0 client (on loading).

Only happens after the 1st ptr patch: client build 6592 (and onward?)
PTR 0.1.0.6577 = Adapt works fine.
PTR 0.1.0.6592 = client crashes.
Tested with Adapt loaded only (no other addons).
And adding Adapt to other addons.
WoW client crashes with a "fatal exception" error at the end of the loading progress bar.

Edit: Followup.
1. comment out hooksecurefunc("SetPortraitTexture",Adapt.newSetPortraitTexture)
2. enter world normally.
3. alt-tab, edit the hook back in.
4. ReloadUI.
Adapt works ok... (?)
Edit: Followup #2.
Changing this:RegisterEvent("PLAYER_LOGIN") to
this:RegisterEvent("PLAYER_ENTERING_WORLD")
and moving hooksecurefunc("SetPortraitTexture",Adapt.newSetPortraitTexture)
from .OnLoad() to .OnEvent() stops the client crashing and Adapt seems to be working but still occasionally causes "fatal exception" type errors to the client.

This is obviously not a bug report, Adapt works great on the current Live Realms.
Just a little advance notice for the future
Last edited by Dridzt : 04-21-07 at 06:01 AM.
Dridzt is offline Report comment to moderator  
Reply With Quote
Unread 04-01-07, 05:28 AM  
Sok
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I play an Undead male a lot and i have noticed that half of his face is cut off in the potrait. I think this has some thing to do with how the undead slouch over instead of standing up straight. Am I the only one having this problem? Or is any one else having it? If I can fix it how do i do that? (may be changing the coordinates for the undead model to the left some more?)
Last edited by Sok : 04-03-07 at 05:55 AM.
Sok is offline Report comment to moderator  
Reply With Quote
Unread 11-14-06, 05:49 AM  
Kuri
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
can u help me pls

pls what addon i need for complete working adapt? CT_UNIT FRAMES or?
I try Adapt without any addon and my portrait havent texture :-(

I only want animated portraits..


tnx for any help
am new here
Last edited by Kuri : 11-14-06 at 06:02 AM.
Kuri is offline Report comment to moderator  
Reply With Quote
Unread 08-31-06, 07:28 AM  
Poena
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Wow... what a great little mod here

I LOVE having the animated textures in the windows... although targetoftarget is a little annoying with the constant resets (I'm guessing the ui tests every couple of seconds to see what your target is targeting, hence refreshing the window and causing the "stutter")

I used the /adapt list command though, and disabled that frame - viola! Perfect!!

Thanks again Gello... really love this
Last edited by Poena : 08-31-06 at 08:05 AM.
Poena is offline Report comment to moderator  
Reply With Quote
Unread 08-27-06, 05:25 PM  
Kabuto-eu
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
The offset for the portrait on the Blizzard built in 'ready check' is incorrect. Sometimes. Trying to track down what causes it.
Last edited by Kabuto-eu : 08-28-06 at 04:12 AM.
Kabuto-eu is online now Report comment to moderator  
Reply With Quote
Unread 08-24-06, 01:38 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 444
File comments: 348
Uploads: 100
Oops yeah I can see the : being a problem. In retrospect the name of this mod is ridiculously long. I should probably just shorten it to 'Adapt'

On the GUI, if/when it's made it would include options for background. My secret wish is for some more camera position controls that can run off SetCamera(0). Then a GUI would definitely be useful. Unfortunately I'm far from bored lately, especially this past month, but we'll see. I enjoy writing GUIs.
Gello is offline Report comment to moderator  
Reply With Quote
Unread 08-23-06, 11:31 PM  
Naiji
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
If you get bored or something, you could make a GUI. I don't see it being important at the moment, however.

I was wondering if you could possibly add the option of having a black background along with the class-based colors and no background options. Either that or perhaps some sort of brightness adjustment on the colors.

Thanks for keeping this going!
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 08-23-06, 05:43 PM  
DSanai
A Wyrmkin Dreamwalker
 
DSanai's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 111
Uploads: 8
Note: The colon in the filename here breaks several links on the site to get to this page. I had to manually construct the URL to get to it. Consider changing it to a hyphen.
__________________
Dsanai - nElf Hunter
Glacialfox - nElf Death Knight
Evilianti - Gnome Warlock
DSanai is offline Report comment to moderator  
Reply With Quote
Unread 06-22-06, 05:48 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 444
File comments: 348
Uploads: 100
I was making an elaborate GUI but decided to scrap it. This is hopefully set up once and forgotten. In 1.4, /adapt list will shown frames that are not animated as well as frames it's been asked to animate that session.

If there's real demand for a GUI let me know.
Last edited by Gello : 06-22-06 at 05:49 PM.
Gello is offline Report comment to moderator  
Reply With Quote
Unread 06-21-06, 08:16 AM  
bobllama
A Defias Bandit

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by Gello
I was going to add a small GUI to configure since lists and slash commands don't work well, but if one doesn't happen by this weekend I'll post what I have.
I appreciate it.
bobllama is offline Report comment to moderator  
Reply With Quote
Unread 06-20-06, 07:49 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 444
File comments: 348
Uploads: 100
I don't know how to explain this well, but I can't list frames for you. Do you use default unit frames? Every portrait has its own unique name. Discord can't use the default UI's names, CTMod has its own names, Perl has its own, etc, etc.

The mod won't have a built-in list either. This mod sits between the UI and mods, intercepting requests and then changing texture requests to model requests.

Think of it as being a postal worker going into work and then answering "who's getting what mail today?" You don't know until the stuff is sorted out.

I was going to add a small GUI to configure since lists and slash commands don't work well, but if one doesn't happen by this weekend I'll post what I have.
Gello is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: