v1.0.8.26: Duty List hidden quests filtered; priority quests on top; no map flag on quest map open
Made-with: Cursor
This commit is contained in:
+3
-3
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>HSUI</AssemblyName>
|
<AssemblyName>HSUI</AssemblyName>
|
||||||
<AssemblyVersion>1.0.8.25</AssemblyVersion>
|
<AssemblyVersion>1.0.8.26</AssemblyVersion>
|
||||||
<FileVersion>1.0.8.25</FileVersion>
|
<FileVersion>1.0.8.26</FileVersion>
|
||||||
<InformationalVersion>1.0.8.25</InformationalVersion>
|
<InformationalVersion>1.0.8.26</InformationalVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"Author": "Knack117",
|
"Author": "Knack117",
|
||||||
"Name": "HSUI",
|
"Name": "HSUI",
|
||||||
"InternalName": "HSUI",
|
"InternalName": "HSUI",
|
||||||
"AssemblyVersion": "1.0.8.25",
|
"AssemblyVersion": "1.0.8.26",
|
||||||
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
||||||
"ApplicableVersion": "any",
|
"ApplicableVersion": "any",
|
||||||
"RepoUrl": "https://github.com/Knack117/HSUI",
|
"RepoUrl": "https://github.com/Knack117/HSUI",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace HSUI.Helpers
|
|||||||
return questData.ClassJobLevel.FirstOrDefault();
|
return questData.ClassJobLevel.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Returns active duty list entries (quests with objectives).</summary>
|
/// <summary>Returns active duty list entries (quests with objectives). Prioritized/tracked quests appear at the top.</summary>
|
||||||
public static unsafe List<DutyListEntry> GetDutyListEntries()
|
public static unsafe List<DutyListEntry> GetDutyListEntries()
|
||||||
{
|
{
|
||||||
var result = new List<DutyListEntry>();
|
var result = new List<DutyListEntry>();
|
||||||
@@ -79,11 +79,15 @@ namespace HSUI.Helpers
|
|||||||
var questSheet = Plugin.DataManager.GetExcelSheet<Quest>();
|
var questSheet = Plugin.DataManager.GetExcelSheet<Quest>();
|
||||||
if (questSheet == null) return result;
|
if (questSheet == null) return result;
|
||||||
|
|
||||||
|
var priorityEntries = new List<DutyListEntry>();
|
||||||
|
var otherEntries = new List<DutyListEntry>();
|
||||||
|
|
||||||
var span = QuestManager.Instance()->NormalQuests;
|
var span = QuestManager.Instance()->NormalQuests;
|
||||||
for (int i = 0; i < span.Length; i++)
|
for (int i = 0; i < span.Length; i++)
|
||||||
{
|
{
|
||||||
ref var q = ref span[i];
|
ref var q = ref span[i];
|
||||||
if (q.QuestId == 0) continue;
|
if (q.QuestId == 0) continue;
|
||||||
|
if (q.IsHidden) continue; // Don't show quests the player hid in their journal
|
||||||
|
|
||||||
uint rowId = q.QuestId + 65536u;
|
uint rowId = q.QuestId + 65536u;
|
||||||
if (!questSheet.HasRow(rowId)) continue;
|
if (!questSheet.HasRow(rowId)) continue;
|
||||||
@@ -97,9 +101,16 @@ namespace HSUI.Helpers
|
|||||||
// Current objective text from Sequence
|
// Current objective text from Sequence
|
||||||
string objectiveText = GetObjectiveText(questData, q.Sequence);
|
string objectiveText = GetObjectiveText(questData, q.Sequence);
|
||||||
|
|
||||||
result.Add(new DutyListEntry(q.QuestId, q.Sequence, questName, objectiveText, iconId));
|
var entry = new DutyListEntry(q.QuestId, q.Sequence, questName, objectiveText, iconId);
|
||||||
|
if (q.IsPriority)
|
||||||
|
priorityEntries.Add(entry);
|
||||||
|
else
|
||||||
|
otherEntries.Add(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result.AddRange(priorityEntries);
|
||||||
|
result.AddRange(otherEntries);
|
||||||
|
|
||||||
// If Lumina didn't give objective text, try the game's ToDoList string array (same source as the default Duty List UI).
|
// If Lumina didn't give objective text, try the game's ToDoList string array (same source as the default Duty List UI).
|
||||||
TryFillObjectivesFromToDoListStringArray(result);
|
TryFillObjectivesFromToDoListStringArray(result);
|
||||||
// Do not read from _ToDoList addon text nodes: addon memory can be invalid when Duty Finder is open or when queuing, causing AccessViolationException in Utf8String.ToString().
|
// Do not read from _ToDoList addon text nodes: addon memory can be invalid when Duty Finder is open or when queuing, causing AccessViolationException in Utf8String.ToString().
|
||||||
@@ -113,6 +124,7 @@ namespace HSUI.Helpers
|
|||||||
{
|
{
|
||||||
ref var lq = ref leveSpan[i];
|
ref var lq = ref leveSpan[i];
|
||||||
if (lq.LeveId == 0) continue;
|
if (lq.LeveId == 0) continue;
|
||||||
|
if (lq.IsHidden) continue; // Don't show levequests the player hid in their journal
|
||||||
|
|
||||||
var leveData = leveSheet.GetRow(lq.LeveId);
|
var leveData = leveSheet.GetRow(lq.LeveId);
|
||||||
|
|
||||||
@@ -542,7 +554,7 @@ namespace HSUI.Helpers
|
|||||||
catch { /* ignore */ }
|
catch { /* ignore */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Gets territory ID for a map (for SetFlagMapMarker). Returns 0 if not found.</summary>
|
/// <summary>Gets territory ID for a map (for opening the map). Returns 0 if not found.</summary>
|
||||||
private static uint GetTerritoryIdForMap(uint mapId)
|
private static uint GetTerritoryIdForMap(uint mapId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -556,7 +568,7 @@ namespace HSUI.Helpers
|
|||||||
catch { return 0; }
|
catch { return 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Opens the Area Map centered on the quest's current objective location. Sets a flag marker when coordinates are available so the map centers on the objective.</summary>
|
/// <summary>Opens the Area Map to the quest's current objective location. Does not place a map flag; opens the map centered (no marker).</summary>
|
||||||
public static unsafe void OpenMapForQuestObjective(ushort questId, byte sequence)
|
public static unsafe void OpenMapForQuestObjective(ushort questId, byte sequence)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -577,40 +589,11 @@ namespace HSUI.Helpers
|
|||||||
if (territoryId == 0) return;
|
if (territoryId == 0) return;
|
||||||
|
|
||||||
var agent = AgentMap.Instance();
|
var agent = AgentMap.Instance();
|
||||||
(float x, float y)? coords = TryGetMapCoordinates(location.Value);
|
|
||||||
if (coords.HasValue)
|
|
||||||
{
|
|
||||||
agent->SetFlagMapMarker(territoryId, mapId, coords.Value.x, coords.Value.y);
|
|
||||||
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.FlagMarker);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.Centered);
|
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.Centered);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch { /* ignore */ }
|
catch { /* ignore */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Tries to get map X,Y from a Level/location row (Lumina column names may vary).</summary>
|
|
||||||
private static (float x, float y)? TryGetMapCoordinates(object? locationRow)
|
|
||||||
{
|
|
||||||
if (locationRow == null) return null;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var type = locationRow.GetType();
|
|
||||||
var xProp = type.GetProperty("X") ?? type.GetProperty("MapX");
|
|
||||||
var yProp = type.GetProperty("Y") ?? type.GetProperty("MapY");
|
|
||||||
if (xProp == null || yProp == null) return null;
|
|
||||||
var xVal = xProp.GetValue(locationRow);
|
|
||||||
var yVal = yProp.GetValue(locationRow);
|
|
||||||
if (xVal == null || yVal == null) return null;
|
|
||||||
float x = Convert.ToSingle(xVal);
|
|
||||||
float y = Convert.ToSingle(yVal);
|
|
||||||
return (x, y);
|
|
||||||
}
|
|
||||||
catch { return null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>Opens the Area Map to the quest's current objective (for scenario guide hints). Prefers current objective so MSQ and Job hints each open the correct map on first click; falls back to issuer location if quest is not in the duty list.</summary>
|
/// <summary>Opens the Area Map to the quest's current objective (for scenario guide hints). Prefers current objective so MSQ and Job hints each open the correct map on first click; falls back to issuer location if quest is not in the duty list.</summary>
|
||||||
public static unsafe void OpenMapForQuestIssuer(uint questRowId)
|
public static unsafe void OpenMapForQuestIssuer(uint questRowId)
|
||||||
{
|
{
|
||||||
@@ -641,20 +624,11 @@ namespace HSUI.Helpers
|
|||||||
if (territoryId != 0)
|
if (territoryId != 0)
|
||||||
{
|
{
|
||||||
var agent = AgentMap.Instance();
|
var agent = AgentMap.Instance();
|
||||||
(float x, float y)? coords = TryGetMapCoordinates(loc);
|
|
||||||
if (coords.HasValue)
|
|
||||||
{
|
|
||||||
agent->SetFlagMapMarker(territoryId, mapId, coords.Value.x, coords.Value.y);
|
|
||||||
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.FlagMarker);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.Centered);
|
agent->OpenMap(mapId, territoryId, null, FFXIVClientStructs.FFXIV.Client.UI.Agent.MapType.Centered);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch { /* ignore */ }
|
catch { /* ignore */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 1.0.8.26
|
||||||
|
- **Duty List & Scenario Guide**: Hidden quests (hidden in journal) are no longer shown in the duty list. Prioritized/tracked quests appear at the top of the list.
|
||||||
|
- **Duty List & Scenario Guide**: Opening the map from a quest objective or scenario hint no longer places a map flag; map still opens to the correct map/area.
|
||||||
|
|
||||||
# 1.0.8.25
|
# 1.0.8.25
|
||||||
- **Duty List & Scenario Guide**: Duty list objectives fix — no longer use index-based pairing (which caused top entries to show wrong objectives). Always match by quest name (exact or fuzzy for truncated titles) and prefer the game's string array over Lumina so text matches the default duty list UI.
|
- **Duty List & Scenario Guide**: Duty list objectives fix — no longer use index-based pairing (which caused top entries to show wrong objectives). Always match by quest name (exact or fuzzy for truncated titles) and prefer the game's string array over Lumina so text matches the default duty list UI.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
[{"Author":"Knack117","Name":"HSUI","Punchline":"A modern HUD replacement built for customization.","Description":"HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.","Changelog":"1.0.8.25: Duty List objectives — match by name only, prefer game string array; no index fallback. 1.0.8.24: Context menu keeps element visible; Duty List objectives fixed (match by quest name). 1.0.8.23: Main Menu bar; Duty List & Scenario Guide transparent background. 1.0.8.22: Duty List hide-unless-hovered fix; tooltips job gauge costs. 1.0.8.21: Duty List in-duty info. 1.0.8.20: Fixed cooldown overlays showing through game UI (dialogue box) when Show HUD during dialogue enabled. 1.0.8.19: Hotbar visibility moved to per-hotbar menus; removed Visibility Hotbars tab. 1.0.8.18: Visibility \"Hide unless hovered\" option. 1.0.8.17: Controller hotbars (cross layout, separate storage, sync with game). 1.0.8.16: Show HUD during dialogue and interaction. 1.0.8.15: Tooltips game-style formatting. 1.0.8.14: Mouse GCD Indicator. 1.0.8.13: Item tooltips now show. 1.0.8.12: Item/HQ icons now draw on hotbar. 1.0.8.11: Hotbar tooltip crash fix. 1.0.8.10: Hotbar crash fix when dragging inventory items. 1.0.8.9: Gearset persists on slot. 1.0.8.8: Gearset drag-drop fix. 1.0.8.7: Fixed Gearset icon clearing. 1.0.8.6: Crafting action tooltips full description. 1.0.8.4: Alliance Frames 1 and 2 fix; Hide in duty no longer hides alliance frames. 1.0.8.3: Fix left-click staying broken after disable. 1.0.8.2: Charge icons stay lit until all charges spent.","InternalName":"HSUI","AssemblyVersion":"1.0.8.25","RepoUrl":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI","ApplicableVersion":"any","Tags":["UI","HUD","Unit Frames","Nameplates","Party Frames","Hotbars"],"CategoryTags":["UI"],"DalamudApiLevel":14,"IconUrl":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/raw/branch/main/Media/Images/icon.png","ImageUrls":[],"DownloadLinkInstall":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.25/latest.zip","IsHide":false,"IsTestingExclusive":false,"DownloadLinkTesting":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.25/latest.zip","DownloadLinkUpdate":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.25/latest.zip","LastUpdate":"1772760000"}]
|
[{"Author":"Knack117","Name":"HSUI","Punchline":"A modern HUD replacement built for customization.","Description":"HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.","Changelog":"1.0.8.26: Duty List hidden quests filtered; priority quests on top; no map flag on quest map open. 1.0.8.25: Duty List objectives — match by name only, prefer game string array; no index fallback. 1.0.8.24: Context menu keeps element visible; Duty List objectives fixed (match by quest name). 1.0.8.23: Main Menu bar; Duty List & Scenario Guide transparent background. 1.0.8.22: Duty List hide-unless-hovered fix; tooltips job gauge costs. 1.0.8.21: Duty List in-duty info. 1.0.8.20: Fixed cooldown overlays showing through game UI (dialogue box) when Show HUD during dialogue enabled. 1.0.8.19: Hotbar visibility moved to per-hotbar menus; removed Visibility Hotbars tab. 1.0.8.18: Visibility \"Hide unless hovered\" option. 1.0.8.17: Controller hotbars (cross layout, separate storage, sync with game). 1.0.8.16: Show HUD during dialogue and interaction. 1.0.8.15: Tooltips game-style formatting. 1.0.8.14: Mouse GCD Indicator. 1.0.8.13: Item tooltips now show. 1.0.8.12: Item/HQ icons now draw on hotbar. 1.0.8.11: Hotbar tooltip crash fix. 1.0.8.10: Hotbar crash fix when dragging inventory items. 1.0.8.9: Gearset persists on slot. 1.0.8.8: Gearset drag-drop fix. 1.0.8.7: Fixed Gearset icon clearing. 1.0.8.6: Crafting action tooltips full description. 1.0.8.4: Alliance Frames 1 and 2 fix; Hide in duty no longer hides alliance frames. 1.0.8.3: Fix left-click staying broken after disable. 1.0.8.2: Charge icons stay lit until all charges spent.","InternalName":"HSUI","AssemblyVersion":"1.0.8.26","RepoUrl":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI","ApplicableVersion":"any","Tags":["UI","HUD","Unit Frames","Nameplates","Party Frames","Hotbars"],"CategoryTags":["UI"],"DalamudApiLevel":14,"IconUrl":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/raw/branch/main/Media/Images/icon.png","ImageUrls":[],"DownloadLinkInstall":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.26/latest.zip","IsHide":false,"IsTestingExclusive":false,"DownloadLinkTesting":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.26/latest.zip","DownloadLinkUpdate":"http://brassnet.ddns.net:33983/KnackAtNite/HSUI/releases/download/v1.0.8.26/latest.zip","LastUpdate":"1772932800"}]
|
||||||
|
|||||||
Reference in New Issue
Block a user