mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-06 11:11:35 +00:00
Note Layout names colliding with Content methods
This commit is contained in:
parent
c7b0c0a406
commit
539ee77888
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue