lotrointerface.com
Search Downloads

LoTROInterface SVN DUInterface

[/] [trunk/] [DigitalUtopia/] [DUInterface/] [Window.lua] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 Digital_Utopia-2894
 
2 2 Digital_Utopia-2894
--import "DigitalUtopia.Utilsx.Class";
3 Digital_Utopia-2894
 
4 Digital_Utopia-2894
 
5 Digital_Utopia-2894
Window = class( Turbine.UI.Lotro.Window );
6 Digital_Utopia-2894
function Window:Constructor(width,height)
7 Digital_Utopia-2894
        Turbine.UI.Lotro.Window.Constructor( self );
8 5 Digital_Utopia-2894
        self:SetVisible(true);
9 2 Digital_Utopia-2894
        self.tWindowHeight=100;
10 Digital_Utopia-2894
        self.tWindowWidth=150;
11 Digital_Utopia-2894
        self.Height=100;
12 Digital_Utopia-2894
        self.Width=150;
13 Digital_Utopia-2894
        self.tBarWidth=35;
14 5 Digital_Utopia-2894
        self.mWindow=Turbine.UI.Window();
15 Digital_Utopia-2894
        self.mWindow:SetVisible(true);
16 Digital_Utopia-2894
        self.mWindow:SetParent(self);
17 Digital_Utopia-2894
        self.mWindow:SetPosition(0,0);
18 6 Digital_Utopia-2894
        if width == nil then
19 Digital_Utopia-2894
                width=200;
20 Digital_Utopia-2894
        end
21 Digital_Utopia-2894
        if height==nil then
22 Digital_Utopia-2894
          height=200;
23 Digital_Utopia-2894
        end
24 5 Digital_Utopia-2894
        self.mWindow:SetSize(width,height);
25 Digital_Utopia-2894
        self.mWindow:SetMouseVisible(false);
26 2 Digital_Utopia-2894
        self:SetSize(width,height);
27 Digital_Utopia-2894
 
28 Digital_Utopia-2894
        self:SetOpacity(0);
29 Digital_Utopia-2894
        self.bg=Turbine.UI.Window();
30 5 Digital_Utopia-2894
        self.bg:SetVisible(true);
31 Digital_Utopia-2894
 
32 Digital_Utopia-2894
        self.bg:SetParent(self.mWindow);
33 2 Digital_Utopia-2894
        self.bg:SetPosition(36,36);
34 Digital_Utopia-2894
        self.bg:SetSize(30,30);
35 Digital_Utopia-2894
        self.bg:SetBackground("DigitalUtopia/DUInterface/Resources/window_bgb.tga");
36 Digital_Utopia-2894
        self.ul=Turbine.UI.Window();
37 5 Digital_Utopia-2894
        self.ul:SetVisible(true);
38 Digital_Utopia-2894
        self.ul:SetParent(self.mWindow);
39 2 Digital_Utopia-2894
        self.ul:SetPosition(0,18);
40 Digital_Utopia-2894
        self.ul:SetSize(36,36);
41 Digital_Utopia-2894
        self.ul:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_upper_left.tga");
42 5 Digital_Utopia-2894
        self.ul:SetStretchMode(2);
43 2 Digital_Utopia-2894
                self.l=Turbine.UI.Window();
44 5 Digital_Utopia-2894
                self.l:SetVisible(true);
45 Digital_Utopia-2894
        self.l:SetParent(self.mWindow);
46 2 Digital_Utopia-2894
        self.l:SetPosition(0,54);
47 Digital_Utopia-2894
        self.l:SetSize(36,self:GetHeight()-90);
48 Digital_Utopia-2894
        self.l:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_side_left.tga");
49 5 Digital_Utopia-2894
        self.l:SetStretchMode(2);
50 2 Digital_Utopia-2894
        self.ll=Turbine.UI.Window();
51 5 Digital_Utopia-2894
        self.ll:SetVisible(true);
52 Digital_Utopia-2894
        self.ll:SetParent(self.mWindow)
53 2 Digital_Utopia-2894
        self.ll:SetPosition(0,self:GetHeight()-36);
54 Digital_Utopia-2894
        self.ll:SetSize(36,36);
55 Digital_Utopia-2894
        self.ll:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_bottom_left.tga");
56 5 Digital_Utopia-2894
        self.ll:SetStretchMode(2);
57 2 Digital_Utopia-2894
        self.u=Turbine.UI.Window();
58 5 Digital_Utopia-2894
        self.u:SetVisible(true);
59 Digital_Utopia-2894
        self.u:SetParent(self.mWindow)
60 2 Digital_Utopia-2894
        self.u:SetPosition(36,18);
61 Digital_Utopia-2894
        self.u:SetSize(self:GetWidth()-72,36);
62 Digital_Utopia-2894
        self.u:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_upper.tga");
63 Digital_Utopia-2894
        self.u:SetMouseVisible(false);
64 5 Digital_Utopia-2894
        self.u:SetStretchMode(2);
65 2 Digital_Utopia-2894
        self.ur=Turbine.UI.Window();
66 5 Digital_Utopia-2894
        self.ur:SetVisible(true);
67 Digital_Utopia-2894
        self.ur:SetParent(self.mWindow)
68 2 Digital_Utopia-2894
        self.ur:SetPosition(self:GetWidth()-36,18);
69 Digital_Utopia-2894
        self.ur:SetSize(36,36);
70 Digital_Utopia-2894
        self.ur:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_upper_right.tga");
71 5 Digital_Utopia-2894
        self.ur:SetStretchMode(2);
72 2 Digital_Utopia-2894
        self.r=Turbine.UI.Window();
73 5 Digital_Utopia-2894
        self.r:SetVisible(true);
74 Digital_Utopia-2894
        self.r:SetParent(self.mWindow)
75 2 Digital_Utopia-2894
        self.r:SetPosition(self:GetWidth()-36,54);
76 Digital_Utopia-2894
        self.r:SetSize(36,self:GetHeight()-90);
77 Digital_Utopia-2894
        self.r:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_side_right.tga");
78 5 Digital_Utopia-2894
        self.r:SetStretchMode(2);
79 2 Digital_Utopia-2894
        self.lr=Turbine.UI.Window();
80 5 Digital_Utopia-2894
        self.lr:SetVisible(true);
81 Digital_Utopia-2894
        self.lr:SetParent(self.mWindow)
82 2 Digital_Utopia-2894
        self.lr:SetPosition(self:GetWidth()-36,self:GetHeight()-36);
83 Digital_Utopia-2894
        self.lr:SetSize(36,36);
84 Digital_Utopia-2894
        self.lr:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_lower_right.tga");
85 5 Digital_Utopia-2894
        self.lr:SetStretchMode(2);
86 2 Digital_Utopia-2894
        self.b=Turbine.UI.Window();
87 5 Digital_Utopia-2894
        self.b:SetVisible(true);
88 Digital_Utopia-2894
        self.b:SetParent(self.mWindow)
89 2 Digital_Utopia-2894
        self.b:SetPosition(36,self:GetHeight()-36);
90 Digital_Utopia-2894
        self.b:SetSize(self:GetWidth()-72,36);
91 Digital_Utopia-2894
        self.b:SetBackground("DigitalUtopia/DUInterface/Resources/box_silver_bottom.tga");
92 5 Digital_Utopia-2894
        self.b:SetStretchMode(2);
93 Digital_Utopia-2894
        self.tbHolder=Turbine.UI.Control();
94 Digital_Utopia-2894
        self.tbHolder:SetVisible(true);
95 2 Digital_Utopia-2894
        self.tbHolder:SetMouseVisible(false);
96 5 Digital_Utopia-2894
        self.tbHolder:SetParent(self.mWindow);
97 2 Digital_Utopia-2894
        self.tbHolder:SetSize(105,42);
98 Digital_Utopia-2894
        self.tbHolder:SetPosition(22,-6);
99 5 Digital_Utopia-2894
        self.tbLeft=Turbine.UI.Window();
100 Digital_Utopia-2894
        self.tbLeft:SetVisible(true);
101 2 Digital_Utopia-2894
        self.tbLeft:SetParent(self.tbHolder);
102 Digital_Utopia-2894
        self.tbLeft:SetMouseVisible(false);
103 Digital_Utopia-2894
        self.tbLeft:SetSize(35,42);
104 Digital_Utopia-2894
        self.tbLeft:SetBackground("DigitalUtopia/DUInterface/Resources/base_box_titlebar_left.tga");
105 5 Digital_Utopia-2894
        self.tbRight=Turbine.UI.Window();
106 Digital_Utopia-2894
        self.tbRight:SetVisible(true);
107 2 Digital_Utopia-2894
        self.tbRight:SetParent(self.tbHolder);
108 Digital_Utopia-2894
        self.tbRight:SetMouseVisible(false);
109 Digital_Utopia-2894
        self.tbRight:SetSize(35,42);
110 Digital_Utopia-2894
        self.tbRight:SetPosition(self.tbHolder:GetWidth()-35,0)
111 Digital_Utopia-2894
        self.tbRight:SetBackground("DigitalUtopia/DUInterface/Resources/base_box_titlebar_right.tga");
112 5 Digital_Utopia-2894
        self.tbCenter=Turbine.UI.Window();
113 Digital_Utopia-2894
        self.tbCenter:SetVisible(true);
114 2 Digital_Utopia-2894
        self.tbCenter:SetParent(self.tbHolder);
115 Digital_Utopia-2894
        self.tbCenter:SetMouseVisible(false);
116 Digital_Utopia-2894
        self.tbCenter:SetSize(self.tbHolder:GetWidth()-70,42);
117 Digital_Utopia-2894
        self.tbCenter:SetPosition(self.tbLeft:GetLeft()+35,0)
118 Digital_Utopia-2894
        self.tbCenter:SetBackground("DigitalUtopia/DUInterface/Resources/base_box_titlebar_top.tga");
119 Digital_Utopia-2894
        self.text = Turbine.UI.Label();
120 Digital_Utopia-2894
        self.text:SetParent(self.tbCenter);
121 Digital_Utopia-2894
        self.text:SetFont(Turbine.UI.Lotro.Font.TrajanPro18);
122 Digital_Utopia-2894
        self.text:SetTextAlignment(Turbine.UI.ContentAlignment.MiddleCenter);
123 Digital_Utopia-2894
        self.text:SetForeColor(Turbine.UI.Color(1,0.96,0.874,0.576));
124 Digital_Utopia-2894
        self.text:SetFontStyle(Turbine.UI.FontStyle.Outline );
125 Digital_Utopia-2894
        self.text:SetOutlineColor(Turbine.UI.Color(.6,0,0,0));
126 Digital_Utopia-2894
        self.text:SetTop(15);
127 Digital_Utopia-2894
        self.text:SetZOrder(99);
128 Digital_Utopia-2894
        self.text:SetMouseVisible(false);
129 5 Digital_Utopia-2894
        self.clButton=Turbine.UI.Window();
130 Digital_Utopia-2894
        self.clButton:SetVisible(true);
131 2 Digital_Utopia-2894
        self.clButton:SetParent(self);
132 Digital_Utopia-2894
        self.clButton:SetSize(17,17);
133 Digital_Utopia-2894
        self.clButton:SetBackground("DigitalUtopia/DUInterface/Resources/titlebar_X_2.tga");
134 Digital_Utopia-2894
 
135 Digital_Utopia-2894
        self.clButton.MouseEnter=function(sender,args)
136 Digital_Utopia-2894
        self.clButton:SetBackground("DigitalUtopia/DUInterface/Resources/titlebar_X_2_mouseover.tga");
137 Digital_Utopia-2894
        end
138 Digital_Utopia-2894
 
139 Digital_Utopia-2894
        self.clButton.MouseLeave=function(sender,args)
140 Digital_Utopia-2894
        self.clButton:SetBackground("DigitalUtopia/DUInterface/Resources/titlebar_X_2.tga");
141 Digital_Utopia-2894
        end
142 Digital_Utopia-2894
 
143 Digital_Utopia-2894
        self.clButton.MouseDown=function(sender,args)
144 Digital_Utopia-2894
        self.clButton:SetBackground("DigitalUtopia/DUInterface/Resources/titlebar_X_2_pressed.tga");
145 Digital_Utopia-2894
        end
146 Digital_Utopia-2894
 
147 Digital_Utopia-2894
        self.clButton.MouseClick=function(sender,args)
148 Digital_Utopia-2894
        self.clButton:SetBackground("DigitalUtopia/DUInterface/Resources/titlebar_X_2.tga");
149 5 Digital_Utopia-2894
        self:Activate();
150 2 Digital_Utopia-2894
        self:Close();
151 Digital_Utopia-2894
        end
152 5 Digital_Utopia-2894
 
153 Digital_Utopia-2894
        self.Activated=function(sender,args)
154 Digital_Utopia-2894
 
155 Digital_Utopia-2894
 
156 Digital_Utopia-2894
        end
157 2 Digital_Utopia-2894
 
158 5 Digital_Utopia-2894
        self.Deactivated=function(sender,args)
159 Digital_Utopia-2894
                self:SetZOrder(0);
160 Digital_Utopia-2894
        end
161 2 Digital_Utopia-2894
 
162 5 Digital_Utopia-2894
        self.ul.MouseClick=function(sender,args)
163 Digital_Utopia-2894
                self:Activate();
164 Digital_Utopia-2894
        end
165 Digital_Utopia-2894
        self.u.MouseClick=function(sender,args)
166 Digital_Utopia-2894
                self:Activate();
167 Digital_Utopia-2894
        end
168 Digital_Utopia-2894
        self.ur.MouseClick=function(sender,args)
169 Digital_Utopia-2894
                self:Activate();
170 Digital_Utopia-2894
        end
171 Digital_Utopia-2894
        self.l.MouseClick=function(sender,args)
172 Digital_Utopia-2894
                self:Activate();
173 Digital_Utopia-2894
        end
174 Digital_Utopia-2894
        self.r.MouseClick=function(sender,args)
175 Digital_Utopia-2894
                self:Activate();
176 Digital_Utopia-2894
        end
177 Digital_Utopia-2894
        self.ll.MouseClick=function(sender,args)
178 Digital_Utopia-2894
                self:Activate();
179 Digital_Utopia-2894
        end
180 Digital_Utopia-2894
        self.b.MouseClick=function(sender,args)
181 Digital_Utopia-2894
                self:Activate();
182 Digital_Utopia-2894
        end
183 Digital_Utopia-2894
        self.lr.MouseClick=function(sender,args)
184 Digital_Utopia-2894
                self:Activate();
185 Digital_Utopia-2894
        end
186 Digital_Utopia-2894
        self.bg.MouseClick=function(sender,args)
187 Digital_Utopia-2894
                self:Activate();
188 Digital_Utopia-2894
        end
189 6 Digital_Utopia-2894
function self:getFunctions()
190 Digital_Utopia-2894
        Turbine.Shell.WriteLine("in gf");
191 Digital_Utopia-2894
        self.fa={implementation="Turbine.UI.Lotro.Window"};
192 5 Digital_Utopia-2894
 
193 6 Digital_Utopia-2894
        return self.fa;
194 Digital_Utopia-2894
end
195 Digital_Utopia-2894
 
196 Digital_Utopia-2894
end

All times are GMT -5. The time now is 10:51 AM.


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