luapower / ui0

Extensible UI toolkit in Lua
http://luapower.com/ui0
10 stars 2 forks source link

Error with ui library, attempt to index field 'windows' a nil value #3

Closed Sledmine closed 5 years ago

Sledmine commented 5 years ago

I'm using the latest version of LuaPower and when i run the example from the LuaPower webpage a got an error, this was not happening in older distributions of LuaPower (i had the latest master release with 32bit support when this was working). image, I'm running this on Windows 10-1809.

capr commented 5 years ago

Please update. There's no testui.lua file anymore. Also you might want to check https://luapower.com/forum/topic/105/2019-status-report-ui-libraries

Sledmine commented 5 years ago

That's the name that i gave to the code example from the webpage, the content of that file is this example code from here: https://luapower.com/ui

capr commented 5 years ago

You have to do local ui = require'ui'(), I've updated the docs to reflect that.

I'm not too fond of this change, so in the future this might go back to local ui = require'ui'.

Sledmine commented 5 years ago

Many thanks, is working now!