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