View Single Post
  #12  
Unread 11-15-2011, 02:55 PM
Queekusme's Avatar
Queekusme Queekusme is offline
The Indomitable
Interface Author - Click to view interfaces
 
Join Date: May 2011
Posts: 13
ok it's not working!

i can get the type value of 0.000000 but no data, i've tried items, skills and alias'... here's the code:

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] ); --for lang files
	Save:SetTextAlignment( Turbine.UI.ContentAlignment.MiddleCenter );
	Save:SetForeColor( Turbine.UI.Color(  0.0, 0.0, 0.0 ) );

	local savedatax ={
			quickslot1SavData = { Data = "",
					      Type = "",
					    }
			 }

	shortcut1 = quickslot1:GetShortcut();
	local type1 = shortcut1:GetType();
	local data1 = shortcut1:GetData();	
	
		Save.Click = function( sender , args )

			savedatax.quickslot1SavData.Data = data1;
			savedatax.quickslot1SavData.Type = type1;

				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?
Reply With Quote