Add painting tiles to the world map port#4711
Add painting tiles to the world map port#4711Crystalwarrior wants to merge 1 commit intoDFHack:adv-betafrom
Conversation
(no getTileMapPort yet)
myk002
left a comment
There was a problem hiding this comment.
needs docs in Lua API.rst and changelog.txt
| // GUI_HOOK_DECLARE(get_tile_map_port, Pen, (int x, int y, int32_t * df::graphic_map_portst::*texpos_field)); | ||
| GUI_HOOK_DECLARE(set_tile_map_port, bool, (const Pen &pen, int x, int y, int32_t * df::graphic_map_portst::*texpos_field)); |
There was a problem hiding this comment.
don't bother with this. This is a deprecated construct leftover from TWBT. You can just directly implement the new paint function without the GUI_HOOK redirection.
| /// Retrieves one world map tile from the buffer | ||
| // DFHACK_EXPORT Pen readTile(int x, int y, int32_t * df::graphic_map_portst::*texpos_field = NULL); |
| return doGetTile(x, y, map, texpos_field); | ||
| } | ||
|
|
||
| static bool doSetTile_map_port(const Pen &pen, int x, int y, int32_t * df::graphic_map_portst::*texpos_field) { |
There was a problem hiding this comment.
make sure you handle ASCII mode properly
|
also, please target this PR to |
|
to create a PR based on $ git checkout develop
$ git pull
$ git checkout -b world-map-port-tiles2
$ git cherry-pick world-map-port-tiles(assumes that your you'd then start a new PR from that new branch |
|
new shiny |
You are now able to paint world map tiles!
missing: getTileMapPort
Closes #4703