Skip to content

Commit

Permalink
add FRAME_THIN
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Nov 2, 2023
1 parent 0e00dd8 commit 3f069d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Template for new versions:
## Lua
- ``dfhack.gui.revealInDwarfmodeMap``: gained ``highlight`` parameter to control setting the tile highlight on the zoom target
- ``dfhack.maps.getWalkableGroup``: get the walkability group of a tile
- ``gui.FRAME_THIN``: a panel frame suitable for floating tooltips

## Removed

Expand Down
4 changes: 4 additions & 0 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4583,6 +4583,10 @@ There are the following predefined frame style tables:

A frame suitable for overlay widget panels.

* ``FRAME_THIN``

A frame suitable for floating tooltip panels that need the DFHack signature.

* ``FRAME_BOLD``

A frame suitable for a non-draggable panel meant to capture the user's focus,
Expand Down
3 changes: 3 additions & 0 deletions library/lua/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,9 @@ end
function FRAME_BOLD()
return make_frame(textures.tp_border_bold, true)
end
function FRAME_THIN()
return make_frame(textures.tp_border_thin, false)
end
function FRAME_INTERIOR()
local frame = make_frame(textures.tp_border_thin, false)
frame.signature_pen = false
Expand Down

0 comments on commit 3f069d4

Please sign in to comment.