Skip to content
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docs/changelog.txt merge=union
* text=auto
3 changes: 3 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ Template for new versions:

## Fixes
- `autoclothing`, `autoslab`, `tailor`: orders will no longer be created with a repetition frequency of ``NONE``
- `buildingplan`: fixed non-clickable pressure plates's triggers (issue #5736)

## Misc Improvements
- General: DFHack will unconditionally use UTF-8 for the console on Windows, now that DF forces the process effective system code page to 65001 during startup
- `buildingplan`: added a small tooltip text about renaming favorites in the UI


## Documentation

Expand Down
15 changes: 10 additions & 5 deletions plugins/lua/buildingplan/planneroverlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ local function has_direction_panel()
and uibs.building_subtype == df.trap_type.TrackStop)
end

local pressure_plate_panel_frame = {t=4, h=37, w=46, r=28}
local pressure_plate_panel_frame = {t=4, h=38, w=50, r=28}

local function has_pressure_plate_panel()
return is_pressure_plate()
Expand Down Expand Up @@ -903,7 +903,7 @@ function PlannerOverlay:init()

local favorites_panel = widgets.Panel{
view_id='favorites',
frame={t=15, l=0, r=0, h=9},
frame={t=15, l=0, r=0, h=11},
frame_style=gui.FRAME_INTERIOR_MEDIUM,
frame_background=gui.CLEAR_PEN,
visible=self:callback('show_favorites'),
Expand Down Expand Up @@ -940,7 +940,7 @@ function PlannerOverlay:init()
is_selected_fn=make_is_selected_filter('0') },
widgets.CycleHotkeyLabel {
view_id='slot_select',
frame={b=0, l=2},
frame={b=2, l=2},
key='CUSTOM_X',
key_back='CUSTOM_SHIFT_X',
label='next/previous slot',
Expand All @@ -950,11 +950,16 @@ function PlannerOverlay:init()
on_change=function(val) self.selected_favorite = val end,
},
widgets.HotkeyLabel{
frame={b=0, l=28},
frame={b=2, l=28},
label="set/apply selected",
key='CUSTOM_Y',
on_activate=function () self:save_restore_filter(self.selected_favorite) end,
},
widgets.TooltipLabel {
frame={b=0, l=2},
show_tooltip=true,
text="Shift+click to edit the label of a favorite",
},

}
}
Expand All @@ -974,7 +979,7 @@ function PlannerOverlay:show_favorites()
end

function PlannerOverlay:show_hide_favorites(new)
local errors_frame = {t=15+(new and 9 or 0), l=0, r=0}
local errors_frame = {t=15+(new and 11 or 0), l=0, r=0}
self.subviews.errors.frame = errors_frame
self:updateLayout()
end
Expand Down
Loading