Release v1.0.8.8: Gearset drag-drop and index 0 fix
- Only call LoadIconId() for GearSet slots so drop still sticks - Allow gearset id 0 (first in list) in drop validation and GetIconIdForPayload - Bump version, changelog, pluginmaster Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -122,10 +122,11 @@ namespace HSUI.Helpers
|
||||
continue;
|
||||
}
|
||||
|
||||
// Populate IconId from ApparentSlotType/ApparentActionId. Required for GearSet and other
|
||||
// dynamic types: the game derives the job icon from the gearset (e.g. first equipment slot).
|
||||
// Without this, when the first gear slot changes the cached IconId can be 0 and the bar shows a blank.
|
||||
slot->LoadIconId();
|
||||
// For GearSet slots, refresh IconId from the gearset (e.g. job icon from first equipment slot).
|
||||
// Only call for already-synced GearSet slots: calling LoadIconId() on other types or before the
|
||||
// game has synced a just-dropped slot can prevent the drop from sticking.
|
||||
if (slot->ApparentSlotType == RaptureHotbarModule.HotbarSlotType.GearSet)
|
||||
slot->LoadIconId();
|
||||
|
||||
bool usable = slot->IsSlotUsable(slot->ApparentSlotType, slot->ApparentActionId);
|
||||
uint iconId = slot->IconId;
|
||||
|
||||
Reference in New Issue
Block a user