Skip to content

Commit 3f069d4

Browse files
committed
add FRAME_THIN
1 parent 0e00dd8 commit 3f069d4

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Template for new versions:
7373
## Lua
7474
- ``dfhack.gui.revealInDwarfmodeMap``: gained ``highlight`` parameter to control setting the tile highlight on the zoom target
7575
- ``dfhack.maps.getWalkableGroup``: get the walkability group of a tile
76+
- ``gui.FRAME_THIN``: a panel frame suitable for floating tooltips
7677

7778
## Removed
7879

docs/dev/Lua API.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4583,6 +4583,10 @@ There are the following predefined frame style tables:
45834583

45844584
A frame suitable for overlay widget panels.
45854585

4586+
* ``FRAME_THIN``
4587+
4588+
A frame suitable for floating tooltip panels that need the DFHack signature.
4589+
45864590
* ``FRAME_BOLD``
45874591

45884592
A frame suitable for a non-draggable panel meant to capture the user's focus,

library/lua/gui.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,9 @@ end
940940
function FRAME_BOLD()
941941
return make_frame(textures.tp_border_bold, true)
942942
end
943+
function FRAME_THIN()
944+
return make_frame(textures.tp_border_thin, false)
945+
end
943946
function FRAME_INTERIOR()
944947
local frame = make_frame(textures.tp_border_thin, false)
945948
frame.signature_pen = false

0 commit comments

Comments
 (0)