hi all.. hi everyone... i found this site while searching for documents with lua and GUI on the internet. First of all, thank you very much for this good library.
I use notepad++ for lua programming and I run programs from there and see the results. However, with Notepad++, I save the following code in a program called "new_1.lua" and then this program
When I run luart with the yeni_1.lua command, I get the following error. what could be the reason for this?
local ui = require "ui"
-- create a simple window
local win = ui.Window("Picture.x sample", 600, 300)
local picture = ui.Picture(win, "examples/LuaRT.png", -76, 60)
-- shows the window
win:show()
-- update user interface and increase Picture horizontal position
repeat
ui.update()
picture.x = picture.x + 1
until not win.visible or (picture.x > 600)
C:\Users\CoCo\Desktop>luart yeni_1.lua
yeni_1.lua:2: module 'ui' not found:
no field package.preload['ui']
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\lua\ui.lua'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\lua\ui\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\ui.lua'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\ui\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin..\share\lua\5.4\ui.lua'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin..\share\lua\5.4\ui\init.lua'
no file '.\ui.lua'
no file '.\ui\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\ui.luac'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\ui.dll'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin..\lib\lua\5.4\ui.dll'
no file 'C:\Program Files (x86)\Lua\5.1\LuaRT\bin\loadall.dll'
no file '.\ui.dll'
C:\Users\CoCo\Desktop>