still not getting the data,
Code:
Save = Turbine.UI.Button();
Save:SetParent( window );
Save:SetPosition( 210, 34 );
Save:SetSize( 78, 15 );
Save:SetBackColor( Turbine.UI.Color( 0.0, 0.05, 1.0 ) );
Save:SetText( ""..Lang[1][21] );
Save:SetTextAlignment( Turbine.UI.ContentAlignment.MiddleCenter );
Save:SetForeColor( Turbine.UI.Color( 0.0, 0.0, 0.0 ) );
shortcut1 = quickslot1:GetShortcut();
local savedatax ={
quickslot1SavData = { Data = shortcut1:GetType(),
Type = shortcut1:GetData(),
}
}
quickslot1.ShortcutChanged = function( sender , args ) -- I changed this to save me time whilst clicking the button, Should be Save.Click...
savedatax.quickslot1SavData.Data = shortcut1:GetData();
savedatax.quickslot1SavData.Type = shortcut1:GetType();
Turbine.Shell.WriteLine("Pre Save");
Turbine.PluginData.Save(Turbine.DataScope.Character, "KmabcSaveData", savedatax);
Turbine.Shell.WriteLine("Post Save");
end
could people copy this into their posts when they reply so i can see exactly what you are referring to, as it would really help me,
thanks
PS, when i change the line:
shortcut1 = quickslot1:GetShortcut();
to
shortcut1 = quickslotlyrical:GetShortcut();
it gets the value for the link, but not on any of the quickslots with items
__________________
We create that what only we love most, But what truly creates us is what(who) loves us the most. - ME, i'm philosopher nao
Where's Chuck Norris' plugin?