page context

How to reuse the components of another page.

For instance the buttons of 002-tocEn are reused in 003-tocJP page. The 003-tocJP uses the lua files of the 002-tocEn with the images of the 003-tocJP page at the runtime.

the same layer names should exist in the two pages

page properties - Context of page 003

set tocEn of page 002 for the context of the page 003 tocJp

That’s all.

When the page 003 is open, it loads the images of the page 003 with the lua files of the page 002. The value of UI.curPage is 3 as usual. You may setLang to “jp” for loading the page 003 and with the external code set in the page 002 can manage behaviors with the lang code.