47 lines
1.5 KiB
Lua
47 lines
1.5 KiB
Lua
local Dim = require("common.dimensions")
|
|
|
|
local desw,desh = Dim.design.width,Dim.design.height
|
|
|
|
|
|
lobbypanelY = 376;
|
|
|
|
local LobbySelect = gfx.CreateSkinImage("nautica/lobby_select_color.png", 1);
|
|
local Info = gfx.CreateSkinImage("nautica/info.png", 1)
|
|
local Dot = gfx.CreateSkinImage("nautica/dot.png", 1);
|
|
|
|
--Draw the Downloadwheel
|
|
local DrawPanel = function()
|
|
if screenState ~= "roomList" then --nautica
|
|
|
|
local jw,jh = gfx.ImageSize(LobbySelect);
|
|
|
|
gfx.BeginPath();
|
|
gfx.ImageRect(lobbypanelX,lobbypanelY, jw/1.17, jh/1.17, LobbySelect,1,0);
|
|
|
|
gfx.BeginPath()
|
|
local jw,jh = gfx.ImageSize(Info);
|
|
gfx.BeginPath();
|
|
gfx.ImageRect(40+(desw/2), 530+(desh/2), jw, jh, Info,1,0);
|
|
|
|
for i = 1, 3, 1 do
|
|
gfx.TextAlign(gfx.TEXT_ALIGN_RIGHT + gfx.TEXT_ALIGN_MIDDLE)
|
|
gfx.BeginPath()
|
|
|
|
gfx.FontSize(30)
|
|
if i == 1 then
|
|
gfx.FillColor(255,9,253)
|
|
gfx.Text(string.upper("Not Downloaded"),desw-30, 14+680+desh/2-(40*i))
|
|
elseif i == 2 then
|
|
gfx.FillColor(240,246,0)
|
|
gfx.Text(string.upper("Downloaded"),desw-30, 14+680+desh/2-(40*i))
|
|
elseif i == 3 then
|
|
gfx.FillColor(0,246,2)
|
|
gfx.Text(string.upper("Preview Playing"),desw-30, 14+680+desh/2-(40*i))
|
|
end
|
|
gfx.FillColor(255,255,255)
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
return {draw = DrawPanel} |