Commit Graph

1978 Commits (1d1cd638003a74d4543ff7348ee29c27f03ed78a)
 

Author SHA1 Message Date
Alexander Gavrilov 1d1cd63800 Implement printing job details. 2012-01-03 22:56:05 +04:00
Alexander Gavrilov f8814909a9 Move the MaterialInfo class to the main library. 2012-01-03 19:25:55 +04:00
Alexander Gavrilov fb736a8556 Support more ways to binsearch in a vector. 2012-01-03 13:07:49 +04:00
Alexander Gavrilov 326c58f793 Add a plugin to tweak inorganic materials in jobs.
It also auto-seeks in the build item list if used in that context.
2012-01-02 18:46:24 +04:00
Alexander Gavrilov bfcaca9266 Update xml defs with more ui info. 2012-01-02 15:18:23 +04:00
Alexander Gavrilov 6476d61e59 Update structure definitions & add the fixwagons plugin from Q. 2012-01-01 23:05:45 +04:00
Petr Mrázek 3f9e1b0c2b Update xml 2012-01-01 04:26:22 +01:00
Petr Mrázek 6029949ca3 Update library/xml so things actually build. 2012-01-01 03:46:36 +01:00
Petr Mrázek f2a69188ea Use submodule for memory structure definitions (df-structures). 2012-01-01 03:34:29 +01:00
Petr Mrázek 52dfa842cc Add missing MiscUtils.cpp 2011-12-31 13:14:08 +01:00
Petr Mrázek f35cdb84cd Merge https://github.com/angavrilov/dfhack
Conflicts:
	library/Core.cpp
	library/PluginManager.cpp
	library/include/Core.h
	library/include/PluginManager.h
	library/modules/Gui.cpp
	plugins/stockpiles.cpp
2011-12-31 13:09:12 +01:00
Petr Mrázek 9db20bd84d Header changes/cleanup. 2011-12-31 12:48:42 +01:00
Alexander Gavrilov b652ec4132 Implement context-sensitive keybinding support.
Allow defining commands with guard conditions, and binding
one or more commands to alphabetic and function keys. When
the relevant key is pressed, the first listed command with
successfully evaluated guard is chosen.

For consistency, the guard is also checked when the command
is invoked from the console; this requires suspending the
core inside PluginManager, before invoking plugin code.
2011-12-31 13:25:46 +04:00
Petr Mrázek 1284b30f79 Merge https://github.com/angavrilov/dfhack 2011-12-31 01:40:08 +01:00
Alexander Gavrilov 2222757e77 Implement context-sensitive keybinding support.
Allow defining commands with guard conditions, and binding
one or more commands to alphabetic and function keys. When
the relevant key is pressed, the first listed command with
successfully evaluated guard is chosen.

For consistency, the guard is also checked when the command
is invoked from the console; this requires suspending the
core inside PluginManager, before invoking plugin code.
2011-12-30 23:25:50 +04:00
Alexander Gavrilov 4aa77f5530 Execute commands from the dfhack.init file on startup. 2011-12-30 23:11:34 +04:00
Alexander Gavrilov b71e577771 Allow specifying parameters in hotkey commands.
Now that hotkeys can be set to arbitrary strings, tokenize them.
2011-12-30 18:27:55 +04:00
Alexander Gavrilov 53346328e8 Notify plugins about game being loaded or unloaded.
As a test, make seadwatch deactivate on these events.
2011-12-30 18:12:15 +04:00
Espen Wiborg 1a88df201c Traits are active if MORE than 10 away from 50 2011-12-30 10:20:16 +08:00
Petr Mrázek a49ac554a8 Add mention of XML::LibXSLT to the compile doc. 2011-12-30 03:15:51 +01:00
Petr Mrázek e6ff6b04fc Merge https://github.com/warmist/dfhack 2011-12-30 03:12:29 +01:00
Petr Mrázek 614605a2be Fixed integer truncation in filltraffic. 2011-12-30 03:10:31 +01:00
Petr Mrázek 5c4ba8c1df Merge https://github.com/rampaging-poet/dfhack 2011-12-30 03:08:20 +01:00
Petr Mrázek 9a48c98162 designed -> designated in tiletypes plugin 2011-12-30 03:05:53 +01:00
Petr Mrázek a1e1d7cfce Merge https://github.com/feng1st/dfhack
Conflicts:
	plugins/tiletypes.cpp
2011-12-30 02:50:30 +01:00
Alexander Gavrilov 298e2fe92d Add a plugin to rename squads and hotkeys (without the 9 char limit). 2011-12-29 17:37:07 +04:00
Alexander Gavrilov d7faa6c471 Properly cleanup state when copystock in q during rect selection. 2011-12-29 16:46:08 +04:00
Alexander Gavrilov 5173a1235b Fix plugin reloading. 2011-12-29 16:46:08 +04:00
Alexander Gavrilov b14e2a0c0d Update the XML definitions. 2011-12-29 16:46:08 +04:00
Alexander Gavrilov d513e75365 Use the updated code generator with support for vtables & constructors. 2011-12-29 16:46:01 +04:00
Warmist 2643e0c5a7 Merge branch 'master' of git://github.com/peterix/dfhack 2011-12-28 22:49:31 +02:00
Warmist 5e34284e5d Fix for give sentience. 2011-12-27 23:09:53 +02:00
Warmist bc539672d5 Split some plugins to plugin/init pairs (for dfusion init mode) 2011-12-27 23:08:06 +02:00
Warmist 52a049cec3 Removed thready argument to dfusion, replaced with init (just sets stuff up, running everything in non interactive mode) 2011-12-27 23:07:23 +02:00
Warmist 71e2321fef Added getKeys method to lua offsetgroup and a way to cast versioninfo to offsetgroup 2011-12-24 16:00:43 +02:00
Warmist 0bc41ccb10 Added header files to dfusion's project 2011-12-24 15:59:53 +02:00
Petr Mrázek 16241a7e78 Update compile doc with the perl and XML::LibXML dependency. 2011-12-24 14:44:14 +01:00
Petr Mrázek 51dae5a5dc Fix for minor MSVC error. 2011-12-24 14:34:10 +01:00
Petr Mrázek e9f9f9b92e Merge https://github.com/angavrilov/dfhack 2011-12-24 14:27:58 +01:00
Petr Mrázek 59c32b1ee9 Some changes required on windows. 2011-12-24 14:27:35 +01:00
Alexander Gavrilov 2eb56d0480 Make strongly-typed 'any virtual class' pointers optional.
It seems they might not work properly on msvc.
2011-12-24 17:17:01 +04:00
Alexander Gavrilov 81ad287c06 Generate very simple static functions to find objects in global vectors. 2011-12-24 16:22:10 +04:00
Warmist dc78e99f75 Added getKeys to OffsetGroup (for easy lua access to all things that memory.xml has) 2011-12-24 13:53:59 +02:00
Petr Mrázek 5bee16dbd8 Merge https://github.com/angavrilov/dfhack 2011-12-24 12:27:59 +01:00
Petr Mrázek cfd2c95eab Slight reformat in versionosd. 2011-12-24 12:27:34 +01:00
Alexander Gavrilov 79ac2a781a Add infrastructure necessary to use the generated headers.
As a usage example, allow toggling water level display and idlers,
and implement a ui tweak for easily copying stockpiles.

Also disable df2mc by default - default options shouldn't
require anything not in the base package.
2011-12-24 14:51:58 +04:00
Alexander Gavrilov 0b5a470a38 Add header generation from xml. 2011-12-24 14:38:28 +04:00
Warmist 2008ac5564 Added utils.lua with usefull lua utils. 2011-12-18 16:58:34 +02:00
Warmist e84841e94f Added autorunning initcustom.lua (for place to put private scripts) autorunning save files, and friendship_civ (still buggy) 2011-12-12 20:25:37 +02:00
Warmist 9b48d4946e Added autorunning initcusom.lua if it exists (for custom scripts) 2011-12-11 02:28:15 +02:00