lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Unread 11-15-2011, 02:28 PM
Queekusme's Avatar
Queekusme Queekusme is offline
The Indomitable
Interface Author - Click to view interfaces
 
Join Date: May 2011
Posts: 13
right, so i need to set each datastring of quickslot(n)savedatax to a table with data and type

(where n = quickslot's number)

e.g.

Code:
shortcut(n) = quickslot(n):GetShortcut()
        local type(n) = shortcut(n):GetType(),
        local data(n) = shortcut(n):GetData()
                                    
	quickslot1SavData = type,data,
	          -- And then copy for the other shortcuts...
		}

local savedatax ={
		quickslot(n)SavData = { Data = data(n),
                                               Type = type(n),
                                               }
		...
		}
and for loading:

Code:
savedatax = Turbine.etc.loading(Blardyblar)

local sc(n)=Turbine.UI.Lotro.Shortcut();
sc(n):SetType(savedatax.quickslot(n)SavData.Type);
sc(n):SetData((savedatax.quickslot(n)SavData.Data); 
quickslot(n):SetShortcut(sc(n));
God that's a bit confusing! lets try it shall we...


SRY 4 FORMATTING
__________________
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving quickslot data to table Marll Lua Programming Help (L) 8 01-07-2011 02:09 PM
Saving window position Olenn Lua Programming Help (L) 25 10-01-2010 01:08 AM
Plugins Not Saving Settings Valdacil Interface Help (L) 13 09-10-2010 10:43 PM
Saving UI Layout... Sythix Interface Help (L) 1 07-05-2007 11:15 PM
chat window not saving position... AstroCat Interface Help (L) 1 07-01-2007 11:12 AM


All times are GMT -5. The time now is 08:44 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui