I've got the Lua 5.0 reference manual, the "Programming in Lua" manual and I've looked in the API.txt file in my LuaUI folder but I still can't find many commands that people are using in their Lua scripts. An example is the widgetHandler:GetHourTimer() function. I can find no mention of this in any documentation.
What have I missed?
I'm finding it difficult writing the simplest of scripts because I cannot identify the objects/functions that I need.
Documentation
Moderator: Moderators
- Ling_Lover
- Posts: 100
- Joined: 26 Sep 2006, 11:50
- TechnoTone
- Posts: 165
- Joined: 23 Aug 2005, 22:02
TechnoTone:
There's only one dev working on the lua stuff, and so documentation updates
have been taking a backseat to the new synced LUA scripts features for a while.
As for your specific query, the widgetHandler:GetHourTimer() call isn't part of the
raw LuaUI interface, it is provided by widgetHandler (which is completely written
in lua). You can find the source code for widgetHandler in LuaUI/widgets.lua. That
particular call is defined in NewWidget(), along with some other widget specific calls.
P.S. Don't forget: I, too, am only doing this for fun...
There's only one dev working on the lua stuff, and so documentation updates
have been taking a backseat to the new synced LUA scripts features for a while.
As for your specific query, the widgetHandler:GetHourTimer() call isn't part of the
raw LuaUI interface, it is provided by widgetHandler (which is completely written
in lua). You can find the source code for widgetHandler in LuaUI/widgets.lua. That
particular call is defined in NewWidget(), along with some other widget specific calls.
P.S. Don't forget: I, too, am only doing this for fun...
- TechnoTone
- Posts: 165
- Joined: 23 Aug 2005, 22:02
Thanks for the info. I'm starting to find my way around it - but it's taking some time.
As a developer I completely understand that documentation is often neglected but all I'm really looking for is just a list of the functions that are available.
Am I right in thinking that all the widgetHandler: functions are defined in this widgets.lua file and all the Spring functions are defined in the LuaUI API.txt file? If so then that is exactly what was looking for.
As a developer I completely understand that documentation is often neglected but all I'm really looking for is just a list of the functions that are available.
Am I right in thinking that all the widgetHandler: functions are defined in this widgets.lua file and all the Spring functions are defined in the LuaUI API.txt file? If so then that is exactly what was looking for.