mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-24 09:06:47 +00:00
Add missing to_string
This commit is contained in:
parent
3618b3f409
commit
749c89e26e
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ M.__newindex = function(self, key, value)
|
||||||
error('Content can only contain tables')
|
error('Content can only contain tables')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
M.__tostring = function(self)
|
||||||
|
return ('UiContent{%d layouts}'):format(#self)
|
||||||
|
end
|
||||||
local function next(self, index)
|
local function next(self, index)
|
||||||
local v = rawget(self, index)
|
local v = rawget(self, index)
|
||||||
if v then
|
if v then
|
||||||
|
|
Loading…
Reference in a new issue