Add level selector / leaderboard browser #7
@ -30,7 +30,8 @@ local scoresY = ttlY + 16
|
|||||||
local function drawMapPatch(v, offset)
|
local function drawMapPatch(v, offset)
|
||||||
local scale = FRACUNIT / (abs(offset) + scalar)
|
local scale = FRACUNIT / (abs(offset) + scalar)
|
||||||
local mapName = G_BuildMapName(getMap(offset))
|
local mapName = G_BuildMapName(getMap(offset))
|
||||||
local mapp = v.cachePatch(mapName.."P")
|
local patchName = mapName.."P"
|
||||||
|
local mapp = v.patchExists(patchName) and v.cachePatch(patchName) or v.cachePatch("BLANKLVL")
|
||||||
|
|
||||||
local scaledWidth = FixedMul(mapp.width, scale)
|
local scaledWidth = FixedMul(mapp.width, scale)
|
||||||
local scaledHeight = FixedMul(mapp.height, scale)
|
local scaledHeight = FixedMul(mapp.height, scale)
|
||||||
@ -322,8 +323,6 @@ local function drawBrowser(v, leaderboard)
|
|||||||
for i = scrollPos, endi do
|
for i = scrollPos, endi do
|
||||||
drawScore(v, i - scrollPos + 1, i, scoreTable[i])
|
drawScore(v, i - scrollPos + 1, i, scoreTable[i])
|
||||||
end
|
end
|
||||||
v.drawString(0,0,scrollPos)
|
|
||||||
v.drawString(0,10,endi)
|
|
||||||
end
|
end
|
||||||
rawset(_G, "DrawBrowser", drawBrowser)
|
rawset(_G, "DrawBrowser", drawBrowser)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user