1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 13:20:35 +00:00

Note Layout names colliding with Content methods

This commit is contained in:
uramer 2023-01-30 23:29:00 +01:00
parent c7b0c0a406
commit 539ee77888

View File

@ -172,6 +172,12 @@
-- for i = 1, #content do
-- print('widget',content[i].name,'at',i)
-- end
-- @usage
-- -- Note: layout names can collide with method names. Because of that you can't use a layout name such as "insert":
-- local content = ui.content {
-- { name = 'insert '}
-- }
-- content.insert.content = ui.content {} -- fails here, content.insert is a function!
---
-- Puts the layout at given index by shifting all the elements after it