Language:
Lua     Change language:
Pastebin: 116841
Author: Anonymous
Subject: Untitled
Created: 2009-06-28 14:06:13
Download and save
Toggle line numbers
1--------> TOP PANEL 
2local f1 = CreateFrame("frame"
3f1:SetPoint("TOP", UIParent, "TOP", 0, 0
4f1:SetWidth(412) f1:SetHeight(16
5f1:SetBackdrop({bgFile = "interface\\Tooltips\\UI-Tooltip-Background"}
6f1:SetBackdropColor(54/255, 54/255, 54/255
7f1:EnableMouse(true
8f1:Show() 
9f1:SetScale(0.8
10 
11local bauderrors = cargoShip("aBroker_BaudErrorFrame"
12bauderrors:SetWidth(70
13bauderrors:SetPoint("TOP", UIParent, "TOP", 50, -1
14bauderrors:SetParent(f1) 
15 
16local dominos = cargoShip("Dominos"
17dominos:SetWidth(10
18dominos:SetPoint("LEFT", bauderrors, "RIGHT",10,0
19dominos:SetParent(f1) 
20 
21local classtimer = cargoShip("ClassTimer"
22classtimer:SetWidth(10
23classtimer:SetPoint("LEFT", dominos, "RIGHT", 10, 0
24classtimer:SetParent(f1) 
25 
26local dbm = cargoShip("Deadly Boss Mods"
27dbm:SetWidth(40
28dbm:SetPoint("LEFT", classtimer, "RIGHT", 10, 0
29dbm:SetParent(f1) 
30 
31local panda = cargoShip("Panda"
32panda:SetWidth(55
33panda:SetPoint("LEFT", dbm, "RIGHT", 10, 0
34panda:SetParent(f1) 
35 
36local volume = cargoShip("Volumizer"
37volume:SetWidth(15
38volume:SetPoint("LEFT", bigwigs, "RIGHT", 10, 0
39volume:SetParent(f1) 
40 
41local ora = cargoShip("oRA2"
42ora:SetWidth(50
43ora:SetPoint("RIGHT", bauderrors, "LEFT", -5, 0
44ora:SetParent(f1) 
45 
46local nametoggle = cargoShip("Broker_NameToggle"
47nametoggle:SetWidth(80
48nametoggle:SetPoint("RIGHT", ora, "LEFT", -5, 0
49nametoggle:SetParent(f1) 
50 
51local hatter = cargoShip("aBroker_Hatter"
52hatter:SetWidth(55
53hatter:SetPoint("RIGHT", nametoggle, "LEFT"
54hatter:SetParent(f1) 
55 
56local buffet = cargoShip("Buffet"
57buffet:SetWidth(20
58buffet:SetPoint("RIGHT", hatter, "LEFT"
59buffet:SetParent(f1) 
60 
61local updateFrame = CreateFrame("Frame"
62updateFrame:SetScript("OnUpdate", function(self) 
63    if(MouseIsOver(f1)) then 
64        ShowTop() 
65        self:Show() 
66    else 
67        HideTop() 
68        self:Hide() 
69    end 
70end
71 
72function ShowTop() 
73updateFrame:Show() 
74f1:SetAlpha(1
75end 
76 
77function HideTop() 
78f1:SetAlpha(0
79end 
80 
81HideTop() 
82f1:SetScript("OnEnter",function() ShowTop() end
83f1:SetScript("OnLeave",function() HideTop() end
Download and save
Toggle line numbers
Thread:
[116841] Untitled by Anonymous at 2009-06-28 14:06:13
  [117415] Re: Untitled by Anonymous at 2009-07-12 15:04:28 (diff)
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.