Skip to content
2 changes: 2 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ Template for new versions:

## 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
13 changes: 9 additions & 4 deletions plugins/lua/buildingplan/planneroverlay.lua
Original file line number Diff line number Diff line change
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