summaryrefslogtreecommitdiff
path: root/plugins/lua
Commit message (Collapse)AuthorAgeFilesLines
* New tweaks for the military assign to position screen.Alexander Gavrilov2012-09-281-1/+7
|
* Implement a slightly more sensible aiming AI in siege engine.Alexander Gavrilov2012-09-171-12/+196
|
* Throw items from bins around in siege engine, like minecarts do.Alexander Gavrilov2012-09-121-1/+2
|
* Trivial siege engine aiming at units, with logic in lua.Alexander Gavrilov2012-09-111-0/+31
|
* Start the siege engine plugin with code to highlight obstacles on screen.Alexander Gavrilov2012-09-071-0/+13
|
* Implement a pressure plate sensitive to machine power.Alexander Gavrilov2012-09-061-0/+11
| | | | When built next to a gearbox, it will monitor its powered state.
* Support renaming some buildings, and arbitrary units, via gui script.Alexander Gavrilov2012-09-051-0/+13
|
* Expose the liquids plugin engine to lua, and make a wrapper gui script.Alexander Gavrilov2012-08-251-0/+11
|
* Remove stuff that shouldn't be in the core, and expose to lua what's left.Alexander Gavrilov2012-05-201-8/+1
| | | | | | | | | Specifically, any "if (verbose) { Core::printerr("blah") }" kind of stuff definitely doesn't belong in the common API functions. Also, ref->getUnit() is very expensive. On the other hand, checks for crash-inducing conflicts with the ui should be in the core api, and not in client plugins.
* Support sorting items in the trade screens.Alexander Gavrilov2012-05-183-0/+70
| | | | Caveat: sorts items in containers independently from the container.
* Split off the burrows api from Maps and Units.Alexander Gavrilov2012-04-261-16/+6
|
* Retrieve unit noble position info, and use it in getProfessionName.Alexander Gavrilov2012-04-261-0/+9
|
* Add a few more lua api functions, documentation, and unit sort orders.Alexander Gavrilov2012-04-231-12/+40
| | | | | Units::getProfessionName appears to work correctly for everything except nobles.
* Support sorting units in many more ui contexts.Alexander Gavrilov2012-04-221-0/+7
|
* Add a few more unit orderings, and a way to reverse direction.Alexander Gavrilov2012-04-212-1/+70
|
* Add a hotkey command that sorts units in lists using lua comparators.Alexander Gavrilov2012-04-212-0/+52
|
* Allow plugins to export functions to lua with safe reload support.Alexander Gavrilov2012-04-141-0/+33
- To ensure reload safety functions have to be wrapped. Every call checks the loaded state and locks a mutex in Plugin. If the plugin is unloaded, calling its functions throws a lua error. Therefore, plugins may not create closures or export yieldable functions. - The set of function argument and return types supported by LuaWrapper is severely limited when compared to being compiled inside the main library. Currently supported types: numbers, bool, std::string, df::foo, df::foo*, std::vector<bool>, std::vector<df::foo*>. - To facilitate postponing initialization until after all plugins have been loaded, the core sends a SC_CORE_INITIALIZED event. - As an example, the burrows plugin now exports its functions.