Language:
Lua     Change language:
Pastebin: 123328
Author: Monolit
Subject: Untitled
Created: 2009-08-25 09:18:55
Download and save
Toggle line numbers
1--[[ 
2    ### IMPORTANT ### 
3        Set the value to 'false' to actually ENABLE THE LAYOUT: 
4]] 
5 
6if false then return end -- We don't want to enable it for Lib-users 
7 
8--[[ 
9    I think, the layout is fairly self-explanatory, 
10    Here's a list of all available options: 
11        noIcon, useLabel, formatting, 
12        parent, width, height, scale, alpha 
13        fontFamily, fontSize, fontStyle, fontObject, noShadow 
14]] 
15 
16local threat = cargoShip("Threat",{ 
17width = 70
18scale = 1.5
19alpha = 1
20noIcon = true
21}
22threat:SetPoint("CENTER", UIParent, "BOTTOM", 0, 153.5
23 
24--------> BOTTOM LEFT PANEL 
25local LPx, LPy = 121, 146 
26local LPspacing = 10 
27 
28local equip = cargoShip("Broker_Equipment",{ 
29scale = 1.2
30alpha = 1
31width = 70
32}
33equip:SetPoint("CENTER", UIParent, "BOTTOM", -150, 126
34 
35local fps = cargoShip("Broker_FPS",{ 
36parent = equip, 
37noIcon = true
38}
39fps:SetPoint("CENTER", equip, "BOTTOM", 0, -20
40 
41local memory = cargoShip("Broker_Memory",{ 
42parent = fps, 
43noIcon = true
44}
45memory:SetPoint("CENTER", fps, "BOTTOM", 0,-20
46 
47local ping = cargoShip("Broker_Latency",{ 
48parent = fps, 
49noIcon = true
50}
51ping:SetPoint("CENTER", memory, "BOTTOM", 0, -20
52 
53 
54 
55--------> BOTTOM RIGHT PANEL 
56local RPx, RPy = -115, 146 
57local RPspacing = 8 
58 
59local money = cargoShip("Money",{ 
60width = 60
61scale = 1.2
62alpha = 1
63}
64money:SetPoint("CENTER", recount, "BOTTOM",145,124
65 
66local durability = cargoShip("Durability",{ 
67parent = money, 
68}
69durability:SetPoint("LEFT", money, "BOTTOMLEFT",0,-18
70 
71local recount = cargoShip("Broker_Recount",{ 
72width = 15
73noText = true
74scale = 1.2
75alpha = 1
76}
77recount:SetPoint("LEFT", durability, "BOTTOMLEFT",0,-20
78 
79local dps = cargoShip("DPS",{ 
80width = 73
81scale = 1.2
82noIcon = true
83alpha = 1
84}
85dps:SetPoint("LEFT", recount, "RIGHT",5,0
86 
87local ampere = cargoShip("Ampere",{ 
88parent = money, 
89}
90ampere:SetPoint("LEFT", recount, "BOTTOMLEFT", 0, -20
91 
92 
93 
94--[[local oramtt = cargoShip("oRA2 Targets",{ 
95parent = ampere 
96}) 
97oramtt:SetPoint("RIGHT", ampere, "LEFT",-3,0)]] 
98 
99 
100 
101 
102 
103 
104 
105--------> TOP PANEL 
106local Tspacing = 10 
107local f1 = CreateFrame("frame"
108f1:SetPoint("TOP", UIParent, "TOP", 0, 0
109f1:SetWidth(412) f1:SetHeight(16
110f1:SetBackdrop({bgFile = "interface\\Tooltips\\UI-Tooltip-Background"}
111f1:SetBackdropColor(54/255, 54/255, 54/255
112f1:EnableMouse(true
113f1:Show() 
114f1:SetScale(0.8
115 
116local bauderrors = cargoShip("Broker_BaudErrorFrame",{ 
117parent = f1, 
118}
119bauderrors:SetPoint("TOP", UIParent, "TOP", 35, -1
120 
121local dominos = cargoShip("Dominos",{ 
122parent = f1, 
123}
124dominos:SetPoint("LEFT", bauderrors, "RIGHT",Tspacing,0
125 
126--[[local classtimer = cargoShip("ClassTimer",{ 
127parent = f1, 
128}) 
129classtimer:SetPoint("LEFT", dominos, "RIGHT", Tspacing, 0)]] 
130 
131local buffet = cargoShip("Buffet",{ 
132parent = f1, 
133}
134buffet:SetPoint("LEFT", dominos, "RIGHT", Tspacing, 0
135 
136local dbm = cargoShip("Deadly Boss Mods",{ 
137parent = f1, 
138}
139dbm:SetPoint("LEFT", buffet, "RIGHT", Tspacing, 0
140 
141local panda = cargoShip("Panda",{ 
142parent = f1, 
143}
144panda:SetPoint("LEFT", volume, "RIGHT", Tspacing, 0
145 
146local nametoggle = cargoShip("Broker_NameToggle",{ 
147parent = f1, 
148}
149nametoggle:SetPoint("RIGHT", bauderrors, "LEFT", -Tspacing, 0
150 
151local hatter = cargoShip("Broker_Hatter",{ 
152parent = f1, 
153}
154hatter:SetPoint("RIGHT", nametoggle, "LEFT", -Tspacing, 0
155 
156local volume = cargoShip("Volumizer",{ 
157parent = f1, 
158}
159volume:SetPoint("RIGHT", hatter, "LEFT", -Tspacing, 0
160--[[ 
161local ora = cargoShip("oRA2",{ 
162parent = f1, 
163noText = true, 
164}) 
165ora:SetPoint("LEFT", dbm, "RIGHT", Tspacing, 0)]] 
166 
167----------> Show on mouseover 
168local updateFrame = CreateFrame("Frame"
169updateFrame:SetScript("OnUpdate", function(self) 
170    if(MouseIsOver(f1)) then 
171        ShowTop() 
172        self:Show() 
173    else 
174        HideTop() 
175        self:Hide() 
176    end 
177end
178 
179function ShowTop() 
180updateFrame:Show() 
181f1:SetAlpha(1
182end 
183 
184function HideTop() 
185f1:SetAlpha(0
186end 
187 
188HideTop() 
189f1:SetScript("OnEnter",function() ShowTop() end
190f1:SetScript("OnLeave",function() HideTop() end)-- 
191 
192--[[ 
193-- Show honor display only in battleground and then hide xp 
194local f = CreateFrame"Frame" 
195f:SetScript("OnEvent", function(self, event) 
196    if(select(2, IsInInstance()) == "pvp") then 
197        honor:Show() 
198        xp:Hide() 
199    else 
200        honor:Hide() 
201        xp:Show() 
202    end 
203end) 
204f:RegisterEvent"PLAYER_ENTERING_WORLD"]] 
Download and save
Toggle line numbers
Thread:
[123328] Untitled by Monolit at 2009-08-25 09:18:55
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.