Skip to content

Commit 9f230a0

Browse files
committed
Merge master to fix sphinx logcleaner duplicate label issue
2 parents 788a8bc + 4ffbea2 commit 9f230a0

16 files changed

Lines changed: 500 additions & 503 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
args: ['--fix=lf']
2121
- id: trailing-whitespace
2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.37.0
23+
rev: 0.37.2
2424
hooks:
2525
- id: check-github-workflows
2626
- repo: https://github.com/Lucas-C/pre-commit-hooks

changelog.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,44 @@ Template for new versions:
2727
# Future
2828

2929
## New Tools
30+
- `machine-toggle`: interface for toggling gear assemblies, as well as pressure plates (previously in `trackstop`) (available only if ``armok`` tools are shown)
3031

3132
## New Features
3233

3334
## Fixes
35+
- `gui/control-panel`: fixed incorrect description of deteriorate commands
36+
37+
- `gui/petitions`: fix deity display
38+
39+
## Misc Improvements
40+
- `trackstop`: ``pressureplate`` overlay moved to `machine-toggle` as an ``armok`` tool
41+
42+
## Removed
43+
44+
# 53.14-r2
45+
46+
## New Tools
47+
48+
## New Features
49+
50+
## Fixes
51+
52+
## Misc Improvements
53+
54+
## Removed
55+
- ``gui/logcleaner``: Removed
56+
57+
# 53.14-r1
58+
59+
## New Tools
60+
61+
## New Features
62+
63+
## Fixes
64+
- `caravan`: fix ethics warning for wooden weapons
65+
- `gui/control-panel`: fixed inconsistent space in command help ("tweak" -> "tweak ", like with other commands)
66+
- `gui/siegemanager`: consistently set the initial filter to "All"
67+
- `immortal-cravings`: also take care of immortal units with alcohol dependence
3468

3569
## Misc Improvements
3670

docs/gui/logcleaner.rst

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/immortal-cravings.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ immortal-cravings
66
:tags: fort gameplay
77

88
When enabled, this script watches your fort for units that have no physiological
9-
need to eat or drink but still have personality needs that can only be satisfied
10-
by eating or drinking (e.g. necromancers or goblins). This enables those units
11-
to help themselves to a drink or a meal when they crave one and are not
12-
otherwise occupied.
9+
need to eat or drink but are still alcohol dependent or have personality needs
10+
that can only be satisfied by eating or drinking (e.g. necromancers or goblins).
11+
This enables those units to help themselves to a drink or a meal when they crave
12+
one and are not otherwise occupied.
1313

1414
Usage
1515
-----

docs/machine-toggle.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
machine-toggle
2+
==============
3+
4+
.. dfhack-tool::
5+
:summary: Overlay to modify pressure plates and gear assemblies after construction.
6+
:tags: fort armok buildings interface
7+
8+
This script provides 2 overlays that are managed by the `overlay` framework.
9+
The script does nothing when executed.
10+
Track stops and rollers are handled by `trackstop`.
11+
12+
The ``pressureplate`` overlay allows the player to change the trigger settings
13+
of a selected pressure plate after it has been constructed. Manual value entry
14+
of ranges for minecart and creature triggers is provided, allowing greater
15+
precision than the game interface normally permits. Incrementing or decrementing
16+
values always restricts them to the usual intervals.
17+
18+
The ``gearassembly`` overlay allows the player to toggle the state of a selected
19+
gear assembly without linking it to a lever first. This is useful for dwarfputing
20+
and other applications where it may be desirable to default to the disengaged
21+
state until triggered.

docs/trackstop.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,15 @@ trackstop
22
=========
33

44
.. dfhack-tool::
5-
:summary: Overlay to allow changing track stop and related building settings after construction.
5+
:summary: Overlay to allow changing track stop and roller settings after construction.
66
:tags: fort buildings interface
77

8-
This script provides 3 overlays that are managed by the `overlay` framework.
8+
This script provides 2 overlays that are managed by the `overlay` framework.
99
The script does nothing when executed.
10+
Pressure plates and gear assemblies are handled by `machine-toggle`.
1011

1112
The ``trackstop`` overlay allows the player to change the friction and dump
1213
direction of a selected track stop after it has been constructed.
1314

1415
The ``rollers`` overlay allows the player to change the roller direction and
1516
speed of a selected roller after it has been constructed.
16-
17-
The ``pressureplate`` overlay allows the player to change the trigger settings
18-
of a selected pressure plate after it has been constructed. Manual value entry
19-
of ranges for minecart and creature triggers is provided, allowing greater
20-
precision than the game interface normally permits. Incrementing or decrementing
21-
values always restricts them to the usual intervals.

gui/adv-finder.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ function AdvFindWindow:init()
676676
widgets.ConfigureButton{
677677
frame = {t=0, r=0},
678678
on_click = function()
679-
local sel_window = view.subviews[2] --AdvSelWindow
679+
local sel_window = view.subviews.sel_window --AdvSelWindow
680680
sel_window.visible = true
681681
sel_window:sel_list()
682682
end,
@@ -732,7 +732,10 @@ AdvFindScreen.ATTRS{
732732
}
733733

734734
function AdvFindScreen:init()
735-
self:addviews{AdvFindWindow{}, AdvSelWindow{}}
735+
self:addviews{
736+
AdvFindWindow{view_id='find_window'},
737+
AdvSelWindow{view_id='sel_window'},
738+
}
736739
end
737740

738741
function AdvFindScreen:onDismiss()

gui/control-panel.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ function CommandTab:init_footer(panel)
403403
end
404404

405405
local function launch_help(data)
406-
dfhack.run_command('gui/launcher', data.help_command or data.command .. ' ')
406+
dfhack.run_command('gui/launcher', (data.help_command or data.command) .. ' ')
407407
end
408408

409409
function CommandTab:show_help()

gui/logcleaner.lua

Lines changed: 0 additions & 105 deletions
This file was deleted.

gui/siegemanager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ function SiegeManager:init()
489489
{label='Bolt Thrower', value=df.siegeengine_type.BoltThrower},
490490
{label='Catapult', value=df.siegeengine_type.Catapult},
491491
},
492-
initial_option=1,
492+
initial_option=-1,
493493
},
494494
widgets.ToggleHotkeyLabel {
495495
view_id = 'configure_all',

0 commit comments

Comments
 (0)