2012-01-11 00:13:38 +01:00
|
|
|
UIWindow = extends(UIWidget)
|
|
|
|
|
|
|
|
function UIWindow.create()
|
|
|
|
local window = UIWindow.internalCreate()
|
|
|
|
window:setTextAlign(AlignTopCenter)
|
|
|
|
return window
|
|
|
|
end
|
|
|
|
|
2012-02-06 13:53:28 +01:00
|
|
|
function UIWindow:onKeyPress(keyCode, keyboardModifiers)
|
2012-01-11 00:13:38 +01:00
|
|
|
if keyboardModifiers == KeyboardNoModifier then
|
2012-02-04 03:11:18 +01:00
|
|
|
if keyCode == KeyEnter then
|
2012-01-11 00:13:38 +01:00
|
|
|
signalcall(self.onEnter, self)
|
|
|
|
elseif keyCode == KeyEscape then
|
|
|
|
signalcall(self.onEscape, self)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2012-01-19 05:12:53 +01:00
|
|
|
|
|
|
|
function UIWindow:onMousePress(mousePos, mouseButton)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function UIWindow:onGeometryChange(oldRect, newRect)
|
|
|
|
|
|
|
|
end
|