3 Commits

2 changed files with 14 additions and 7 deletions

View File

@ -204,7 +204,7 @@ local function drawGamemode(v)
end
if m & F_SPBEXP then
local invp = v.cachePatch("K_ITINV"..(leveltime / 6 % 7 + 1))
local invp = v.cachePatch("K_ITINV"..(leveltime / 3 % 7 + 1))
v.drawScaled(
modeX * FRACUNIT - scaledHalf + xoff,
modeY * FRACUNIT - scaledHalf,
@ -259,7 +259,7 @@ local function drawFlags(v, x, y, flags)
nx = $ + margin
end
if flags & F_SPBEXP then
local invp = v.cachePatch("K_ISINV"..(leveltime / 6 % 6 + 1))
local invp = v.cachePatch("K_ISINV"..(leveltime / 3 % 6 + 1))
v.drawScaled(nx, ny, scale, invp)
nx = $ + margin
end
@ -304,7 +304,7 @@ local colorFlags = {
[0] = V_SKYMAP,
[1] = 0
}
local function drawScore(v, i, pos, score)
local function drawScore(v, i, pos, score, highlight)
local y = scoresY + i * 18
local textFlag = colorFlags[pos%2]
@ -316,6 +316,13 @@ local function drawScore(v, i, pos, score)
local facerank = skin and v.cachePatch(skin.facerank) or v.cachePatch("M_NORANK")
v.draw(column[1], y, facerank, 0, v.getColormap("sonic", score["color"]))
-- chili
if highlight then
local chilip = v.cachePatch("K_CHILI"..leveltime/4%8+1)
v.draw(column[1], y, chilip)
textFlag = V_YELLOWMAP
end
-- stats
drawStats(v, column[1], y, score["skin"], score["stat"])
-- name
@ -326,7 +333,7 @@ local function drawScore(v, i, pos, score)
drawFlags(v, column[4], y, score["flags"])
end
local function drawBrowser(v)
local function drawBrowser(v, player)
if not leaderboard then return end
v.fadeScreen(0xFF00, 16)
@ -358,7 +365,7 @@ local function drawBrowser(v)
scrollPos = max(min(scrollPos, scores - 3), 1)
local endi = min(scrollPos + 7, scores)
for i = scrollPos, endi do
drawScore(v, i - scrollPos + 1, i, scoreTable[i])
drawScore(v, i - scrollPos + 1, i, scoreTable[i], scoreTable[i].name == player.name)
end
end
rawset(_G, "DrawBrowser", drawBrowser)

View File

@ -863,7 +863,7 @@ local modePatches = {
local function modePatch(flag)
if flag == F_SPBEXP then
return PATCH[modePatches[flag]][(leveltime / 4) % 6]
return PATCH[modePatches[flag]][(leveltime / 3) % 6]
end
return PATCH[modePatches[flag]]
end
@ -1122,7 +1122,7 @@ local function drawScrollTo(v, player, scoreTable, gui)
end
local function drawBrowser(v, player)
DrawBrowser(v, lb)
DrawBrowser(v, player)
end
local stateFunctions = {