View Single Post
  #19  
Unread 11-18-2011, 02:04 AM
Queekusme's Avatar
Queekusme Queekusme is offline
The Indomitable
Interface Author - Click to view interfaces
 
Join Date: May 2011
Posts: 13
IT'S WORKING

For anyone else's reference:

Code:
        Save = Turbine.UI.Button(); -- Not used anymore but will keep in
	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 ) );

	shortcut = quickslot1:GetShortcut();

	local savedatax ={
			quickslot1SavData = { Data = shortcut:GetType(),
					      Type = shortcut:GetData(),
					    }
			 }	
	
	quickslot1.ShortcutChanged = function( sender , args )

		shortcut1 = quickslot1:GetShortcut();
		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
__________________
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?

Last edited by Queekusme : 11-18-2011 at 02:13 AM.
Reply With Quote