Skip to content

Commit

Permalink
Use refreshSidebar()
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Jun 23, 2017
1 parent d461a84 commit 3e431de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devel/find-offsets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function try_restore_cursor()
if not dfhack.internal.getAddress('cursor') then return end
if prev_cursor.x >= 0 then
df.global.cursor:assign(prev_cursor)
dwarfmode_feed_input('CURSOR_DOWN_Z', 'CURSOR_UP_Z')
dfhack.gui.refreshSidebar()
end
end

Expand Down
3 changes: 1 addition & 2 deletions gui/liquids.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ function LiquidsUI:onInput(keys)
return
end
self:dismiss()
self:sendInputToParent('CURSOR_DOWN_Z')
self:sendInputToParent('CURSOR_UP_Z')
guidm.refreshSidebar()
elseif keys.SELECT then
local cursor = guidm.getCursorPos()
local sp = guidm.getSelection()
Expand Down
3 changes: 1 addition & 2 deletions gui/siege-engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ function SiegeEngine:onInput_main(keys)
elseif keys.CUSTOM_T then
self:showCursor(true)
self.mode = self.mode_pile
self:sendInputToParent('CURSOR_DOWN_Z')
self:sendInputToParent('CURSOR_UP_Z')
guidm.refreshSidebar()
elseif keys.CUSTOM_G then
local prof = plugin.saveWorkshopProfile(self.building)
prof.min_level = math.max(0, prof.min_level-1)
Expand Down

0 comments on commit 3e431de

Please sign in to comment.