Hi, first of all, thanks for this piece of software, is awesome.
Im trying to create something basic to learn it.
I created a basic WindowsUI with RTBuilder, i saw that generate a lua code with 2 returns, one the main Window and a table.
The problem is that when i try to "require" the WindowsUI.lua that contains the buttons and other stuff, i do
local Windows,Objects = require "WindowsUI"
the first one is obvius the Window object, but i cant access the rest of it, the second return, what i found as a solution is return a table from WindowsUI.lua
instead of
return Window, { ['Entry4'] = Entry4, ['github_link'] = github_link, ['repo_list'] = repo_list, ['Panel1'] = Panel1, ['Button2'] = Button2, ['title'] = title, ['Panel2'] = Panel2, ['Button1'] = Button1, }
i did
return { Window = Window, Controls = { ['Entry4'] = Entry4, ['github_link'] = github_link, ['repo_list'] = repo_list, ['Panel1'] = Panel1, ['Button2'] = Button2, ['title'] = title, ['Panel2'] = Panel2, ['Button1'] = Button1, } }
so in other code i can do ui.run(Window.Window):wait() and access the controls from Window.Controls, is this normal or is a better way of access the Ui components ?
Thanks!!