[SOLVED]Wiki pages about callins
Posted: 18 May 2014, 22:42
In page: http://springrts.com/wiki/Lua_Scripting there is a link to http://springrts.com/wiki/Lua:Callins. There, you can find for example: "addon.UnitEnteredLos(unitID, unitTeam, allyTeam, unitDefID)"
On page http://springrts.com/wiki/LuaCallinReturn there is "UnitEnteredLos() --> "unitID, teamID" "
By looking at the source I found:
and
Now, the questions:
- is Lua:Callins wiki page about gadgets only?
- is the list on LuaCallinReturn page about widgets only?
- are the above pages generated automatically or based on a specific version? (if it would be a specific version, it would be nice to be mentioned)
- is there a reason why for similar calls gadgets and widgets have different set of parameters? (for the above example does not seem to be anything that should be hidden). Is it performance?
On page http://springrts.com/wiki/LuaCallinReturn there is "UnitEnteredLos() --> "unitID, teamID" "
By looking at the source I found:
Code: Select all
cont/base/springcontent/LuaGadgets/gadgets.lua:function gadgetHandler:UnitEnteredLos(unitID, unitTeam, allyTeam, unitDefID)
Code: Select all
cont/LuaUI/widgets.lua:function widgetHandler:UnitEnteredLos(unitID, unitTeam)
- is Lua:Callins wiki page about gadgets only?
- is the list on LuaCallinReturn page about widgets only?
- are the above pages generated automatically or based on a specific version? (if it would be a specific version, it would be nice to be mentioned)
- is there a reason why for similar calls gadgets and widgets have different set of parameters? (for the above example does not seem to be anything that should be hidden). Is it performance?