local Dim = require("common.dimensions") local desw,desh = Dim.design.width,Dim.design.height lobbypanelX = 0; lobbypanelY = (1080/2.5)-56; local l_color = gfx.CreateSkinImage("multi/roomselect/lobby_select_color.png", 1); local l_load = gfx.CreateSkinImage("multi/roomselect/lobby_not_loaded.png",1) local n_play_dot = gfx.CreateSkinImage("multi/roomselect/nautica/nautica_pl_dot.png",1); local station = "" local getpanel = function() if screenState == "roomList" then --multi station = "Multi Station" local jw,jh = gfx.ImageSize(l_color); -- gfx.BeginPath(); -- gfx.ImageRect(lobbypanelX, lobbypanelY, jw, jh, l_base_panel,1,0); gfx.BeginPath(); gfx.ImageRect(lobbypanelX, lobbypanelY, jw/1.17, jh*1.18, l_color,1,0); -- gfx.BeginPath(); -- gfx.ImageRect(lobbypanelX, lobbypanelY, jw, jh, l_grad,1,0); gfx.BeginPath(); gfx.FontSize(36) gfx.TextAlign(gfx.TEXT_ALIGN_CENTER, gfx.TEXT_ALIGN_CENTER) gfx.LoadSkinFont("Digital-Serial-Bold.ttf"); gfx.FillColor(243,217,175,255) gfx.Fill() gfx.Text(string.upper(station),lobbypanelX+1080/2,lobbypanelY+39) gfx.FillColor(255,255,255,50) gfx.Text(string.upper(station),lobbypanelX+1080/2,lobbypanelY+39) gfx.Fill() if not loading then gfx.BeginPath() gfx.TextAlign(gfx.TEXT_ALIGN_CENTER, gfx.TEXT_ALIGN_BOTTOM) custom_button("Create new room",40+(desw/2), 530+(desh/2),l_load,"Digital-Serial-Bold.ttf",70,new_room) end end if screenState ~= "roomList" then --nautica local jw,jh = gfx.ImageSize(l_color); gfx.BeginPath(); gfx.ImageRect(lobbypanelX,lobbypanelY, jw, jh, l_color,1,0); gfx.BeginPath() local jw,jh = gfx.ImageSize(l_load); gfx.BeginPath(); gfx.ImageRect(40+(desw/2), 530+(desh/2), jw, jh, l_load,1,0); local jw,jh = gfx.ImageSize(n_play_dot); for i = 1, 3, 1 do gfx.TextAlign(gfx.TEXT_ALIGN_RIGHT + gfx.TEXT_ALIGN_MIDDLE) gfx.BeginPath() gfx.FontSize(26) if i == 1 then gfx.SetImageTint(255,9,253) gfx.ImageRect(desw-50, 680+(desh/2)-(40*i), jw, jh, n_play_dot,1,0); gfx.Text(string.upper("Not Downloaded"),desw-50, 14+680+desh/2-(40*i)) elseif i == 2 then gfx.SetImageTint(240,246,0) gfx.ImageRect(desw-50, 680+(desh/2)-(40*i), jw, jh, n_play_dot,1,0); gfx.Text(string.upper("Downloaded"),desw-50, 14+680+desh/2-(40*i)) elseif i == 3 then gfx.SetImageTint(0,246,2) gfx.ImageRect(desw-50, 680+(desh/2)-(40*i), jw, jh, n_play_dot,1,0); gfx.Text(string.upper("Preview Playing"),desw-50, 14+680+desh/2-(40*i)) end gfx.SetImageTint(255,255,255) end end end return getpanel