You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
547 B
26 lines
547 B
UIWindow = extends(UIWidget)
|
|
|
|
function UIWindow.create()
|
|
local window = UIWindow.internalCreate()
|
|
window:setTextAlign(AlignTopCenter)
|
|
return window
|
|
end
|
|
|
|
function UIWindow:onKeyPress(keyCode, keyboardModifiers)
|
|
if keyboardModifiers == KeyboardNoModifier then
|
|
if keyCode == KeyEnter then
|
|
signalcall(self.onEnter, self)
|
|
elseif keyCode == KeyEscape then
|
|
signalcall(self.onEscape, self)
|
|
end
|
|
end
|
|
end
|
|
|
|
function UIWindow:onMousePress(mousePos, mouseButton)
|
|
|
|
end
|
|
|
|
function UIWindow:onGeometryChange(oldRect, newRect)
|
|
|
|
end
|