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:
2025-05-12 18:23:37 -04:00
parent 11b509cfdf
commit dea3444be4
10 changed files with 132 additions and 12 deletions

View File

@@ -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