ExperimentalGear/scripts/multi/owninfo.lua

34 lines
1.0 KiB
Lua

-- idk why this breaks with the difbar translate error at line 28
local ownPanelX = 0;
local ownPanelY = 1310;
msg = game.GetSkinSetting("MSG");
normname = game.GetSkinSetting("username")
local m_host_panel = gfx.CreateSkinImage("multi/lobby/user_panel.png", 1);
ready_bt = gfx.CreateSkinImage("multi/lobby/READY.png", 1);
local m_own_info = function()
gfx.BeginPath();
gfx.FontSize(40)
gfx.ImageRect(ownPanelX, ownPanelY, 343/1.18, 361/1.18,m_host_panel,1,0)
gfx.Text(normname, ownPanelX+20, ownPanelY+78)
gfx.FontSize(22)
gfx.Text(msg,ownPanelX+20, ownPanelY+37)
gfx.Text(irText, ownPanelX+20, ownPanelY+288);
if showthing == true then
local jw , jh = gfx.ImageSize(ready_bt);
gfx.BeginPath();
gfx.ImageRect(ownPanelX+150, ownPanelY+232, jw/1.18, jh/1.18, ready_bt,1,0);
elseif showthing == false then
local jw , jh = gfx.ImageSize(ready_bt);
gfx.BeginPath();
gfx.ImageRect(x+ownPanelX, y+ownPanelY, jw/1.18, jh/1.18, ready_bt,0,0);
end
end
return m_own_info