Skip to content

Commit

Permalink
Add a disabled wifeversion display for chart leaderboards
Browse files Browse the repository at this point in the history
this isnt very reliable but here is how it would get used
  • Loading branch information
poco0317 committed Dec 19, 2020
1 parent f874651 commit 237fc9b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Themes/Til Death/BGAnimations/superscoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,31 @@ local function makeScoreDisplay(i)
self:visible(true):addy(-row2yoff)
end
},

--[[ --wife version display ... not 100% reliable
LoadFont("Common normal") ..
{
Name = "WifeVers" .. i,
InitCommand = function(self)
if not collapsed then
self:x(capWideScale(c3x + 52, c3x)):zoom(tzoom - 0.25):halign(1):valign(0.5):maxwidth(width / 2 / tzoom):diffuse(getMainColor("negative")):addy(-pdh/4)
end
end,
DisplayCommand = function(self)
if hs:GetWifeVers() ~= 3 then
self:settextf("W2/XML", hs:GetWifeVers())
else
self:settext("")
end
end,
CollapseCommand = function(self)
self:visible(false)
end,
ExpandCommand = function(self)
self:visible(true)
end
},
]]
LoadFont("Common normal") ..
{
Name = "Replay" .. i,
Expand Down

0 comments on commit 237fc9b

Please sign in to comment.