-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathPeace.lua
More file actions
58 lines (49 loc) · 1.5 KB
/
Peace.lua
File metadata and controls
58 lines (49 loc) · 1.5 KB
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
local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule("Skins")
local AS = E:GetModule("AddOnSkins")
if not AS:IsAddonLODorEnabled("Peace") then return end
local _G = _G
local ipairs = ipairs
local unpack = unpack
local hooksecurefunc = hooksecurefunc
S:AddCallbackForAddon("Peace", "Peace", function()
if not E.private.addOnSkins.Peace then return end
-- Master
Peace_OptionsFrame:StripTextures()
Peace_OptionsFrame:SetTemplate("Transparent")
Peace_OptionsFrame:SetClampRectInsets(0, 0, 0, 0)
local buttons = {
"Peace_ManualClearHistoryButton",
"AddNewAuthorisedButton",
"DeleteAuthoriseButton",
"IgnorePlayerWhisperButton",
"Peace_CloseOptionsFrame",
"Peace_CreditsButton",
"Peace_ScanGuildFriendsButton",
"Peace_CleanWholePlayerList"
}
local checkBoxes = {
"Peace_EnableAddonCheck",
"Peace_AutoAddGuildCheck",
"Peace_AutoAddFriendsCheck",
"Peace_InformWhenPlayerBlockedCheck",
"Peace_DoSoundOnBlockCheck",
"Peace_AutoAddWhisperedPlayersCheck",
"Peace_NotifyBlockedPlayersCheck",
"Peace_ResetBlockedWhisperHistoryCheck",
"Peace_UseCustomMessageTextCheck"
}
local editBoxes = {
"Peace_CustomMsgEditBox",
"EnteredPlayerNameBox"
}
for _, button in ipairs(buttons) do
S:HandleButton(_G[button])
end
for _, checkBox in ipairs(checkBoxes) do
S:HandleCheckBox(_G[checkBox])
end
for _, editBox in ipairs(editBoxes) do
S:HandleEditBox(_G[editBox])
end
end)