-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMangFrames_SectionAhbot.lua
51 lines (46 loc) · 1.91 KB
/
MangFrames_SectionAhbot.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
-------------------------------------------------------------------------------------------------------------
--
-- TrinityAdmin Version 3.x
-- TrinityAdmin is a derivative of MangAdmin.
--
-- Copyright (C) 2007 Free Software Foundation, Inc.
-- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
-- This is free software: you are free to change and redistribute it.
-- There is NO WARRANTY, to the extent permitted by law.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
-- Official Forums: http://groups.google.com/group/trinityadmin
-- GoogleCode Website: http://code.google.com/p/trinityadmin/
-- Subversion Repository: http://trinityadmin.googlecode.com/svn/
-- Dev Blog: http://trinityadmin.blogspot.com/
-------------------------------------------------------------------------------------------------------------
-- Initializing dynamic frames with LUA and FrameLib
-- This script must be listed in the .toc after "MangFrames_SectionTicket.lua"
-- Also some variables are globally taken from MangAdmin.lua
function MangAdmin:CreateAhbotSection()
local transparency = {
bg = MangAdmin.db.account.style.transparency.backgrounds,
btn = MangAdmin.db.account.style.transparency.buttons,
frm = MangAdmin.db.account.style.transparency.frames
}
local color = {
bg = MangAdmin.db.account.style.color.backgrounds,
btn = MangAdmin.db.account.style.color.buttons,
frm = MangAdmin.db.account.style.color.frames,
linkifier = MangAdmin.db.account.style.color.linkifier
}
FrameLib:BuildFontString({
name = "ma_ahbotplaceholder",
group = "ahbot",
parent = ma_midframe,
text = Locale["ma_ParameterizedCommands"],
setpoint = {
pos = "TOPLEFT",
offX = 10,
offY = 0
}
})
end