Install.lua 105 KB
Newer Older
fgprodigal's avatar
fgprodigal committed
1 2 3 4 5
local RayUI, E, L, V, P, G = unpack(select(2, ...))

-- Cache global variables
-- Lua functions
local _G = _G
fgprodigal's avatar
fgprodigal committed
6
local ceil, format, ipairs, checkTable = ceil, string.format, ipairs, next
fgprodigal's avatar
fgprodigal committed
7 8 9
local tinsert, twipe, tsort, tconcat = table.insert, table.wipe, table.sort, table.concat
-- WoW API / Variables
local ADDONS = ADDONS
fgprodigal's avatar
fgprodigal committed
10
local ChatFrame_RemoveAllMessageGroups = ChatFrame_RemoveAllMessageGroups
fgprodigal's avatar
fgprodigal committed
11 12 13 14 15 16 17 18
local FCF_DockFrame = FCF_DockFrame
local FCF_GetChatWindowInfo = FCF_GetChatWindowInfo
local FCF_SavePositionAndDimensions = FCF_SavePositionAndDimensions
local FCF_SetChatWindowFontSize = FCF_SetChatWindowFontSize
local FCF_SetLocked = FCF_SetLocked
local FCF_SetWindowName = FCF_SetWindowName
local FCF_StopDragging = FCF_StopDragging
local FCF_UnDockFrame = FCF_UnDockFrame
fgprodigal's avatar
fgprodigal committed
19 20 21
local FCF_ResetChatWindows = FCF_ResetChatWindows
local FCF_OpenNewWindow = FCF_OpenNewWindow
local GetLocale = GetLocale
fgprodigal's avatar
fgprodigal committed
22 23 24
local GetAddOnMetadata = GetAddOnMetadata
local IsAddOnLoaded = IsAddOnLoaded
local LOOT = LOOT
fgprodigal's avatar
fgprodigal committed
25
local WHISPER = WHISPER
fgprodigal's avatar
fgprodigal committed
26 27 28
local ReloadUI = ReloadUI
local SetCVar = SetCVar
local TRADE = TRADE
fgprodigal's avatar
fgprodigal committed
29 30
local GUILD_EVENT_LOG = GUILD_EVENT_LOG
local GENERAL = GENERAL
fgprodigal's avatar
fgprodigal committed
31 32 33 34

-- Global variables that we don"t cache, list them here for the mikk"s Find Globals script
-- GLOBALS: PluginInstallFrame, InstallStepComplete, PluginInstallStepComplete, NUM_CHAT_WINDOWS, LeftChatToggleButton
-- GLOBALS: ChatFrame1, ChatFrame3, ChatFrame_RemoveChannel, ChatFrame_AddChannel, ChatFrame_AddMessageGroup
fgprodigal's avatar
fgprodigal committed
35
-- GLOBALS: ToggleChatColorNamesByClassGroup, Skada, SkadaDB, BigWigs3DB, RayUIDataPerChar
fgprodigal's avatar
fgprodigal committed
36

fgprodigal's avatar
fgprodigal committed
37
function RayUI:SetupCVars()
fgprodigal's avatar
fgprodigal committed
38 39 40
	-- Setup CVar
	SetCVar("profanityFilter", 0)
	SetCVar("overrideArchive", 0)
fgprodigal's avatar
fgprodigal committed
41
	SetCVar("rawMouseEnable", 1)
fgprodigal's avatar
fgprodigal committed
42 43
	SetCVar("nameplateSelectedScale", 1)
	SetCVar("nameplateLargerScale", 1)
fgprodigal's avatar
fgprodigal committed
44
	SetCVar("nameplateOccludedAlphaMult", 0.2)
fgprodigal's avatar
fgprodigal committed
45
	SetCVar("countdownForCooldowns", 1)
fgprodigal's avatar
fgprodigal committed
46 47 48 49 50 51 52 53 54

	-- if RayUI:IsDeveloper() and RayUI:IsDeveloperRealm() then
		-- SetCVar("scriptErrors", 1)
		-- SetCVar("taintLog", 1)
	-- else
		-- SetCVar("scriptErrors", 0)
		-- SetCVar("taintLog", 0)
	-- end

fgprodigal's avatar
fgprodigal committed
55
	PluginInstallStepComplete.message = self.Title..L["CVars Set"]
fgprodigal's avatar
fgprodigal committed
56 57 58
	PluginInstallStepComplete:Show()
end

fgprodigal's avatar
fgprodigal committed
59
function RayUI:SetupChat()
fgprodigal's avatar
fgprodigal committed
60 61 62 63 64
	FCF_ResetChatWindows() -- Monitor this
	FCF_SetLocked(_G.ChatFrame1, 1)
	FCF_DockFrame(_G.ChatFrame2)
	FCF_SetLocked(_G.ChatFrame2, 1)

fgprodigal's avatar
fgprodigal committed
65 66
	FCF_OpenNewWindow(WHISPER)
	FCF_DockFrame(_G.ChatFrame3)
fgprodigal's avatar
fgprodigal committed
67 68 69
	FCF_SetLocked(_G.ChatFrame3, 1)
	_G.ChatFrame3:Show()

fgprodigal's avatar
fgprodigal committed
70 71 72 73 74
	FCF_OpenNewWindow(LOOT)
	FCF_UnDockFrame(_G.ChatFrame4)
	FCF_SetLocked(_G.ChatFrame4, 1)
	_G.ChatFrame4:Show()

fgprodigal's avatar
fgprodigal committed
75 76 77 78 79 80 81
	for i = 1, NUM_CHAT_WINDOWS do
		local frame = _G[format('ChatFrame%s', i)]

		-- move general bottom left
		if i == 1 then
			frame:ClearAllPoints()
			frame:Point('BOTTOMLEFT', _G.LeftChatToggleButton, 'TOPLEFT', 1, 3)
fgprodigal's avatar
fgprodigal committed
82
		elseif i == 4 then
fgprodigal's avatar
fgprodigal committed
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
			frame:ClearAllPoints()
			frame:Point('BOTTOMLEFT', _G.RightChatDataPanel, 'TOPLEFT', 1, 3)
		end

		FCF_SavePositionAndDimensions(frame)
		FCF_StopDragging(frame)

		-- set default Elvui font size
		FCF_SetChatWindowFontSize(nil, frame, 13)

		-- rename windows general because moved to chat #3
		if i == 1 then
			FCF_SetWindowName(frame, GENERAL)
		elseif i == 2 then
			FCF_SetWindowName(frame, GUILD_EVENT_LOG)
		elseif i == 3 then
fgprodigal's avatar
fgprodigal committed
99 100
			FCF_SetWindowName(frame, WHISPER)
		elseif i == 4 then
fgprodigal's avatar
fgprodigal committed
101 102 103 104 105 106 107 108 109 110 111
			FCF_SetWindowName(frame, LOOT..' / '..TRADE)
		end
	end

	-- keys taken from `ChatTypeGroup` but doesnt add: 'OPENING', 'TRADESKILLS', 'PET_INFO', 'COMBAT_MISC_INFO', 'COMMUNITIES_CHANNEL', 'PET_BATTLE_COMBAT_LOG', 'PET_BATTLE_INFO', 'TARGETICONS'
	local chatGroup = { 'SYSTEM', 'CHANNEL', 'SAY', 'EMOTE', 'YELL', 'WHISPER', 'PARTY', 'PARTY_LEADER', 'RAID', 'RAID_LEADER', 'RAID_WARNING', 'INSTANCE_CHAT', 'INSTANCE_CHAT_LEADER', 'GUILD', 'OFFICER', 'MONSTER_SAY', 'MONSTER_YELL', 'MONSTER_EMOTE', 'MONSTER_WHISPER', 'MONSTER_BOSS_EMOTE', 'MONSTER_BOSS_WHISPER', 'ERRORS', 'AFK', 'DND', 'IGNORED', 'BG_HORDE', 'BG_ALLIANCE', 'BG_NEUTRAL', 'ACHIEVEMENT', 'GUILD_ACHIEVEMENT', 'BN_WHISPER', 'BN_INLINE_TOAST_ALERT' }
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame1)
	for _, v in ipairs(chatGroup) do
		ChatFrame_AddMessageGroup(_G.ChatFrame1, v)
	end

fgprodigal's avatar
fgprodigal committed
112 113 114 115
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame3)
	ChatFrame_AddMessageGroup(_G.ChatFrame3, 'WHISPER')
	ChatFrame_AddMessageGroup(_G.ChatFrame3, 'BN_WHISPER')

fgprodigal's avatar
fgprodigal committed
116 117
	-- keys taken from `ChatTypeGroup` which weren't added above to ChatFrame1
	chatGroup = { 'COMBAT_XP_GAIN', 'COMBAT_HONOR_GAIN', 'COMBAT_FACTION_CHANGE', 'SKILL', 'LOOT', 'CURRENCY', 'MONEY' }
fgprodigal's avatar
fgprodigal committed
118
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame4)
fgprodigal's avatar
fgprodigal committed
119
	for _, v in ipairs(chatGroup) do
fgprodigal's avatar
fgprodigal committed
120
		ChatFrame_AddMessageGroup(_G.ChatFrame4, v)
fgprodigal's avatar
fgprodigal committed
121 122 123 124
	end

	ChatFrame_AddChannel(_G.ChatFrame1, GENERAL)
	ChatFrame_RemoveChannel(_G.ChatFrame1, TRADE)
fgprodigal's avatar
fgprodigal committed
125
	ChatFrame_AddChannel(_G.ChatFrame4, TRADE)
fgprodigal's avatar
fgprodigal committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149

	-- set the chat groups names in class color to enabled for all chat groups which players names appear
	chatGroup = { 'SAY', 'EMOTE', 'YELL', 'WHISPER', 'PARTY', 'PARTY_LEADER', 'RAID', 'RAID_LEADER', 'RAID_WARNING', 'INSTANCE_CHAT', 'INSTANCE_CHAT_LEADER', 'GUILD', 'OFFICER', 'ACHIEVEMENT', 'GUILD_ACHIEVEMENT', 'COMMUNITIES_CHANNEL' }
	for i = 1, _G.MAX_WOW_CHAT_CHANNELS do
		tinsert(chatGroup, 'CHANNEL'..i)
	end
	for _, v in ipairs(chatGroup) do
		ToggleChatColorNamesByClassGroup(true, v)
	end

	if E.Chat then
		E.Chat:PositionChat(true)
		if E.db.RightChatPanelFaded then
			_G.RightChatToggleButton:Click()
		end

		if E.db.LeftChatPanelFaded then
			_G.LeftChatToggleButton:Click()
		end
	end

	--[[----------------------------------
	--	ProfileDB - Chat
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
150
	E.db["chat"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
151 152
	E.db["chat"]["tabFontOutline"] = "OUTLINE"
	E.db["chat"]["keywordSound"] = "Whisper Alert"
fgprodigal's avatar
fgprodigal committed
153
	E.db["chat"]["tabFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
154 155 156
	E.db["chat"]["editBoxPosition"] = "ABOVE_CHAT"
	E.db["chat"]["panelTabTransparency"] = true
	E.db["chat"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
157
	E.db["chat"]["panelWidthRight"] = 400
fgprodigal's avatar
fgprodigal committed
158 159 160 161 162
	E.db["chat"]["socialQueueMessages"] = true
	E.db["chat"]["customTimeColor"]["r"] = 0
	E.db["chat"]["customTimeColor"]["g"] = 0.75
	E.db["chat"]["customTimeColor"]["b"] = 0.98
	E.db["chat"]["keywords"] = "%MYNAME%, ElvUI, MerathilisUI, RayUI"
fgprodigal's avatar
fgprodigal committed
163 164
	E.db["chat"]["panelHeightRight"] = 174
	E.db["chat"]["panelHeight"] = 174
fgprodigal's avatar
fgprodigal committed
165
	E.db["chat"]["timeStampFormat"] = "%H:%M "
fgprodigal's avatar
fgprodigal committed
166
	E.db["chat"]["tapFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
167
	E.db["chat"]["panelWidth"] = 400
fgprodigal's avatar
fgprodigal committed
168
	E.db["mui"]["chat"]["panelHeight"] = 174
fgprodigal's avatar
fgprodigal committed
169 170 171
	E.db["mui"]["chat"]["hidePlayerBrackets"] = false
	E.db["mui"]["chat"]["chatButton"] = false
	E.db["mui"]["chat"]["isExpanded"] = false
fgprodigal's avatar
fgprodigal committed
172 173
	E.db["chat"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["chat"]["tabFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
174

fgprodigal's avatar
fgprodigal committed
175 176
	self:SetMoverPosition("LeftChatMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 50)
	self:SetMoverPosition("RightChatMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 50)
fgprodigal's avatar
fgprodigal committed
177 178 179

	E:StaggeredUpdateAll(nil, true)

fgprodigal's avatar
fgprodigal committed
180
	PluginInstallStepComplete.message = self.Title..L["Chat Set"]
fgprodigal's avatar
fgprodigal committed
181 182 183
	PluginInstallStepComplete:Show()
end

fgprodigal's avatar
fgprodigal committed
184 185 186 187
function RayUI:SetupLayout(layout)
	if layout == "dps" then		
		E.db["actionbar"]["bar1"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar2"]["inheritGlobalFade"] = true
fgprodigal's avatar
fgprodigal committed
188 189 190 191 192 193 194 195
		E.db["actionbar"]["bar3"]["backdrop"] = true
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
		E.db["actionbar"]["bar3"]["buttons"] = 10
		E.db["actionbar"]["bar3"]["buttonspacing"] = 3
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 12
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
		E.db["actionbar"]["bar4"]["widthMult"] = 1
fgprodigal's avatar
fgprodigal committed
196 197 198 199
		E.db["unitframe"]["units"]["raid"]["width"] = 79
		E.db["unitframe"]["units"]["raid"]["height"] = 40
		E.db["unitframe"]["units"]["raid40"]["width"] = 79
		E.db["unitframe"]["units"]["raid40"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
200
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "TIME_REMAINING"
fgprodigal's avatar
fgprodigal committed
201 202 203 204 205 206
		
		E:StaggeredUpdateAll(nil, true)
		
		self:SetMoverPosition("ElvAB_1", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
		self:SetMoverPosition("ElvAB_2", "BOTTOM", E.UIParent, "BOTTOM", 0, 184)
		self:SetMoverPosition("ElvAB_3", "BOTTOM", E.UIParent, "BOTTOM", 0, 40)
fgprodigal's avatar
fgprodigal committed
207
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
208
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
209 210 211 212 213 214
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
		self:SetMoverPosition("PetAB", "BOTTOM", E.UIParent, "BOTTOM", 0, 81)
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 273)
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -244, 340)
		self:SetMoverPosition("ElvUF_TargetMover", "BOTTOM", E.UIParent, "BOTTOM", 244, 340)
fgprodigal's avatar
fgprodigal committed
215 216 217 218
		self:SetMoverPosition("ElvUF_TargetCastbarMover", "TOP", _G.ElvUF_Target, "BOTTOM", 0, -17)
		self:SetMoverPosition("ElvUF_TargetTargetMover", "LEFT", _G.ElvUF_Target, "RIGHT", 2, 0)
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
219 220 221 222 223 224 225 226
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 122)
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 257, 307)
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 307)
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 307)
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
	elseif layout == "healer" then
		E.db["actionbar"]["bar1"]["inheritGlobalFade"] = false
		E.db["actionbar"]["bar2"]["inheritGlobalFade"] = false
fgprodigal's avatar
fgprodigal committed
227 228 229 230 231 232 233 234 235
		E.db["actionbar"]["bar3"]["backdrop"] = false
		E.db["actionbar"]["bar3"]["buttonsize"] = 29
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
		E.db["actionbar"]["bar3"]["buttons"] = 12
		E.db["actionbar"]["bar3"]["buttonspacing"] = 4
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 1
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
		E.db["actionbar"]["bar4"]["widthMult"] = 2
fgprodigal's avatar
fgprodigal committed
236
		E.db["unitframe"]["units"]["raid"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
237
		E.db["unitframe"]["units"]["raid"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
238
		E.db["unitframe"]["units"]["raid40"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
239
		E.db["unitframe"]["units"]["raid40"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
240
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "PLAYER"
fgprodigal's avatar
fgprodigal committed
241 242 243 244 245
		
		E:StaggeredUpdateAll(nil, true)
		
		self:SetMoverPosition("ElvAB_1", "BOTTOM", E.UIParent, "BOTTOM", 0, 41)
		self:SetMoverPosition("ElvAB_2", "BOTTOM", E.UIParent, "BOTTOM", 0, 80)
fgprodigal's avatar
fgprodigal committed
246
		self:SetMoverPosition("ElvAB_3", "RIGHT", E.UIParent, "RIGHT", -42, 0)
fgprodigal's avatar
fgprodigal committed
247
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
248
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
249 250 251 252 253 254
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
		self:SetMoverPosition("PetAB", "BOTTOMRIGHT", E.UIParent, "BOTTOM", -240, 6)
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 273)
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -320, 340)
		self:SetMoverPosition("ElvUF_TargetMover", "BOTTOM", E.UIParent, "BOTTOM", 320, 340)
fgprodigal's avatar
fgprodigal committed
255 256 257 258
		self:SetMoverPosition("ElvUF_TargetCastbarMover", "TOP", _G.ElvUF_Target, "BOTTOM", 0, -17)
		self:SetMoverPosition("ElvUF_TargetTargetMover", "LEFT", _G.ElvUF_Target, "RIGHT", 2, 0)
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
259 260 261 262 263 264
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 120)
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 257, 307)
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
	end
fgprodigal's avatar
fgprodigal committed
265
	self:SetMoverPosition("ElvUF_FocusMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -450, -350)
fgprodigal's avatar
fgprodigal committed
266
	self:SetMoverPosition("ElvUF_FocusCastbarMover", "TOP", _G.ElvUF_Focus, "BOTTOM", 0, -17)
fgprodigal's avatar
fgprodigal committed
267 268 269 270 271
	self:SetMoverPosition("mUI_RaidMarkerBarAnchor", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -277, 178)
	self:SetMoverPosition("GMMover", "TOPLEFT", E.UIParent, "TOPLEFT", 229, -20)
	self:SetMoverPosition("BuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -18)
	self:SetMoverPosition("BossButton", "TOPRIGHT", E.UIParent, "TOPRIGHT", -381, -516)
	self:SetMoverPosition("LootFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -495, -457)
fgprodigal's avatar
fgprodigal committed
272
	self:SetMoverPosition("ObjectiveFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -135, -315)
fgprodigal's avatar
fgprodigal committed
273 274 275 276 277 278 279 280
	self:SetMoverPosition("mUIMiddleDTPanelMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 6)
	self:SetMoverPosition("DurabilityFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -4, -283)
	self:SetMoverPosition("MinimapMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -11, -17)
	self:SetMoverPosition("MicrobarMover", "TOPLEFT", E.UIParent, "TOPLEFT", 4, -4)
	self:SetMoverPosition("MER_MicroBarMover", "TOP", E.UIParent, "TOP", 0, -19)
	self:SetMoverPosition("TimeManagerFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -39, -231)
	self:SetMoverPosition("ElvUIBankMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 50)
	self:SetMoverPosition("SpecializationBarMover", "BOTTOM", E.UIParent, "BOTTOM", 243, 4)
fgprodigal's avatar
fgprodigal committed
281 282
	self:SetMoverPosition("ExperienceBarMover", "TOP", _G.LeftChatMover, "BOTTOM", 0, -1)
	self:SetMoverPosition("HonorBarMover", "TOP", _G.RightChatPanel, "BOTTOM", 0, -1)
fgprodigal's avatar
fgprodigal committed
283 284 285 286 287 288 289 290
	self:SetMoverPosition("ReputationBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 32)
	self:SetMoverPosition("AzeriteBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 24)
	self:SetMoverPosition("QuestTimerFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -232, -241)
	self:SetMoverPosition("TalkingHeadFrameMover", "TOP", E.UIParent, "TOP", 0, -80)
	self:SetMoverPosition("MER_SquareMinimapButtonBarMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 198)
	self:SetMoverPosition("ElvUIBagMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -28, 50)
	self:SetMoverPosition("BNETMover", "TOP", E.UIParent, "TOP", 0, -50)
	self:SetMoverPosition("ElvNP_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 360)
fgprodigal's avatar
fgprodigal committed
291
	self:SetMoverPosition("SquareMinimapButtonBarMover", "TOPRIGHT", _G.Minimap, "BOTTOMRIGHT", 1, -1)
fgprodigal's avatar
fgprodigal committed
292 293 294 295 296 297 298 299
	self:SetMoverPosition("TooltipMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 280)
	self:SetMoverPosition("MER_LocPanel_Mover", "TOP", E.UIParent, "TOP", 0, 0)
	self:SetMoverPosition("PlayerPowerBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 250)
	self:SetMoverPosition("AlertFrameMover", "TOP", E.UIParent, "TOP", 0, -140)
	self:SetMoverPosition("DebuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -161)
	self:SetMoverPosition("TaxiButtonMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 202)
	self:SetMoverPosition("TopCenterContainerMover", "TOP", E.UIParent, "TOP", 0, -60)
	self:SetMoverPosition("AltPowerBarMover", "TOP", E.UIParent, "TOP", 0, -45)
fgprodigal's avatar
fgprodigal committed
300 301 302 303
	self:SetMoverPosition("AutoButtonAnchor3Mover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 1)
	self:SetMoverPosition("AutoButtonAnchor2Mover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 42)
	self:SetMoverPosition("AutoButtonAnchorMover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 83)
	self:SetMoverPosition("VehicleSeatMover", "BOTTOMRIGHT", _G.RightChatPanel, "BOTTOMLEFT", -59, 0)
fgprodigal's avatar
fgprodigal committed
304
	self:SetMoverPosition("BelowMinimapContainerMover", "TOPLEFT", E.UIParent, "TOPLEFT", 45, -211)
fgprodigal's avatar
fgprodigal committed
305
	self:SetMoverPosition("OzCooldownsMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 430)
fgprodigal's avatar
fgprodigal committed
306 307 308 309 310 311

	PluginInstallStepComplete.message = self.Title..L["Layout Set"]
	PluginInstallStepComplete:Show()
end

function RayUI:SetupVariables(colorMode)
fgprodigal's avatar
fgprodigal committed
312
	local color = E.myclass == 'PRIEST' and E.PriestColors or (_G.CUSTOM_CLASS_COLORS and _G.CUSTOM_CLASS_COLORS[E.myclass] or _G.RAID_CLASS_COLORS[E.myclass])
fgprodigal's avatar
fgprodigal committed
313
	local classColor = colorMode == "classColor"
fgprodigal's avatar
fgprodigal committed
314 315
	local nameColorTag = classColor and "" or "[namecolor]"

fgprodigal's avatar
fgprodigal committed
316 317 318 319 320 321
	--[[----------------------------------
	--	GlobalDB
	--]]----------------------------------
	E.global["general"]["smallerWorldMap"] = false
	E.global["general"]["animateConfig"] = false
	E.global["general"]["autoScale"] = true
fgprodigal's avatar
fgprodigal committed
322
	E.global["general"]["showMissingTalentAlert"] = true
fgprodigal's avatar
fgprodigal committed
323 324 325
	if GetLocale() == "zhCN" then
		E.global["general"]["numberPrefixStyle"] = "CHINESE"
	end
fgprodigal's avatar
fgprodigal committed
326
	E.global["general"]["commandBarSetting"] =  "ENABLED_RESIZEPARENT"
fgprodigal's avatar
fgprodigal committed
327 328 329 330 331 332 333

	--[[----------------------------------
	--	PrivateDB
	--]]----------------------------------
	E.private["general"]["chatBubbleFontSize"] = 13
	E.private["general"]["chatBubbleFontOutline"] = "OUTLINE"
	E.private["general"]["chatBubbleName"] = true
fgprodigal's avatar
fgprodigal committed
334 335
	E.private["general"]["normTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
	E.private["general"]["glossTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
336
	E.private["skins"]["blizzard"]["losscontrol"] = false
fgprodigal's avatar
fgprodigal committed
337
	E.private["skins"]["parchmentRemover"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
338 339 340 341 342 343 344 345 346
	E.private["theme"] = "default"
	if IsAddOnLoaded("XLoot") then
		E.private["general"]["loot"] = false
		E.private["general"]["lootRoll"] = false
	else
		E.private["general"]["loot"] = true
		E.private["general"]["lootRoll"] = true
	end

fgprodigal's avatar
fgprodigal committed
347 348
	E.private["general"]["chatBubbleFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.private["general"]["namefont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
349
	E.private["general"]["dmgfont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
350 351 352 353 354

	--[[----------------------------------
	--	ProfileDB - General
	--]]----------------------------------
	E.db["general"]["totems"]["size"] = 36
fgprodigal's avatar
fgprodigal committed
355
	E.db["general"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
356
	E.db["general"]["smoothingAmount"] = 0.25
fgprodigal's avatar
fgprodigal committed
357 358 359
	E.db["general"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["general"]["altPowerBar"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["general"]["minimap"]["locationFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
360 361 362
	E.db["general"]["itemLevel"]["itemLevelFont"] = "PT Sans Narrow"
	E.db["general"]["interruptAnnounce"] = "RAID"
	E.db["general"]["autoRepair"] = "PLAYER"
fgprodigal's avatar
fgprodigal committed
363
	E.db["general"]["autoAcceptInvite"] = true
fgprodigal's avatar
fgprodigal committed
364
	E.db["general"]["minimap"]["locationText"] = "HIDE"
fgprodigal's avatar
fgprodigal committed
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
	E.db["general"]["minimap"]["locationFontSize"] = 10
	E.db["general"]["minimap"]["resetZoom"]["enable"] = true
	E.db["general"]["minimap"]["resetZoom"]["time"] = 5
	E.db["general"]["minimap"]["icons"]["ticket"]["scale"] = 0.75
	E.db["general"]["minimap"]["icons"]["ticket"]["position"] = "TOP"
	E.db["general"]["minimap"]["icons"]["mail"]["xOffset"] = 0
	E.db["general"]["minimap"]["icons"]["mail"]["position"] = "BOTTOMLEFT"
	E.db["general"]["minimap"]["icons"]["mail"]["yOffset"] = -5
	E.db["general"]["minimap"]["size"] = 200
	E.db["general"]["talkingHeadFrameBackdrop"] = true
	E.db["general"]["bottomPanel"] = false
	E.db["general"]["valuecolor"]["a"] = 1
	E.db["general"]["loginmessage"] = false
	E.db["general"]["threat"]["enable"] = false
	E.db["general"]["threat"]["textOutline"] = "OUTLINE"
	E.db["general"]["decimalLenght"] = 0
	E.db["general"]["topPanel"] = false
	E.db["general"]["bordercolor"]["r"] = 0
	E.db["general"]["bordercolor"]["g"] = 0
	E.db["general"]["bordercolor"]["b"] = 0
	E.db["general"]["autoRoll"] = true
fgprodigal's avatar
fgprodigal committed
386
	E.db["general"]["hideErrorFrame"] = false
fgprodigal's avatar
fgprodigal committed
387 388 389
	E.db["general"]["displayInspectInfo"] = true
	E.db["general"]["bonusObjectivePosition"] = "AUTO"
	E.db["general"]["displayCharacterInfo"] = true
fgprodigal's avatar
fgprodigal committed
390 391 392
	E.db["general"]["backdropcolor"] = { r = 0.17, g = 0.17, b = 0.17 }
	E.db["general"]["backdropfadecolor"] = { r = 0.16, g = 0.16, b = 0.16, a = 0.4 }
	E.db["general"]["valuecolor"] = { r = color.r, g = color.g, b = color.b }
fgprodigal's avatar
fgprodigal committed
393
	E.db["general"]["talkingHeadFrameScale"] = 0.9
fgprodigal's avatar
fgprodigal committed
394
	E.db["general"]["altPowerBar"]["statusBar"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
395 396 397
	E.db["general"]["altPowerBar"]["statusBarColorGradient"] = true
	E.db["general"]["altPowerBar"]["textFormat"] = "NAMECURMAXPERC"
	E.db["general"]["altPowerBar"]["smoothbars"] = true
fgprodigal's avatar
fgprodigal committed
398
	E.db["general"]["altPowerBar"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
399
	E.db["general"]["vehicleSeatIndicatorSize"] = 76
fgprodigal's avatar
fgprodigal committed
400
	E.db["general"]["resurrectSound"] = true
fgprodigal's avatar
fgprodigal committed
401 402 403 404

	--[[----------------------------------
	--	ProfileDB - Databars
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
405
	E.db["databars"]["reputation"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
406
	E.db["databars"]["reputation"]["textSize"] = 10
fgprodigal's avatar
fgprodigal committed
407
	E.db["databars"]["reputation"]["width"] = 355
fgprodigal's avatar
fgprodigal committed
408
	E.db["databars"]["reputation"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
409
	E.db["databars"]["reputation"]["orientation"] = "HORIZONTAL"
fgprodigal's avatar
fgprodigal committed
410 411
	E.db["databars"]["honor"]["enable"] = false
	E.db["databars"]["honor"]["hideOutsidePvP"] = true
fgprodigal's avatar
fgprodigal committed
412 413 414
	E.db["databars"]["honor"]["height"] = 8
	E.db["databars"]["honor"]["width"] = 400
	E.db["databars"]["honor"]["orientation"] = "HORIZONTAL"
fgprodigal's avatar
fgprodigal committed
415
	E.db["databars"]["experience"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
416
	E.db["databars"]["experience"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
417
	E.db["databars"]["experience"]["textSize"] = 10
fgprodigal's avatar
fgprodigal committed
418 419 420 421
	E.db["databars"]["experience"]["width"] = 400
	E.db["databars"]["experience"]["orientation"] = "HORIZONTAL"
	E.db["databars"]["azerite"]["enable"] = true
	E.db["databars"]["azerite"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
422
	E.db["databars"]["azerite"]["width"] = 355
fgprodigal's avatar
fgprodigal committed
423
	E.db["databars"]["azerite"]["orientation"] = "HORIZONTAL"
fgprodigal's avatar
fgprodigal committed
424 425 426 427

	--[[----------------------------------
	--	ProfileDB - Auras
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
428
	E.db["auras"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
429 430 431 432 433 434 435 436 437 438 439 440
	E.db["auras"]["fontOutline"] = "OUTLINE"
	E.db["auras"]["fadeThreshold"] = 10
	E.db["auras"]["buffs"]["wrapAfter"] = 10
	E.db["auras"]["buffs"]["horizontalSpacing"] = 5
	E.db["auras"]["buffs"]["verticalSpacing"] = 15
	E.db["auras"]["buffs"]["durationFontSize"] = 14
	E.db["auras"]["buffs"]["countFontsize"] = 14
	E.db["auras"]["buffs"]["size"] = 40
	E.db["auras"]["debuffs"]["horizontalSpacing"] = 5
	E.db["auras"]["debuffs"]["durationFontSize"] = 14
	E.db["auras"]["debuffs"]["countFontsize"] = 14
	E.db["auras"]["debuffs"]["size"] = 42
fgprodigal's avatar
fgprodigal committed
441
	E.db["auras"]["cooldown"]["override"] = true
fgprodigal's avatar
fgprodigal committed
442 443 444 445
	E.db["auras"]["cooldown"]["secondsColor"]["b"] = 0
	E.db["auras"]["cooldown"]["daysColor"]["g"] = 0.4
	E.db["auras"]["cooldown"]["daysColor"]["r"] = 0.4
	E.db["auras"]["cooldown"]["hoursColor"]["r"] = 0.4
fgprodigal's avatar
fgprodigal committed
446 447 448 449 450 451 452
	E:CopyTable(E.db["auras"]["cooldown"]["expireIndicator"], E.db["auras"]["cooldown"]["expiringColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["secondsIndicator"], E.db["auras"]["cooldown"]["secondsColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["minutesIndicator"], E.db["auras"]["cooldown"]["minutesColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["hoursIndicator"], E.db["auras"]["cooldown"]["hoursColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["daysIndicator"], E.db["auras"]["cooldown"]["daysColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["mmssColor"], E.db["auras"]["cooldown"]["secondsColor"])
	E:CopyTable(E.db["auras"]["cooldown"]["hhmmColor"], E.db["auras"]["cooldown"]["minutesColor"])
fgprodigal's avatar
fgprodigal committed
453 454
	E.db["auras"]["cooldown"]["checkSeconds"] = true
	E.db["auras"]["cooldown"]["mmssThreshold"] = 90
fgprodigal's avatar
fgprodigal committed
455 456 457 458

	--[[----------------------------------
	--	ProfileDB - Tooltip
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
459
	E.db["tooltip"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
460
	E.db["tooltip"]["fontSize"] = 13
fgprodigal's avatar
fgprodigal committed
461
	E.db["tooltip"]["healthBar"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
462
	E.db["tooltip"]["healthBar"]["statusPosition"] = "TOP"
fgprodigal's avatar
fgprodigal committed
463
	E.db["tooltip"]["npcID"] = false
fgprodigal's avatar
fgprodigal committed
464 465
	E.db["tooltip"]["headerFontSize"] = 13
	E.db["tooltip"]["textFontSize"] = 13
fgprodigal's avatar
fgprodigal committed
466 467 468 469
	E.db["tooltip"]["cursorAnchor"] = true
	E.db["tooltip"]["style"] = "inset"
	E.db["tooltip"]["cursorAnchorType"] = "ANCHOR_CURSOR_RIGHT"
	E.db["tooltip"]["cursorAnchorY"] = 10
fgprodigal's avatar
fgprodigal committed
470 471
	E.db["tooltip"]["smallTextFontSize"] = 13
	E.db["tooltip"]["alwaysShowRealm"] = true
fgprodigal's avatar
fgprodigal committed
472
	E.db["tooltip"]["healthBar"]["height"] = 4
fgprodigal's avatar
fgprodigal committed
473
	E.db["tooltip"]["healthBar"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
474
	E.db["tooltip"]["healthBar"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
475 476 477 478 479
	if colorMode == "transparent" then
		E.db["tooltip"]["colorAlpha"] = 0.4
	else
		E.db["tooltip"]["colorAlpha"] = 0.8
	end
fgprodigal's avatar
fgprodigal committed
480 481 482 483

	--[[----------------------------------
	--	ProfileDB - UnitFrame
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
484
	E.db["unitframe"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
485
	E.db["unitframe"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
486
	E.db["unitframe"]["cooldown"]["fonts"]["font"] = "RayUI Roadway"
fgprodigal's avatar
fgprodigal committed
487 488 489
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["anchorPoint"] = "RIGHT"
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["spacing"] = 4
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["xOffset"] = 3
fgprodigal's avatar
fgprodigal committed
490 491 492 493 494 495 496 497
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["perrow"] = 3
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["yOffset"] = 20
	E.db["unitframe"]["units"]["targettarget"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["targettarget"]["power"]["position"] = "CENTER"
	E.db["unitframe"]["units"]["targettarget"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
498
			["text_format"] = nameColorTag .. "[name:veryshort:translit]",
fgprodigal's avatar
fgprodigal committed
499 500 501 502
			["yOffset"] = 23,
			["justifyH"] = "RIGHT",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = -3,
fgprodigal's avatar
fgprodigal committed
503
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
504
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
505 506 507 508 509 510 511 512 513 514 515 516
		},
	}
	E.db["unitframe"]["units"]["targettarget"]["width"] = 75
	E.db["unitframe"]["units"]["targettarget"]["name"]["attachTextTo"] = "Frame"
	E.db["unitframe"]["units"]["targettarget"]["name"]["yOffset"] = 25
	E.db["unitframe"]["units"]["targettarget"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["targettarget"]["name"]["position"] = "RIGHT"
	E.db["unitframe"]["units"]["targettarget"]["height"] = 30
	E.db["unitframe"]["units"]["targettarget"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["targettarget"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["targettarget"]["raidicon"]["position"] = "TOP"
	E.db["unitframe"]["units"]["targettarget"]["raidicon"]["yOffset"] = 15
fgprodigal's avatar
fgprodigal committed
517
	E.db["unitframe"]["units"]["targettarget"]["power"]["text_format"] = ""
fgprodigal's avatar
fgprodigal committed
518
	E.db["unitframe"]["units"]["targettargettarget"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
519
	E.db["unitframe"]["units"]["targettargettarget"]["health"]["frequentUpdates"] = true
fgprodigal's avatar
fgprodigal committed
520
	E.db["unitframe"]["units"]["tank"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
521
	E.db["unitframe"]["units"]["player"]["debuffs"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
522 523 524 525
	E.db["unitframe"]["units"]["player"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
	E.db["unitframe"]["units"]["player"]["debuffs"]["sizeOverride"] = 30
	E.db["unitframe"]["units"]["player"]["debuffs"]["countFontSize"] = 9
	E.db["unitframe"]["units"]["player"]["debuffs"]["yOffset"] = 20
fgprodigal's avatar
fgprodigal committed
526
	E.db["unitframe"]["units"]["player"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
527
	E.db["unitframe"]["units"]["player"]["debuffs"]["spacing"] = 4
fgprodigal's avatar
fgprodigal committed
528 529 530 531 532 533 534 535 536 537
	E.db["unitframe"]["units"]["player"]["portrait"]["overlay"] = true
	E.db["unitframe"]["units"]["player"]["health"]["xOffset"] = 0
	E.db["unitframe"]["units"]["player"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["player"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["player"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["player"]["height"] = 30
	E.db["unitframe"]["units"]["player"]["CombatIcon"]["customTexture"] = ""
	E.db["unitframe"]["units"]["player"]["CombatIcon"]["size"] = 22
	E.db["unitframe"]["units"]["player"]["aurabar"]["enable"] = false
	E.db["unitframe"]["units"]["player"]["RestIcon"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
538
	E.db["unitframe"]["units"]["player"]["power"]["detachFromFrame"] = false
fgprodigal's avatar
fgprodigal committed
539 540 541 542
	E.db["unitframe"]["units"]["player"]["power"]["powerPrediction"] = true
	E.db["unitframe"]["units"]["player"]["power"]["xOffset"] = 0
	E.db["unitframe"]["units"]["player"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["player"]["power"]["position"] = "CENTER"
fgprodigal's avatar
fgprodigal committed
543
	E.db["unitframe"]["units"]["player"]["power"]["height"] = 4
fgprodigal's avatar
fgprodigal committed
544 545 546 547 548 549 550 551 552 553 554
	E.db["unitframe"]["units"]["player"]["power"]["hideonnpc"] = true
	E.db["unitframe"]["units"]["player"]["power"]["attachTextTo"] = "Power"
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["anchorPoint"] = "TOPRIGHT"
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["scale"] = 0.5
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["xOffset"] = 7
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["yOffset"] = 7
	E.db["unitframe"]["units"]["player"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
555
			["text_format"] = nameColorTag .. "[name]",
fgprodigal's avatar
fgprodigal committed
556 557 558 559
			["yOffset"] = 23,
			["justifyH"] = "LEFT",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 3,
fgprodigal's avatar
fgprodigal committed
560
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
561
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
562 563 564 565
		},
		["Life"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
566
			["text_format"] = nameColorTag .. "[rayui-health:percent-current]",
fgprodigal's avatar
fgprodigal committed
567 568 569 570
			["yOffset"] = -23,
			["justifyH"] = "RIGHT",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = -3,
fgprodigal's avatar
fgprodigal committed
571
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
572
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
573 574 575 576 577 578
		},
		["RayUIPower"] = {
			["attachTextTo"] = "Power",
			["enable"] = true,
			["text_format"] = "[powercolor][power:current]",
			["yOffset"] = -10,
fgprodigal's avatar
fgprodigal committed
579
			["justifyH"] = "LEFT",
fgprodigal's avatar
fgprodigal committed
580 581
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
582
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
583
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
584 585 586 587 588 589
		},
	}
	E.db["unitframe"]["units"]["player"]["disableMouseoverGlow"] = true
	E.db["unitframe"]["units"]["player"]["width"] = 200
	E.db["unitframe"]["units"]["player"]["infoPanel"]["height"] = 24
	E.db["unitframe"]["units"]["player"]["infoPanel"]["transparent"] = true
fgprodigal's avatar
fgprodigal committed
590
	E.db["unitframe"]["units"]["player"]["castbar"]["overlayOnFrame"] = "None"
fgprodigal's avatar
fgprodigal committed
591 592
	E.db["unitframe"]["units"]["player"]["castbar"]["insideInfoPanel"] = false
	E.db["unitframe"]["units"]["player"]["castbar"]["iconAttached"] = false
fgprodigal's avatar
fgprodigal committed
593 594 595
	E.db["unitframe"]["units"]["player"]["castbar"]["tickColor"]["a"] = 0.70186564326286
	E.db["unitframe"]["units"]["player"]["castbar"]["iconXOffset"] = -5
	E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 21
fgprodigal's avatar
fgprodigal committed
596 597 598 599
	E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 425
	E.db["unitframe"]["units"]["player"]["castbar"]["iconAttachedTo"] = "Castbar"
	E.db["unitframe"]["units"]["player"]["fader"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["minAlpha"] = 0.2
fgprodigal's avatar
fgprodigal committed
600 601 602 603 604 605 606 607 608
	E.db["unitframe"]["units"]["player"]["fader"]["hover"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["combat"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["power"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["minAlpha"] = 0.2
	E.db["unitframe"]["units"]["player"]["fader"]["playertarget"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["focus"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["casting"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["vehicle"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["health"] = true
fgprodigal's avatar
fgprodigal committed
609 610
	E.db["unitframe"]["units"]["player"]["classbar"]["detachFromFrame"] = true
	E.db["unitframe"]["units"]["player"]["classbar"]["height"] = 15
fgprodigal's avatar
fgprodigal committed
611
	E.db["unitframe"]["units"]["player"]["classbar"]["timeToHold"] = 0.8
fgprodigal's avatar
fgprodigal committed
612
	E.db["unitframe"]["units"]["player"]["orientation"] = "RIGHT"
fgprodigal's avatar
fgprodigal committed
613
	E.db["unitframe"]["units"]["player"]["buffs"]["countFontSize"] = 14
fgprodigal's avatar
fgprodigal committed
614 615 616
	E.db["unitframe"]["units"]["player"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["buffs"]["yOffset"] = 5
	E.db["unitframe"]["units"]["player"]["buffs"]["anchorPoint"] = "TOPRIGHT"
fgprodigal's avatar
fgprodigal committed
617 618
	E.db["unitframe"]["units"]["player"]["buffs"]["priority"] = "Blacklist,blockNoDuration,MER_RaidCDs,Personal"
	E.db["unitframe"]["units"]["player"]["buffs"]["maxDuration"] = 60
fgprodigal's avatar
fgprodigal committed
619
	E.db["unitframe"]["units"]["player"]["buffs"]["sizeOverride"] = 35
fgprodigal's avatar
fgprodigal committed
620
	E.db["unitframe"]["units"]["player"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
621 622 623
	E.db["unitframe"]["units"]["player"]["pvp"]["position"] = "TOP"
	E.db["unitframe"]["units"]["player"]["raidicon"]["position"] = "TOP"
	E.db["unitframe"]["units"]["player"]["raidicon"]["yOffset"] = 15
fgprodigal's avatar
fgprodigal committed
624
	E.db["unitframe"]["units"]["raidpet"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
625
	E.db["unitframe"]["units"]["raid"]["debuffs"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
626
	E.db["unitframe"]["units"]["raid"]["debuffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
627
	E.db["unitframe"]["units"]["raid"]["debuffs"]["sizeOverride"] = 21
fgprodigal's avatar
fgprodigal committed
628
	E.db["unitframe"]["units"]["raid"]["debuffs"]["clickThrough"] = true
fgprodigal's avatar
fgprodigal committed
629
	E.db["unitframe"]["units"]["raid"]["debuffs"]["priority"] = "Blacklist,Boss,RaidDebuffs,Dispellable"
fgprodigal's avatar
fgprodigal committed
630
	E.db["unitframe"]["units"]["raid"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
fgprodigal's avatar
fgprodigal committed
631
	E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = -15
fgprodigal's avatar
fgprodigal committed
632
	E.db["unitframe"]["units"]["raid"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
633
	E.db["unitframe"]["units"]["raid"]["rdebuffs"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
634
	E.db["unitframe"]["units"]["raid"]["rdebuffs"]["size"] = 20
fgprodigal's avatar
fgprodigal committed
635
	E.db["unitframe"]["units"]["raid"]["rdebuffs"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
636
	E.db["unitframe"]["units"]["raid"]["rdebuffs"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
637
	E.db["unitframe"]["units"]["raid"]["growthDirection"] = "RIGHT_UP"
fgprodigal's avatar
fgprodigal committed
638
	E.db["unitframe"]["units"]["raid"]["numGroups"] = 6
fgprodigal's avatar
fgprodigal committed
639 640
	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["size"] = 10
	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["fontSize"] = 11
fgprodigal's avatar
fgprodigal committed
641
	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["style"] = "coloredIcon"
fgprodigal's avatar
fgprodigal committed
642 643 644
	E.db["unitframe"]["units"]["raid"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["raid"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["raid"]["health"]["frequentUpdates"] = true
fgprodigal's avatar
fgprodigal committed
645
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
646
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["size"] = 10
fgprodigal's avatar
fgprodigal committed
647
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["tank"] = true
fgprodigal's avatar
fgprodigal committed
648
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["heal"] = true
fgprodigal's avatar
fgprodigal committed
649 650 651
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["damager"] = true
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["raid"]["roleIcon"]["xOffset"] = -5
fgprodigal's avatar
fgprodigal committed
652 653
	E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["size"] = 20
	E.db["unitframe"]["units"]["raid"]["power"]["height"] = 4
fgprodigal's avatar
fgprodigal committed
654
	E.db["unitframe"]["units"]["raid"]["power"]["text_format"] = ""
fgprodigal's avatar
fgprodigal committed
655 656 657 658 659 660 661 662 663
	E.db["unitframe"]["units"]["raid"]["customTexts"] = {
		["Status"] = {
			["attachTextTo"] = "Health",
			["enable"] = true,
			["text_format"] = "[statustimer]",
			["yOffset"] = -12,
			["justifyH"] = "CENTER",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
664
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
665
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
666 667 668 669
		},
		["BigName"] = {
			["attachTextTo"] = "Health",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
670
			["text_format"] = nameColorTag .. "[rayui-health:deficit-nostatus:name-veryshort]",
fgprodigal's avatar
fgprodigal committed
671 672 673 674
			["yOffset"] = 0,
			["justifyH"] = "CENTER",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
675
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
676
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
677 678 679
		},
	}
	E.db["unitframe"]["units"]["raid"]["healPrediction"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
680
	E.db["unitframe"]["units"]["raid"]["width"] = 79
fgprodigal's avatar
fgprodigal committed
681 682 683 684
	E.db["unitframe"]["units"]["raid"]["infoPanel"]["height"] = 13
	E.db["unitframe"]["units"]["raid"]["infoPanel"]["transparent"] = true
	E.db["unitframe"]["units"]["raid"]["groupBy"] = "ROLE"
	E.db["unitframe"]["units"]["raid"]["name"]["text_format"] = ""
fgprodigal's avatar
fgprodigal committed
685 686
	E.db["unitframe"]["units"]["raid"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["raid"]["buffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
687 688 689 690 691 692 693 694 695 696 697
	E.db["unitframe"]["units"]["raid"]["buffs"]["useBlacklist"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["useWhitelist"] = true
	E.db["unitframe"]["units"]["raid"]["buffs"]["playerOnly"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["perrow"] = 1
	E.db["unitframe"]["units"]["raid"]["buffs"]["anchorPoint"] = "CENTER"
	E.db["unitframe"]["units"]["raid"]["buffs"]["useFilter"] = "MER_RaidCDs"
	E.db["unitframe"]["units"]["raid"]["buffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["raid"]["buffs"]["noConsolidated"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["priority"] = "MER_RaidCDs"
	E.db["unitframe"]["units"]["raid"]["buffs"]["noDuration"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["sizeOverride"] = 20
fgprodigal's avatar
fgprodigal committed
698
	E.db["unitframe"]["units"]["raid"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
699
	E.db["unitframe"]["units"]["raid"]["buffs"]["yOffset"] = 12
fgprodigal's avatar
fgprodigal committed
700 701
	E.db["unitframe"]["units"]["raid"]["height"] = 40
	E.db["unitframe"]["units"]["raid"]["verticalSpacing"] = 2
fgprodigal's avatar
fgprodigal committed
702
	E.db["unitframe"]["units"]["raid"]["horizontalSpacing"] = 2
fgprodigal's avatar
fgprodigal committed
703
	E.db["unitframe"]["units"]["raid"]["visibility"] = "[@raid31,exists][nogroup] hide;show"
fgprodigal's avatar
fgprodigal committed
704 705 706 707
	E.db["unitframe"]["units"]["raid"]["raidicon"]["attachTo"] = "CENTER"
	E.db["unitframe"]["units"]["raid"]["raidicon"]["size"] = 15
	E.db["unitframe"]["units"]["raid"]["raidicon"]["yOffset"] = 0
	E.db["unitframe"]["units"]["focustarget"]["health"]["frequentUpdates"] = true
fgprodigal's avatar
fgprodigal committed
708
	E.db["unitframe"]["units"]["pet"]["debuffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
709 710 711 712 713
	E.db["unitframe"]["units"]["pet"]["debuffs"]["sizeOverride"] = 30
	E.db["unitframe"]["units"]["pet"]["debuffs"]["perrow"] = 3
	E.db["unitframe"]["units"]["pet"]["debuffs"]["enable"] = true
	E.db["unitframe"]["units"]["pet"]["debuffs"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["pet"]["debuffs"]["yOffset"] = 15
fgprodigal's avatar
fgprodigal committed
714
	E.db["unitframe"]["units"]["pet"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
715
	E.db["unitframe"]["units"]["pet"]["debuffs"]["spacing"] = 4
fgprodigal's avatar
fgprodigal committed
716
	E.db["unitframe"]["units"]["pet"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
717 718 719 720 721 722 723 724 725
	E.db["unitframe"]["units"]["pet"]["portrait"]["overlay"] = true
	E.db["unitframe"]["units"]["pet"]["power"]["xOffset"] = 0
	E.db["unitframe"]["units"]["pet"]["power"]["attachTextTo"] = "Health"
	E.db["unitframe"]["units"]["pet"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["pet"]["power"]["position"] = "RIGHT"
	E.db["unitframe"]["units"]["pet"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
726
			["text_format"] = nameColorTag .. "[name:veryshort:translit]",
fgprodigal's avatar
fgprodigal committed
727 728 729 730 731
			["yOffset"] = 23,
			["justifyH"] = "LEFT",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 3,
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
732
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
733 734 735 736 737 738 739 740 741 742 743 744
		},
	}
	E.db["unitframe"]["units"]["pet"]["name"]["attachTextTo"] = "Health"
	E.db["unitframe"]["units"]["pet"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["pet"]["width"] = 75
	E.db["unitframe"]["units"]["pet"]["infoPanel"]["height"] = 14
	E.db["unitframe"]["units"]["pet"]["infoPanel"]["transparent"] = true
	E.db["unitframe"]["units"]["pet"]["health"]["attachTextTo"] = "InfoPanel"
	E.db["unitframe"]["units"]["pet"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["pet"]["health"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["pet"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["pet"]["health"]["xOffset"] = 0
fgprodigal's avatar
fgprodigal committed
745 746 747 748
	E.db["unitframe"]["units"]["pet"]["fader"]["hover"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["combat"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["power"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["range"] = false
fgprodigal's avatar
fgprodigal committed
749
	E.db["unitframe"]["units"]["pet"]["fader"]["minAlpha"] = 0.2
fgprodigal's avatar
fgprodigal committed
750 751 752 753 754
	E.db["unitframe"]["units"]["pet"]["fader"]["health"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["casting"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["vehicle"] = true
	E.db["unitframe"]["units"]["pet"]["fader"]["playertarget"] = true
	E.db["unitframe"]["units"]["pet"]["buffIndicator"]["style"] = "coloredIcon"
fgprodigal's avatar
fgprodigal committed
755
	E.db["unitframe"]["units"]["pet"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
756 757
	E.db["unitframe"]["units"]["pet"]["castbar"]["overlayOnFrame"] = "None"
	E.db["unitframe"]["units"]["pet"]["castbar"]["iconXOffset"] = -2
fgprodigal's avatar
fgprodigal committed
758
	E.db["unitframe"]["units"]["pet"]["castbar"]["timeToHold"] = 0.8
fgprodigal's avatar
fgprodigal committed
759
	E.db["unitframe"]["units"]["pet"]["castbar"]["width"] = 75
fgprodigal's avatar
fgprodigal committed
760
	E.db["unitframe"]["units"]["pet"]["castbar"]["height"] = 18
fgprodigal's avatar
fgprodigal committed
761
	E.db["unitframe"]["units"]["pet"]["castbar"]["hidetext"] = true
fgprodigal's avatar
fgprodigal committed
762
	E.db["unitframe"]["units"]["pet"]["castbar"]["iconYOffset"] = -6
fgprodigal's avatar
fgprodigal committed
763
	E.db["unitframe"]["units"]["assist"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
764
	E.db["unitframe"]["units"]["party"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
765 766 767
	E.db["unitframe"]["units"]["party"]["horizontalSpacing"] = 1
	E.db["unitframe"]["units"]["party"]["debuffs"]["anchorPoint"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 30
fgprodigal's avatar
fgprodigal committed
768
	E.db["unitframe"]["units"]["party"]["debuffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
769 770
	E.db["unitframe"]["units"]["party"]["debuffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = -2
fgprodigal's avatar
fgprodigal committed
771
	E.db["unitframe"]["units"]["party"]["debuffs"]["priority"] = "Blacklist,Boss,RaidDebuffs,Dispellable"
fgprodigal's avatar
fgprodigal committed
772
	E.db["unitframe"]["units"]["party"]["debuffs"]["perrow"] = 2
fgprodigal's avatar
fgprodigal committed
773
	E.db["unitframe"]["units"]["party"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
774
	E.db["unitframe"]["units"]["party"]["debuffs"]["spacing"] = 4
fgprodigal's avatar
fgprodigal committed
775 776
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["size"] = 20
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["yOffset"] = 12
fgprodigal's avatar
fgprodigal committed
777
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
778
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
779
	E.db["unitframe"]["units"]["party"]["buffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
780 781 782 783 784 785 786 787 788 789 790 791 792 793
	E.db["unitframe"]["units"]["party"]["buffs"]["sizeOverride"] = 20
	E.db["unitframe"]["units"]["party"]["buffs"]["useBlacklist"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["useWhitelist"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["xOffset"] = 2
	E.db["unitframe"]["units"]["party"]["buffs"]["playerOnly"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["useFilter"] = "MER_RaidCDs"
	E.db["unitframe"]["units"]["party"]["buffs"]["yOffset"] = -15
	E.db["unitframe"]["units"]["party"]["buffs"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["party"]["buffs"]["noConsolidated"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["perrow"] = 2
	E.db["unitframe"]["units"]["party"]["buffs"]["priority"] = "MER_RaidCDs"
	E.db["unitframe"]["units"]["party"]["buffs"]["noDuration"] = false
fgprodigal's avatar
fgprodigal committed
794
	E.db["unitframe"]["units"]["party"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
795 796 797 798 799 800 801 802 803 804 805 806
	E.db["unitframe"]["units"]["party"]["orientation"] = "MIDDLE"
	E.db["unitframe"]["units"]["party"]["groupBy"] = "ROLE"
	E.db["unitframe"]["units"]["party"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["party"]["health"]["position"] = "CENTER"
	E.db["unitframe"]["units"]["party"]["health"]["xOffset"] = 0
	E.db["unitframe"]["units"]["party"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["party"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["party"]["health"]["yOffset"] = 2
	E.db["unitframe"]["units"]["party"]["roleIcon"]["xOffset"] = 1
	E.db["unitframe"]["units"]["party"]["roleIcon"]["size"] = 11
	E.db["unitframe"]["units"]["party"]["roleIcon"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["anchorPoint"] = "BOTTOM"
fgprodigal's avatar
fgprodigal committed
807
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["name"]["text_format"] = nameColorTag .. "[name:short]"
fgprodigal's avatar
fgprodigal committed
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["xOffset"] = 0
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["height"] = 16
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["width"] = 79
	E.db["unitframe"]["units"]["party"]["readycheckIcon"]["size"] = 20
	E.db["unitframe"]["units"]["party"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["party"]["power"]["position"] = "BOTTOMRIGHT"
	E.db["unitframe"]["units"]["party"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["party"]["power"]["yOffset"] = 2
	E.db["unitframe"]["units"]["party"]["customTexts"] = {
		["Status"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
			["text_format"] = "[statustimer]",
			["yOffset"] = -12,
			["justifyH"] = "CENTER",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
825
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
826
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
827 828 829 830
		},
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
831
			["text_format"] = nameColorTag .. "[name:medium:translit] [difficultycolor][smartlevel]",
fgprodigal's avatar
fgprodigal committed
832 833 834 835
			["yOffset"] = 23,
			["justifyH"] = "RIGHT",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
836
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
837
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857
		},
	}
	E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true
	E.db["unitframe"]["units"]["party"]["width"] = 160
	E.db["unitframe"]["units"]["party"]["name"]["attachTextTo"] = "Frame"
	E.db["unitframe"]["units"]["party"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["party"]["name"]["position"] = "BOTTOMLEFT"
	E.db["unitframe"]["units"]["party"]["buffIndicator"]["size"] = 10
	E.db["unitframe"]["units"]["party"]["buffIndicator"]["fontSize"] = 11
	E.db["unitframe"]["units"]["party"]["height"] = 30
	E.db["unitframe"]["units"]["party"]["verticalSpacing"] = 25
	E.db["unitframe"]["units"]["party"]["petsGroup"]["name"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["petsGroup"]["height"] = 16
	E.db["unitframe"]["units"]["party"]["petsGroup"]["width"] = 60
	E.db["unitframe"]["units"]["party"]["petsGroup"]["xOffset"] = 0
	E.db["unitframe"]["units"]["party"]["petsGroup"]["yOffset"] = -1
	E.db["unitframe"]["units"]["party"]["raidicon"]["attachTo"] = "RIGHT"
	E.db["unitframe"]["units"]["party"]["raidicon"]["size"] = 16
	E.db["unitframe"]["units"]["party"]["raidicon"]["xOffset"] = -2
	E.db["unitframe"]["units"]["party"]["raidicon"]["yOffset"] = 0
fgprodigal's avatar
fgprodigal committed
858
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
859
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
860 861 862 863 864
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["useBlacklist"] = false
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["yOffset"] = -8
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["useFilter"] = "Whitlist (Strict)"
fgprodigal's avatar
fgprodigal committed
865
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["priority"] = "Blacklist,Boss,RaidDebuffs,Dispellable"
fgprodigal's avatar
fgprodigal committed
866 867
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["perrow"] = 5
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["sizeOverride"] = 15
fgprodigal's avatar
fgprodigal committed
868
	E.db["unitframe"]["units"]["raid40"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
869
	E.db["unitframe"]["units"]["raid40"]["portrait"]["camDistanceScale"] = 2
fgprodigal's avatar
fgprodigal committed
870
	E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
871
	E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["size"] = 20
fgprodigal's avatar
fgprodigal committed
872
	E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
873
	E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
874 875 876 877 878 879 880
	E.db["unitframe"]["units"]["raid40"]["growthDirection"] = "RIGHT_UP"
	E.db["unitframe"]["units"]["raid40"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["raid40"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["raid40"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["raid40"]["groupBy"] = "ROLE"
	E.db["unitframe"]["units"]["raid40"]["classHover"] = true
	E.db["unitframe"]["units"]["raid40"]["positionOverride"] = "BOTTOMRIGHT"
fgprodigal's avatar
fgprodigal committed
881
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
882
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["size"] = 10
fgprodigal's avatar
fgprodigal committed
883 884 885 886 887
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["tank"] = true
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["heal"] = true
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["damager"] = true
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["raid40"]["roleIcon"]["xOffset"] = -5
fgprodigal's avatar
fgprodigal committed
888 889 890 891 892
	E.db["unitframe"]["units"]["raid40"]["raidWideSorting"] = false
	E.db["unitframe"]["units"]["raid40"]["readycheckIcon"]["size"] = 20
	E.db["unitframe"]["units"]["raid40"]["power"]["attachTextTo"] = "Health"
	E.db["unitframe"]["units"]["raid40"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["raid40"]["power"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
893
	E.db["unitframe"]["units"]["raid40"]["power"]["text_format"] = ""
fgprodigal's avatar
fgprodigal committed
894 895 896 897 898 899 900 901 902
	E.db["unitframe"]["units"]["raid40"]["customTexts"] = {
		["Status"] = {
			["attachTextTo"] = "Health",
			["enable"] = true,
			["text_format"] = "[statustimer]",
			["yOffset"] = -12,
			["justifyH"] = "CENTER",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
903
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
904
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
905 906 907 908
		},
		["BigName"] = {
			["attachTextTo"] = "Health",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
909
			["text_format"] = nameColorTag .. "[rayui-health:deficit-nostatus:name-veryshort]",
fgprodigal's avatar
fgprodigal committed
910 911 912 913
			["yOffset"] = 0,
			["justifyH"] = "CENTER",
			["fontOutline"] = "OUTLINE",
			["xOffset"] = 0,
fgprodigal's avatar
fgprodigal committed
914
			["size"] = 12,