mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
use GLSL shaders
This commit is contained in:
@@ -28,7 +28,7 @@ function MessageBox.create(title, text, flags)
|
||||
|
||||
if flags == MessageBoxOk then
|
||||
buttonRight:setText("Ok")
|
||||
box.onOk = EmptyFunction
|
||||
box.onOk = function() end
|
||||
buttonRight.onClick = function()
|
||||
box.onOk()
|
||||
box:destroy()
|
||||
@@ -37,7 +37,7 @@ function MessageBox.create(title, text, flags)
|
||||
window.onEscape = buttonRight.onClick
|
||||
elseif flags == MessageBoxCancel then
|
||||
buttonRight:setText("Cancel")
|
||||
box.onCancel = EmptyFunction
|
||||
box.onCancel = function() end
|
||||
buttonRight.onClick = function()
|
||||
box.onCancel()
|
||||
box:destroy()
|
||||
|
@@ -28,7 +28,7 @@ function ToolTip.display(text)
|
||||
local size = label:getSize()
|
||||
size.width = size.width + 4
|
||||
size.height = size.height + 4
|
||||
currentToolTip:setSize(size)
|
||||
currentToolTip:resize(size)
|
||||
moveToolTip(currentToolTip)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user