lotrointerface.com
Search Downloads

LoTROInterface SVN SortPack

[/] [trunk/] [JackdawPlugins/] [SortPack/] [functions.LUA] - Blame information for rev 104

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 MrJackdaw-1942
function mergetable(table1,list)
2 53 MrJackdaw-1942
        --Appends tables from list on the end of table1
3 MrJackdaw-1942
        for i=1,#list do
4 MrJackdaw-1942
                table2=list[i]
5 MrJackdaw-1942
                        local LenTable1=#table1
6 MrJackdaw-1942
                        for a =LenTable1+1,#table1+#table2 do
7 MrJackdaw-1942
                                table1[a]=table2[a-LenTable1]
8 MrJackdaw-1942
                        end
9 MrJackdaw-1942
        end
10 100 MrJackdaw-1942
end
11 MrJackdaw-1942
 
12 MrJackdaw-1942
 
13 MrJackdaw-1942
--Frame control - Gives a nice border to the window.
14 MrJackdaw-1942
Frame=class(Turbine.UI.Control)
15 MrJackdaw-1942
 
16 MrJackdaw-1942
function Frame:Constructor()
17 MrJackdaw-1942
Turbine.UI.Control.Constructor( self );
18 MrJackdaw-1942
        self.base=Turbine.UI.Control()
19 MrJackdaw-1942
        self.base:SetBackColor(Turbine.UI.Color(1,1,1,1))
20 MrJackdaw-1942
        self.base:SetParent(self)
21 MrJackdaw-1942
        self.high=Turbine.UI.Control()
22 MrJackdaw-1942
        self.high:SetBackColor(Turbine.UI.Color(1,0,0,0))
23 MrJackdaw-1942
        self.high:SetPosition(1,1)
24 MrJackdaw-1942
        self.high:SetParent(self.base)
25 MrJackdaw-1942
        self:SetVisible(true)
26 MrJackdaw-1942
 
27 MrJackdaw-1942
        self.SizeChanged=function()
28 MrJackdaw-1942
                for i=1,#self.SizeChange do
29 MrJackdaw-1942
                        self.SizeChange[i]()
30 MrJackdaw-1942
                end
31 MrJackdaw-1942
        end
32 MrJackdaw-1942
        self.SizeChange={}
33 MrJackdaw-1942
        table.insert(self.SizeChange,function()
34 MrJackdaw-1942
                local x,y=self:GetSize()
35 MrJackdaw-1942
                self.base:SetSize(x,y)
36 MrJackdaw-1942
                self.high:SetSize(x-2,y-2)
37 MrJackdaw-1942
        end)
38 MrJackdaw-1942
end
39 MrJackdaw-1942
 

All times are GMT -5. The time now is 05:50 PM.


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