Skip to content

Commit

Permalink
Fix online profile player rating label positions
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Feb 10, 2018
1 parent baa36c0 commit 45c8722
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,24 +567,24 @@ local function littlebits(i)
end,
LoadFont("Common Large") .. {
InitCommand=function(self)
self:y(22*i):halign(0):zoom(0.5):diffuse(getMainColor('positive'))
self:y(22*i):maxwidth(170*2):halign(0):zoom(0.5):diffuse(getMainColor('positive'))
end,
SetCommand=function(self)
self:settext(ms.SkillSets[i]..":")
end
},
LoadFont("Common Large") .. {
InitCommand=function(self)
self:xy(240,22*i):halign(1):zoom(0.5)
self:xy(170,22*i):halign(0):zoom(0.5)
end,
SetCommand=function(self)
local rating = 0
if not showOnline then
rating = profile:GetPlayerSkillsetRating(ms.SkillSets[i])
self:settextf("%5.2f",rating):x(240)
self:settextf("%5.2f",rating)
else
rating = DLMAN:GetSkillsetRating(ms.SkillSets[i])
self:settextf("%5.2f(#%i)",rating, DLMAN:GetSkillsetRank(ms.SkillSets[i])):x(270)
self:settextf("%5.2f(#%i)",rating, DLMAN:GetSkillsetRank(ms.SkillSets[i]))
end
self:diffuse(ByMSD(rating))
end,
Expand Down

0 comments on commit 45c8722

Please sign in to comment.