diff options
| author | Petr Mrázek | 2011-08-09 01:50:22 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-09 01:50:22 +0200 |
| commit | cc19180ac00c767abe164ad275fab6ab4aeb0888 (patch) | |
| tree | 9e95f92b3f4e5a5cb23409eb9a3acfd1d958acd2 /plugins/liquids.cpp | |
| parent | 8fd437dbc1caebf7a8f8b8668e2fe6a2b907f498 (diff) | |
| download | dfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.gz dfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.bz2 dfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.xz | |
Add 'help' options to a bunch of commands.
Diffstat (limited to 'plugins/liquids.cpp')
| -rw-r--r-- | plugins/liquids.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index 7acfc1b0..27035bff 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -166,6 +166,16 @@ DFhackCExport command_result df_liquids (Core * c, vector <string> & parameters) DFHack::Maps * Maps; DFHack::Gui * Position; + for(int i = 0; i < parameters.size();i++) + { + if(parameters[i] == "help" || parameters[i] == "?") + { + c->con.print("This tool allows placing magma, water and other similar things.\n" + "It is interactive and further help is available when you run it.\n" + ); + return CR_OK; + } + } Brush * brush = new RectangleBrush(1,1); string brushname = "point"; bool end = false; |
