Working on CommonUI conversion. Need to stop using SetAnchorsInViewport as way to position widgets, so now implementing new thing using GridPanels.
This commit is contained in:
@@ -31,7 +31,11 @@ end
|
||||
|
||||
function engio.getlookat()
|
||||
local class = tangible.getclass(tangible.place())
|
||||
if class == nil then return end
|
||||
|
||||
-- if the tangible is not of any class, return empty string.
|
||||
if class == nil then
|
||||
return ""
|
||||
end
|
||||
|
||||
-- if the class has a function 'lookhotkeys', then the correct
|
||||
-- look-at widget is 'hotkeys'. We're going to automatically
|
||||
@@ -47,5 +51,8 @@ function engio.getlookat()
|
||||
if class.getlookat ~= nil then
|
||||
return class.getlookat()
|
||||
end
|
||||
|
||||
-- by default, return the empty string.
|
||||
return ""
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user