Skip to content

Commit 4b3e227

Browse files
authored
Merge branch 'develop' into patch-18
2 parents 737cd43 + 24a562d commit 4b3e227

13 files changed

Lines changed: 38 additions & 16 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_policy(SET CMP0048 NEW)
66
cmake_policy(SET CMP0074 NEW)
77

88
# set up versioning.
9-
set(DF_VERSION "51.08")
9+
set(DF_VERSION "51.10")
1010
set(DFHACK_RELEASE "r1")
1111
set(DFHACK_PRERELEASE FALSE)
1212

@@ -66,7 +66,7 @@ endif()
6666

6767
if(WIN32)
6868
set(MSVC_MIN_VER 1930)
69-
set(MSVC_MAX_VER 1942)
69+
set(MSVC_MAX_VER 1943)
7070
if(NOT MSVC)
7171
message(SEND_ERROR "No MSVC found! MSVC 2022 version ${MSVC_MIN_VER} to ${MSVC_MAX_VER} is required.")
7272
elseif((MSVC_VERSION LESS MSVC_MIN_VER) OR (MSVC_VERSION GREATER MSVC_MAX_VER))

data/art/design_toolbar.png

599 Bytes
Loading

data/art/logo.png

216 Bytes
Loading

data/art/logo_hovered.png

-5 KB
Binary file not shown.

data/art/sitemap_toolbar.png

4.25 KB
Loading

data/init/dfhack.keybindings.init

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ keybinding add Ctrl-G@dwarfmode/Default|dungeonmode/Default gui/sitemap
4747
# toggle keyboard cursor
4848
keybinding add Alt-K@dwarfmode|dungeonmode/Default|dungeonmode/Look toggle-kbd-cursor
4949

50+
# gui/journal
51+
keybinding add Ctrl-J@dwarfmode|dungeonmode gui/journal
52+
5053

5154
######################
5255
# dwarfmode bindings #
@@ -151,9 +154,6 @@ keybinding add Ctrl-Shift-Q@dwarfmode gui/quickfort
151154
keybinding add Ctrl-D@dwarfmode/Default gui/design
152155
keybinding add Ctrl-M@dwarfmode/Default gui/mass-remove
153156

154-
# gui/journal
155-
keybinding add Ctrl-J@dwarfmode gui/journal
156-
157157

158158
########################
159159
# dungeonmode bindings #

docs/changelog.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,27 @@ Template for new versions:
6363
## Documentation
6464

6565
## API
66-
- ``Filesystem`` module: rewritten to use C++ standard library components, for better portability
6766

6867
## Lua
6968

7069
## Removed
7170

71+
# 51.10-r1
72+
73+
## Misc Improvements
74+
- Compatibility with DF 51.10
75+
76+
# 51.09-r1
77+
78+
## New Features
79+
- `gui/journal`: Ctrl-j hotkey to launch `gui/journal` now works in adventure mode!
80+
81+
## Fixes
82+
- Fix processing error in the overlay that displays unit preferences in the baron selection list
83+
84+
## API
85+
- ``Filesystem`` module: rewritten to use C++ standard library components, for better portability
86+
7287
# 51.08-r1
7388

7489
## Misc Improvements

docs/dev/Lua API.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5945,17 +5945,21 @@ common text token lists that you can then pass as ``text`` to a ``Label``:
59455945
Example 2: The DFHack logo - a graphical button in graphics mode and a text
59465946
button in ASCII mode. The ASCII colors use the default for hovering::
59475947

5948+
local logo_textures=dfhack.textures.loadTileset(
5949+
'hack/data/art/logo.png', 8, 12, true),
59485950
widgets.Label{
59495951
text=widgets.makeButtonLabelText{
59505952
chars={
59515953
{179, 'D', 'F', 179},
59525954
{179, 'H', 'a', 179},
59535955
{179, 'c', 'k', 179},
59545956
},
5955-
tileset=dfhack.textures.loadTileset(
5956-
'hack/data/art/logo.png', 8, 12, true),
5957-
tileset_hover=dfhack.textures.loadTileset(
5958-
'hack/data/art/logo_hovered.png', 8, 12, true),
5957+
tileset=logo_textures,
5958+
tileset_offset=1,
5959+
tileset_stride=8,
5960+
tileset_hover=logo_textures,
5961+
tileset_hover_offset=5,
5962+
tileset_hover_stride=8,
59595963
},
59605964
on_click=function()
59615965
dfhack.run_command{'hotkeys', 'menu', self.name}

plugins/lua/hotkeys.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ local overlay = require('plugins.overlay')
66
local widgets = require('gui.widgets')
77

88
local logo_textures = dfhack.textures.loadTileset('hack/data/art/logo.png', 8, 12, true)
9-
local logo_hovered_textures = dfhack.textures.loadTileset('hack/data/art/logo_hovered.png', 8, 12, true)
109

1110
local function get_command(cmdline)
1211
local first_word = cmdline:trim():split(' +')[1]
@@ -41,7 +40,11 @@ function HotspotMenuWidget:init()
4140
{VERT_BAR, 'c', 'k', VERT_BAR},
4241
},
4342
tileset=logo_textures,
44-
tileset_hover=logo_hovered_textures,
43+
tileset_offset=1,
44+
tileset_stride=8,
45+
tileset_hover=logo_textures,
46+
tileset_hover_offset=5,
47+
tileset_hover_stride=8,
4548
},
4649
on_click=function() dfhack.run_command{'hotkeys', 'menu', self.name} end,
4750
},

0 commit comments

Comments
 (0)