sadge
This commit is contained in:
parent
9d06ee7250
commit
8ca955f4ea
|
@ -73,18 +73,12 @@ internal class MessageList : ITab {
|
|||
ImGui.SameLine();
|
||||
|
||||
if (ImGuiHelper.SmallIconButton(FontAwesomeIcon.MapMarkerAlt, $"{message.Id}") && territory != null) {
|
||||
var map = this.Plugin.DataManager.GetExcelSheet<Map>()!
|
||||
.Where(map => map.TerritoryType.Row == territory.RowId)
|
||||
.Where(map => message.X >= map.OffsetX && message.Y >= map.OffsetY)
|
||||
.MaxBy(map => Math.Max(map.OffsetX, map.OffsetY));
|
||||
if (map != null) {
|
||||
this.Plugin.GameGui.OpenMapWithMapLink(new MapLinkPayload(
|
||||
territory.RowId,
|
||||
map.RowId,
|
||||
(int) (message.X * 1_000),
|
||||
(int) (message.Z * 1_000)
|
||||
));
|
||||
}
|
||||
this.Plugin.GameGui.OpenMapWithMapLink(new MapLinkPayload(
|
||||
territory.RowId,
|
||||
territory.Map.Row,
|
||||
(int) (message.X * 1_000),
|
||||
(int) (message.Z * 1_000)
|
||||
));
|
||||
}
|
||||
|
||||
if (message.IsHidden) {
|
||||
|
|
Loading…
Reference in New Issue