| 213 | } |
| 214 | |
| 215 | command_result df_tiles (Core * c, vector <string> & parameters) |
| 216 | { |
| 217 | int32_t x,y,z; |
| 218 | uint32_t x_max,y_max,z_max; |
| 219 | DFHack::Maps * Maps; |
| 220 | DFHack::Gui * Position; |
| 221 | Brush * brush = new RectangleBrush(1,1); |
| 222 | |
| 223 | Maps = c->getMaps(); |
| 224 | Maps->Start(); |
| 225 | Maps->getSize(x_max,y_max,z_max); |
| 226 | Position = c->getGui(); |
| 227 | |
| 228 | string command = ""; |
| 229 | if(command=="help" || command == "?") |
| 230 | { |
| 231 | c->con.print |
| 232 | ( |
| 233 | "Usage: This command sets the properties of the tile painter brush\n" |
| 234 | " It is best used from the console, or as an alias bound to a hotkey\n" |
| 235 | " After setting the brush\n" |
| 236 | "\n" |
| 237 | "Modes:\n" |
| 238 | "none - nothing, the default" |
| 239 | "magma [0-7] - magma, accepts depth\n" |
| 240 | "water [0-7] - water\n" |
| 241 | "obsidian - obsidian wall\n" |
| 242 | "obsfloor - obsidian floors\n" |
| 243 | "obsramp - obsidian ramp (forces 1 z-level brush)\n" |
| 244 | "riversource - an endless source of water (floor tile)\n" |
| 245 | "type ### - plain tiletype painter. For a list of tile types see:\n" |
| 246 | " http://df.magmawiki.com/index.php/DF2010:Tile_types_in_DF_memory\n" |
| 247 | "\n" |
| 248 | "Set-Modes (only for magma/water):\n" |
| 249 | "add - set liquid level everywhere\n" |
| 250 | "keep - set liquid level only where liquids are already present\n" |
| 251 | "\n" |
| 252 | "Brush:\n" |
| 253 | "point - single tile [p]\n" |
| 254 | "#x#[x#] - block with cursor at bottom north-west [r]\n" |
| 255 | " (any place, any size)\n" |
| 256 | " Example:" |
| 257 | " 3x3x2 = rectangle 3x3 x2 z-levels\n" |
| 258 | " The z-level part is optional - ommiting it is\n" |
| 259 | " the same as setting it to 1.\n" |
| 260 | "h#x#[x#] - Same as previous, only the rectangle is 'hollow'.\n" |
| 261 | "block - DF map block with cursor in it\n" |
| 262 | " (regular spaced 16x16x1 blocks)\n" |
| 263 | "column - Column from cursor, up through free space\n" |
| 264 | "line - A line between two points.\n" |
| 265 | "circle [#] - A filled circle, optional # specifies radius in tiles.\n" |
| 266 | "hcircle [#,#] - A hollow circle (ring). First # specifies radius\n" |
| 267 | " second # ring thickness in tiles.\n" |
| 268 | "\n" |
| 269 | "Other:\n" |
| 270 | "help or ? - print this list of commands\n" |
| 271 | "paint - same effect as if you also the 'paint' command at the same time.\n" |
| 272 | "\n" |
nothing calls this directly
no test coverage detected