CLIENT: fixed ui issues
parent
f9d3111e27
commit
dd113505ce
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue