sadge
This commit is contained in:
parent
702b20be11
commit
154cc7e002
|
@ -73,18 +73,12 @@ 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) {
|
||||||
var map = this.Plugin.DataManager.GetExcelSheet<Map>()!
|
this.Plugin.GameGui.OpenMapWithMapLink(new MapLinkPayload(
|
||||||
.Where(map => map.TerritoryType.Row == territory.RowId)
|
territory.RowId,
|
||||||
.Where(map => message.X >= map.OffsetX && message.Y >= map.OffsetY)
|
territory.Map.Row,
|
||||||
.MaxBy(map => Math.Max(map.OffsetX, map.OffsetY));
|
(int) (message.X * 1_000),
|
||||||
if (map != null) {
|
(int) (message.Z * 1_000)
|
||||||
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