Skip to content

Commit

Permalink
Merge pull request #3942 from myk002/myk_thin
Browse files Browse the repository at this point in the history
add FRAME_THIN
  • Loading branch information
myk002 authored Nov 2, 2023
2 parents 0e00dd8 + 3f069d4 commit a273512
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 a273512

Please sign in to comment.