diff options
| author | Jared Adams | 2012-04-15 08:40:19 -0600 |
|---|---|---|
| committer | Jared Adams | 2012-04-15 08:40:19 -0600 |
| commit | f3c7a685f5b6d84bff6193ad289df3cda634a4ee (patch) | |
| tree | a0b45bbac4b659f0e8f46c51fea67915387b0399 /library/Core.cpp | |
| parent | c69af6ab9eff10fc59f68d462656caa2dacd266c (diff) | |
| download | dfhack-f3c7a685f5b6d84bff6193ad289df3cda634a4ee.tar.gz dfhack-f3c7a685f5b6d84bff6193ad289df3cda634a4ee.tar.bz2 dfhack-f3c7a685f5b6d84bff6193ad289df3cda634a4ee.tar.xz | |
Make tiletypes more useful
* Paint, filter, and brush state is now saved between calls.
* Added 'all' paint option to set material, shape, special, and variant at
the same time.
* Added tiletypes-here (like liquids here, except is uses the saved brush
settings)
* Added tiletypes-here-point (like liquids here, always only the tile under
the cursor)
* Added tiletypes-command: runs tiletypes commands seperated by ';' tokens
(affects saved state)
* Make the internal workings match liquids a bit more
* Give brush objects a descriptor string
* Make Core::cheap_tokenise available
Diffstat (limited to 'library/Core.cpp')
| -rw-r--r-- | library/Core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/Core.cpp b/library/Core.cpp index e6b9c45f..111a8801 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -118,7 +118,7 @@ struct Core::Private } }; -void cheap_tokenise(string const& input, vector<string> &output) +void Core::cheap_tokenise(string const& input, vector<string> &output) { string *cur = NULL; @@ -177,7 +177,7 @@ void fHKthread(void * iodata) color_ostream_proxy out(core->getConsole()); vector <string> args; - cheap_tokenise(stuff, args); + Core::cheap_tokenise(stuff, args); if (args.empty()) { out.printerr("Empty hotkey command.\n"); continue; @@ -218,7 +218,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue { // cut the input into parts vector <string> parts; - cheap_tokenise(command,parts); + Core::cheap_tokenise(command,parts); if(parts.size() == 0) { clueless_counter ++; |
