Rework to UIMessageBox

This commit is contained in:
Henrique Santiago
2012-08-12 20:27:41 -03:00
parent 7fb2f6deb5
commit abb6f59568
8 changed files with 99 additions and 142 deletions

View File

@@ -263,4 +263,21 @@ function tr(s, ...)
return string.format(s, ...)
end
function getOppositeAnchor(anchor)
if anchor == AnchorLeft then
return AnchorRight
elseif anchor == AnchorRight then
return AnchorLeft
elseif anchor == AnchorTop then
return AnchorBottom
elseif anchor == AnchorBottom then
return AnchorTop
elseif anchor == AnchorVerticalCenter then
return AnchorHorizontalCenter
elseif anchor == AnchorHorizontalCenter then
return AnchorVerticalCenter
end
return anchor
end
-- @}