forked from isalcedo/VanillaGuide
-
Notifications
You must be signed in to change notification settings - Fork 2
/
UI.lua
128 lines (116 loc) · 5.13 KB
/
UI.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
--[[--------------------------------------------------
Connection:
--]]--------------------------------------------------
--local VGuide = VGuide
Dv(" VGuide UI.lua Start")
objUI = {}
objUI.__index = objUI
function objUI:new(oSettings, oDisplay)
local VG_TEXTURE_DIR = "Interface\\AddOns\\VanillaGuide\\Textures\\"
local VG_TEXTURE = {
FONT = "GameFontNormalSmall",
FONT_PATH = "Fonts\\FRIZQT__.TTF",
FONT_HEIGHT = 9.5, -- DO NOT CHANGE THIS OR THE SCROLLFRAME WILL BE BORKED!
--BACKGROUNDFILE = "Interface\\Tooltips\\UI-Tooltip-Background",
--EDGEFILE = DIR .. "Borders\\fer1",
--local bd = {
BACKDROP = {
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Borders\\fer1",
edgeSize = 4,
insets = { left = 1, right = 1, top = 1, bottom = 1 },
},
--local bdsh = {
BACKDROPSH = {
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
--edgeSize = 4,
insets = { left = -1, right = -2, top = -3, bottom = -3 },
},
B_CLOSE = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Close-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Close-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Close-Highlight"
},
B_ARROWDOWN = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowDown-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowDown-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowDown-Highlight"
},
B_ARROWUP = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowUp-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowUp-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-ArrowUp-Highlight"
},
B_DETAILS = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Details-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Details-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Details-Highlight"
},
B_DOUBLEARROWLEFT = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowLeft-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowLeft-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowLeft-Highlight"
},
B_DOUBLEARROWRIGHT = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowRight-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowRight-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DoubleArrowRight-Highlight"
},
B_FLASH = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Flash-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Flash-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Flash-Highlight"
},
B_LOCKED = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Locked-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Locked-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Locked-Highlight"
},
B_UNLOCKED = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Unlocked-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Unlocked-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Unlocked-Highlight"
},
B_OPTION = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-Option-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-Option-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-Option-Highlight"
},
B_ABOUT = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-About-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-About-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-About-Highlight"
},
B_DUMLEFT_UP = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonLeft-ArrowUp-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonLeft-ArrowUp-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonLeft-ArrowUp-Highlight"
},
B_DUMRIGHT_UP = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonRight-ArrowUp-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonRight-ArrowUp-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DUMonRight-ArrowUp-Highlight"
},
B_DDMLEFT_DOWN = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonLeft-ArrowDown-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonLeft-ArrowDown-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonLeft-ArrowDown-Highlight"
},
B_DDMRIGHT_DOWN = {
NORMAL = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonRight-ArrowDown-Normal",
PUSHED = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonRight-ArrowDown-Pushed",
HIGHLIGHT = VG_TEXTURE_DIR .. "Buttons\\Button-DDMonRight-ArrowDown-Highlight"
},
SCROLLFRAME_PADDING = 9
}
local obj = {}
setmetatable(obj, self)
obj.fMain = {}
obj.fSettings = {}
obj.fAbout = {}
obj.fMain = objMainFrame:new(nil, VG_TEXTURE, oSettings, oDisplay)
obj.fSettings = objSettingsFrame:new(obj.fMain.tWidgets.frame_MainFrame, VG_TEXTURE, oSettings)
obj.fAbout = objAboutFrame:new(obj.fMain.tWidgets.frame_MainFrame, VG_TEXTURE, oSettings)
return obj
end
Dv(" VGuide UI.lua End")