mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Note Layout names colliding with Content methods
This commit is contained in:
parent
c7b0c0a406
commit
539ee77888
@ -172,6 +172,12 @@
|
|||||||
-- for i = 1, #content do
|
-- for i = 1, #content do
|
||||||
-- print('widget',content[i].name,'at',i)
|
-- print('widget',content[i].name,'at',i)
|
||||||
-- end
|
-- 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
|
-- Puts the layout at given index by shifting all the elements after it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user