I'm struggling to make sense of creating a shortcut for a quickslot through passing an item. According to the documentation:
From what I understand, I should be able to create a shortcut for an item ( backpack/equipment:GetItem() ) and then assign it to a quickslot. However at the moment when I do this, the quickslot is empty as if nothing has been assigned. Is this a bug? Or am I doing something wrong?Code:function Shortcut:Shortcut(item); Parameters: item Type: Item The item to create the shortcut from. Remarks: Initializes a new shortcut.
Code I'm using is a variation of the above (using a loop to get each item). The item is returning correctly, have tested it with item:GetName(). Just doesn't seem to be working in the quickslot.Code:local item = Player:GetEquipment():GetItem(1); cItemInspect:SetShortcut(Turbine.UI.Lotro.Shortcut(item));
Any help would be appreciated Thanks