CLIENT: fixed ui issues

master
Martin Gerhardy 2020-05-01 13:23:02 +02:00
parent f9d3111e27
commit dd113505ce
3 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ end
--[[
]]
function module.windowTitle(title, x, y, width, height, closure, ...)
function module.windowTitlePos(title, x, y, width, height, closure, ...)
if ui.windowBegin(title, title, x, y, width, height, table.unpack({...})) then
closure()
else

View File

@ -2,7 +2,7 @@ local gui = require "ui.shared"
function hud()
-- todo transparent color background
gui.window('hud', 0, 0, -1, 80, function ()
gui.windowPushButton('Quit', 'quit')
end)
--gui.window('hud', 0, 0, -1, 80, function ()
-- gui.windowPushButton('Quit', 'quit')
--end)
end

View File

@ -4,7 +4,7 @@ function popup(message)
if message == nil then
message = "No message given"
end
gui.window('popup', 480, 220, function ()
gui.window('popup', 480, 220, 400, 200, function ()
gui.row(1)
gui.text(message, {color = "#ff0000", size = 28, align = "center"})
gui.back()