Skip to content

Commit

Permalink
portraits: Misc changes (#338)
Browse files Browse the repository at this point in the history
* portraits: Fix path to default model

* portraits: Linting is nice

* portraits: Rename file to 'portrait' for concistency
  • Loading branch information
p3lim committed Mar 10, 2017
1 parent ef66247 commit 2d4d129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 2d4d129

Please sign in to comment.