Skip to content

Commit

Permalink
Merge pull request #877 from myk002/myk_highlight
Browse files Browse the repository at this point in the history
take advantage of new highlight parameter
  • Loading branch information
myk002 authored Oct 28, 2023
2 parents d41fc4b + 54fb799 commit 996c040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions gui/gm-editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,7 @@ function GmEditorUi:gotoPos()
end
end
if pos then
dfhack.gui.revealInDwarfmodeMap(pos,true)
df.global.game.main_interface.recenter_indicator_m.x = pos.x
df.global.game.main_interface.recenter_indicator_m.y = pos.y
df.global.game.main_interface.recenter_indicator_m.z = pos.z
dfhack.gui.revealInDwarfmodeMap(pos,true,true)
end
end
function GmEditorUi:editSelectedRaw(index,choice)
Expand Down
2 changes: 1 addition & 1 deletion warn-stranded.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function WarningWindow:onZoom()
local unit = choice.data['unit']

local target = xyz2pos(dfhack.units.getPosition(unit))
dfhack.gui.revealInDwarfmodeMap(target, true)
dfhack.gui.revealInDwarfmodeMap(target, false, true)
end

function WarningWindow:onToggleGroup()
Expand Down

0 comments on commit 996c040

Please sign in to comment.