View Single Post
  #2  
Unread 09-15-2010, 12:21 AM
ForsakenArcher ForsakenArcher is offline
The Wary
 
Join Date: Sep 2010
Posts: 3
You need to parent the item control to a window.

window = Turbine.UI.Lotro.Window();
window:SetPosition( 200, 200 );
window:SetSize( 200, 200 );
window:SetText( "Test Window" );
window:SetVisible( true );

local player = Turbine.Gameplay.LocalPlayer();
local backpack = player:GetBackpack();
local item = backpack:GetItem( 1 );

itemControl = Turbine.UI.Lotro.ItemControl();
itemControl:SetParent( window );
itemControl:SetPosition( 50, 50 );
itemControl:SetItem( item );
Reply With Quote