View Single Post
09-20-10, 08:16 AM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Thanks, that 3D model tip is awesome.

I will gather them up:

Code:
summer pet:       modelviewer.show({ type: 1, typeid: 16701, displayid: 16587 })
wisp:             modelviewer.show({ type: 1, typeid: 3681, displayid: 10045 })
forrest wisp:     modelviewer.show({ type: 1, typeid: 15624, displayid: 12432 })
ancient wisp:     modelviewer.show({ type: 1, typeid: 17946, displayid: 17607 })
electromental:    modelviewer.show({ type: 1, typeid: 21729, displayid: 20594 })
shen'dralar wisp: modelviewer.show({ type: 1, typeid: 14361, displayid: 10045 })
restless soul:    modelviewer.show({ type: 1, typeid: 11122, displayid: 1825 })
night elf wisp:   modelviewer.show({ type: 1, typeid: 20069, displayid: 19304 })
Will be interesting to see if they all look the same. On screenshots they differ but that may be another story.

*edit*

It is finally working!

Code:
 local addon = CreateFrame("Frame", nil, UIParent)
 
  addon:RegisterEvent("PLAYER_LOGIN")
  
  addon:SetScript("OnEvent", function (s,e,...)
    if(e=="PLAYER_LOGIN") then
      addon:initme()
    end 
  end)

  local displayid = {}
  displayid[1] = 16587;
  displayid[2] = 10045;
  displayid[3] = 12432;
  displayid[4] = 17607;
  displayid[5] = 20594;
  displayid[6] = 10045;
  displayid[7] = 1825;
  displayid[8] = 19304;

  function addon:initme()
    local m2 = CreateFrame("PlayerModel", "TestaniModel2",UIParent)
    m2:SetSize(256,256)
    m2:SetPoint("CENTER",256,0)
    m2:SetFacing(math.pi); --math.pi = 180° 
    m2:SetDisplayInfo(displayid[1])
  end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-20-10 at 10:19 AM.
  Reply With Quote