From fb15222319ab437fd925f9f84f6110c662f07c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kami=C5=84ski?= Date: Wed, 1 May 2024 19:39:40 +0200 Subject: [PATCH] Update UI-related messages --- .../V66/AreaVisualData/View/MapMarkerView.cs | 8 ++++-- .../Controller/MissionAndMarkerController.cs | 8 ++++-- .../Generic/Event/DisplayUiNotification.cs | 14 ++++++++-- AeroMessages/GSS/V66/Generic/Event/PingMap.cs | 13 +++++++-- .../GSS/V66/Generic/Event/SendTipMessage.cs | 28 +++++++++++++------ 5 files changed, 53 insertions(+), 18 deletions(-) diff --git a/AeroMessages/GSS/V66/AreaVisualData/View/MapMarkerView.cs b/AeroMessages/GSS/V66/AreaVisualData/View/MapMarkerView.cs index 4c88ed3..7e818e0 100644 --- a/AeroMessages/GSS/V66/AreaVisualData/View/MapMarkerView.cs +++ b/AeroMessages/GSS/V66/AreaVisualData/View/MapMarkerView.cs @@ -56,9 +56,11 @@ public partial class MapMarkerView public struct MapMarkerData { [AeroSdb("dbencounterdata::MapMarkerInfo", "id")] - public ushort MarkerType; // Weird - public uint Unk2; - public uint Unk3; + public ushort MarkerType; + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint TitleId; + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint DescriptionId; public EntityId EncounterId; public EntityId EncounterMarkerId; // No controller specified. diff --git a/AeroMessages/GSS/V66/Character/Controller/MissionAndMarkerController.cs b/AeroMessages/GSS/V66/Character/Controller/MissionAndMarkerController.cs index 1a7cfd3..d9b96c4 100644 --- a/AeroMessages/GSS/V66/Character/Controller/MissionAndMarkerController.cs +++ b/AeroMessages/GSS/V66/Character/Controller/MissionAndMarkerController.cs @@ -115,9 +115,11 @@ public partial class MissionAndMarkerController public struct PersonalMapMarkerData { [AeroSdb("dbencounterdata::MapMarkerInfo", "id")] - public ushort MarkerType; // Weird - public uint Unk2; - public uint Unk3; + public ushort MarkerType; + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint TitleId; + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint DescriptionId; public EntityId EncounterId; public EntityId EncounterMarkerId; // No controller specified. diff --git a/AeroMessages/GSS/V66/Generic/Event/DisplayUiNotification.cs b/AeroMessages/GSS/V66/Generic/Event/DisplayUiNotification.cs index 4da9117..3f2f5ae 100644 --- a/AeroMessages/GSS/V66/Generic/Event/DisplayUiNotification.cs +++ b/AeroMessages/GSS/V66/Generic/Event/DisplayUiNotification.cs @@ -6,11 +6,21 @@ namespace AeroMessages.GSS.V66.Generic [AeroMessageId(MsgType.GSS, MsgSrc.Message, 0, 103)] public partial class DisplayUiNotification { + public enum BannerType : byte + { + Normal = 1, + MoneyBomb = 2, + } + [AeroSdb("dblocalization::LocalizedText", "id")] public uint LocalizedTextId; - public uint Unk1; + + public uint Duration; // seconds + [AeroArray(typeof(byte))] public UiNotificationData[] Unk2; - public byte Unk3; + + [AeroSdb("dbcharacter::BannerType", "id")] + public BannerType Banner; } [AeroBlock] diff --git a/AeroMessages/GSS/V66/Generic/Event/PingMap.cs b/AeroMessages/GSS/V66/Generic/Event/PingMap.cs index ead85e7..fbfeed8 100644 --- a/AeroMessages/GSS/V66/Generic/Event/PingMap.cs +++ b/AeroMessages/GSS/V66/Generic/Event/PingMap.cs @@ -6,8 +6,17 @@ namespace AeroMessages.GSS.V66.Generic [Aero] [AeroMessageId(MsgType.GSS, MsgSrc.Message, 0, 110)] public partial class PingMap - { + { + public enum PingMapType : uint + { + Normal = 1, // orange + Dynamic = 2, // purple + // anything else => white + } + public Vector3 Position; - public uint Unk; + + [AeroSdb("dbcharacter::UiPingType", "id")] + public PingMapType Type; } } \ No newline at end of file diff --git a/AeroMessages/GSS/V66/Generic/Event/SendTipMessage.cs b/AeroMessages/GSS/V66/Generic/Event/SendTipMessage.cs index 1b97344..9ec48bb 100644 --- a/AeroMessages/GSS/V66/Generic/Event/SendTipMessage.cs +++ b/AeroMessages/GSS/V66/Generic/Event/SendTipMessage.cs @@ -1,18 +1,30 @@ using Aero.Gen.Attributes; using static Aero.Gen.Attributes.AeroMessageIdAttribute; using AeroMessages.Common; -using System.Numerics; -using System; namespace AeroMessages.GSS.V66.Generic { [Aero] [AeroMessageId(MsgType.GSS, MsgSrc.Message, 0, 92)] public partial class SendTipMessage - { - public byte Unk1; - public uint Unk2; - public uint Unk3; - public HalfFloat Unk4; - public sbyte Unk5; + { + public enum HintType : byte + { + None = 0, + Movement = 1, + TechSlot = 2 + } + + [AeroSdb("clientmissions::UiHints", "id")] + public HintType Hint; + + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint MessageId; + + [AeroSdb("dblocalization::LocalizedText", "id")] + public uint HeaderId; + + public HalfFloat Duration; // seconds + + public sbyte Persistent; } } \ No newline at end of file