Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portraits: Misc changes #338

Merged
merged 3 commits into from
Mar 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions elements/portraits.lua → elements/portrait.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ local function Update(self, event, unit)
if(not UnitExists(unit) or not UnitIsConnected(unit) or not UnitIsVisible(unit)) then
element:SetCamDistanceScale(0.25)
element:SetPortraitZoom(0)
element:SetPosition(0,0,0.5)
element:SetPosition(0, 0, 0.5)
element:ClearModel()
element:SetModel([[Interface\Buttons\\TalkToMeQuestionMark.m2]])
element:SetModel([[Interface\Buttons\TalkToMeQuestionMark.m2]])
element.guid = nil
elseif(element.guid ~= guid or event == 'UNIT_MODEL_CHANGED') then
element:SetCamDistanceScale(1)
element:SetPortraitZoom(1)
element:SetPosition(0,0,0)
element:SetPosition(0, 0, 0)
element:ClearModel()
element:SetUnit(unit)
element.guid = guid
Expand Down
2 changes: 1 addition & 1 deletion oUF.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Script file="elements\combatindicator.lua" />
<Script file="elements\restingindicator.lua" />
<Script file="elements\pvpindicator.lua" />
<Script file="elements\portraits.lua" />
<Script file="elements\portrait.lua" />
<Script file="elements\range.lua" />
<Script file="elements\castbar.lua" />
<Script file="elements\threatindicator.lua" />
Expand Down