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

local IsAddOnLoaded = IsAddOnLoaded
fgprodigal's avatar
fgprodigal committed
4
local addon = "ProjectAzilroka"
fgprodigal's avatar
fgprodigal committed
5

fgprodigal's avatar
fgprodigal committed
6
if IsAddOnLoaded(addon) ~= true then return end
fgprodigal's avatar
fgprodigal committed
7 8 9 10 11 12 13 14 15 16 17 18 19

local _G, string = _G, string

function RayUI:LoadPAProfile()
    --[[----------------------------------
	--	ProjectAzilroka - Settings
	--]]----------------------------------
	local PA = _G.ProjectAzilroka
    PA.data:SetProfile('RayUI')

    PA.db["SquareMinimapButtons"]["MoveQueue"] = false
    PA.db["SquareMinimapButtons"]["MoveMail"] = false
    PA.db["SquareMinimapButtons"]["MoveTracker"] = false
fgprodigal's avatar
fgprodigal committed
20 21 22
    PA.db["SquareMinimapButtons"]["Backdrop"] = false
    PA.db["SquareMinimapButtons"]["ButtonSpacing"] = 0
    PA.db["SquareMinimapButtons"]["ButtonsPerRow"] = 11
fgprodigal's avatar
fgprodigal committed
23

fgprodigal's avatar
fgprodigal committed
24 25
    PA.db["AuraReminder"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
26 27
    PA.db["EnhancedShadows"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
28 29 30 31
    PA.db["MovableFrames"]["Enable"] = false

    PA.db["MouseoverAuras"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
32 33
    PA.db["QuestSounds"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
34
    PA.db["BrokerLDB"]["FontFlag"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
35
    PA.db["BrokerLDB"]["Font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
36 37 38 39 40 41 42 43

    PA.db["BigButtons"]["Enable"] = true

    PA.db["EnhancedFriendsList"]["App"] = "Flat"
    PA.db["EnhancedFriendsList"]["BSAp"] = "Flat"

    PA.db["DragonOverlay"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
44
    PA.db["OzCooldowns"]["Enable"] = true
fgprodigal's avatar
fgprodigal committed
45 46 47
    PA.db["OzCooldowns"]["StatusBarTexture"] = "Kringel"
    PA.db["OzCooldowns"]["Tooltips"] = false
    PA.db["OzCooldowns"]["SuppressDuration"] = 120
fgprodigal's avatar
fgprodigal committed
48 49 50 51 52 53 54 55 56
    PA.db["OzCooldowns"]["StackFont"] = E.Libs.LSM.DefaultMedia["font"]

    PA.db["iFilger"]["Enable"] = true
    PA.db["iFilger"]["Enhancements"]["Enable"] = false
    PA.db["iFilger"]["FocusDebuffs"]["Enable"] = false
    PA.db["iFilger"]["RaidDebuffs"]["Enable"] = false
    PA.db["iFilger"]["FocusBuffs"]["Enable"] = false
    PA.db["iFilger"]["Procs"]["Enable"] = false
    PA.db["iFilger"]["Cooldowns"]["Enable"] = false
fgprodigal's avatar
fgprodigal committed
57 58 59 60 61 62 63
    PA.db["iFilger"]["Buffs"]["Enable"] = true
    PA.db["iFilger"]["Buffs"]["Size"] = 40
    PA.db["iFilger"]["Buffs"]["FilterByList"] = "Whitelist"
    PA.db["iFilger"]["Buffs"]["StackCountFont"] = E.Libs.LSM.DefaultMedia["font"]
    PA.db["iFilger"]["Buffs"]["StackCountFontFlag"] = "OUTLINE"
    PA.db["iFilger"]["Buffs"]["StackCountFontSize"] = 12
    PA.db["iFilger"]["Buffs"]["Whitelist"][275863] = true
fgprodigal's avatar
fgprodigal committed
64 65 66 67 68 69 70 71 72 73 74 75
    PA.db["iFilger"]["TargetDebuffs"]["Enable"] = false
    PA.db["iFilger"]["ItemCooldowns"]["Enable"] = true
    PA.db["iFilger"]["ItemCooldowns"]["StatusBarTexture"] = "Kringel"
    PA.db["iFilger"]["ItemCooldowns"]["StatusBarDirection"] = "DOWN"
    PA.db["iFilger"]["ItemCooldowns"]["StackCountFont"] = E.Libs.LSM.DefaultMedia["font"]
    PA.db["iFilger"]["ItemCooldowns"]["StatusBarFont"] = E.Libs.LSM.DefaultMedia["font"]
    PA.db["iFilger"]["ItemCooldowns"]["Size"] = 32
    PA.db["iFilger"]["ItemCooldowns"]["StatusBar"] = true
    PA.db["iFilger"]["ItemCooldowns"]["StatusBarFontFlag"] = "OUTLINE"
    PA.db["iFilger"]["ItemCooldowns"]["StatusBarFontSize"] = 12
    PA.db["iFilger"]["ItemCooldowns"]["StackCountFontFlag"] = "OUTLINE"
    PA.db["iFilger"]["ItemCooldowns"]["StackCountFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
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

    PA.db["ReputationReward"]["ShowAll"] = false

    PA.db["cooldown"]["hideBlizzard"] = true
    PA.db["cooldown"]["mmssColor"] = { r = 1, g = 1, b = 0}
    PA.db["cooldown"]["mmssColor"] = { r = 1, g = 1, b = 0}
    PA.db["cooldown"]["fonts"] = {
        ["enable"] = true,
        ["font"] = "RayUI Roadway",
    }
end

local function ElvUI_PATable()
	E.Options.args.rayui.args.addons.args[addon] = {
		order = 1,
		type = "execute",
		name = addon,
		desc = string.format(L["This will create and apply profile for %s"], addon),
		buttonElvUI = true,
		func = function()
			RayUI:LoadPAProfile()
			E:StaticPopup_Show('PRIVATE_RL')
			-- RayUI:Print(profileString..addon)
		end,
		disabled = function() return not IsAddOnLoaded(addon) end,
	}
end

tinsert(RayUI.Config, ElvUI_PATable)