Merge pull request #2951 from myk002/myk_clear_tile

allow clearing of map interface layer tiles
develop
Myk 2023-02-26 09:25:21 -08:00 committed by GitHub
commit 34c8a21c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -47,6 +47,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- Gui focus strings will no longer get the "dfhack/" prefix if the string "dfhack/" already exists in the focus string
## Lua
- ``dfhack.screen.paintTile()``: you can now explicitly clear the interface cursor from a map tile by passing ``0`` as the tile value
- ``widgets.Label``: token ``tile`` properties can now be functions that return a value
-@ ``gui.INTERIOR_FRAME``: a panel frame style for use in highlighting off interior areas of a UI

@ -130,8 +130,7 @@ static bool doSetTile_map(const Pen &pen, int x, int y) {
long texpos = pen.tile;
if (!texpos && pen.ch)
texpos = init->font.large_font_texpos[(uint8_t)pen.ch];
if (texpos)
vp->screentexpos_interface[index] = texpos;
vp->screentexpos_interface[index] = texpos;
return true;
}