|
From: <hol...@gm...> - 2007-11-21 11:56:44
|
hol...@gm... schrieb: > As you might have noticed I committed a number of changes today. They > will allow writing to the screen using Lua. > The commits I've sent are rather weak. You need to have the Lua in > ./scripts/menu.lua for it to work and I've used strcpy. I will fix these > later on but I was too anxious to show this to you. I did some more fiddling with Lua over the last few days. The Lua-script will now draw a primitive button just like the c-function ShBox() [main.c] does. It does not use the ShBox-function but the underlying gr* functions. I plan to enhance the example until it can draw the main menu mostly in Lua. During this quest I stumbled over the "letters.dat" file which appears to contain graphics for... well... letters. Is that correct? With the graphics-interface exposed to Lua I plan to dispatch certain tasks to Lua. For example I'd love to just command Lua to 'drawSpaceport()' and it will start doing so, picking up the needed information through get-functions. The next step would be to open the code up to allow Lua to _change_ that very data. This will enable real modding capabilities. Cheers, Fabian |