Skip to content

Commit

Permalink
tweak: Find on Map searches by path (#220)
Browse files Browse the repository at this point in the history
find on map searches by path instead of prefab id
  • Loading branch information
mc-oofert authored Jul 31, 2023
1 parent da178a5 commit c340ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/app/ui/cpenvironment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type App interface {
LoadedEnvironment() *dmenv.Dme
DoSelectPrefabByPath(string)
DoEditPrefabByPath(string)
DoSearchPrefab(prefabId uint64)
DoSearchPrefabByPath(path string)
HasActiveMap() bool
ShowLayout(name string, focus bool)
PathsFilter() *dm.PathsFilter
Expand Down
2 changes: 1 addition & 1 deletion internal/app/ui/cpenvironment/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func (e *Environment) doFindOnMap(n *treeNode) func() {
prefab := dmmap.PrefabStorage.Initial(n.orig.Path)
log.Print("do find object on map:", prefab.Path())
e.app.ShowLayout(lnode.NameSearch, true)
e.app.DoSearchPrefab(prefab.Id())
e.app.DoSearchPrefabByPath(prefab.Path())
}
}

0 comments on commit c340ebd

Please sign in to comment.