PlayerModel:SetDisplayInfo
Hello.
I'm testing PlayerModel:SetDisplayInfo and it seems it doesn't show the model any longer if you haven't seen the npc before. Once it's in your cache it does work as expected. Is there any new method to achieve this? Thanks |
SetDisplayInfo was added specifically to display models without requiring them to be cached; what code are you using to test this?
|
Quote:
Hello, I was just playing with the next code: Code:
myFrame:modelFrame = _G.CreateFrame("PlayerModel", "mxpplayermodel", myFrame) It didn't work before, but after restarting the game it started working. I've used different IDs and it seems to work only sometimes, perhaps it's a little bit buggy right now? False alarm though :) |
I doubt it's bugged, you probably just aren't displaying your frame correctly. The model needs a height, a width, an anchor, and a visible parent to be shown.
You only have a height listed there, no anchor and we can't tell what condition "myFrame" is in. If you open your character pane you can just type /run CharacterModelFrame:SetDisplayInfo(26711) to test whether the function is actually functioning. |
Assuming a copy & paste, your first line has a typo. You have a : where instead you should have a . like your other lines.
|
It might actually be bugged. I have a PlayerModel frame just for some extra effect, and if I assign the points to match the parent on creation it doesn't seem to show the model frame. Assigning the points in the show script of the parent shows the model, but I'm not entirely sure why this is happening.
Lua Code:
|
I installed my model viewer just now. Need to fix some stuff but my murloc is showing fine.
My problem is that self:GetModel() does not work. Seems to be removed. Uploaded the model viewer for Legion beta. http://www.wowinterface.com/download...delViewer.html |
How can you get the model path then?
|
Quote:
|
Quote:
|
Why you need path?
|
Quote:
It's like removing GetTexture(). |
I also have some other questions about other model functions. Why do the models look so blurry on the beta? Also what changed with SetLight()? Seems like the parameters did'nt changes however the same code which runs flawlessly on live drops an error in the beta.
|
Quote:
|
Quote:
|
Quote:
Lua Code:
Which kills the ability to categorize/use/select multi textured models. |
Looks from another link that getModel is now GetModelAlpha?
|
Quote:
|
Quote:
https://www.diffchecker.com/il1di4ac playermodel, methods, getmodel is now mapped to getModelAlpha. Doesn't make sense but neither does half the changes they are making. |
Quote:
|
All times are GMT -6. The time now is 09:57 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI