ProjectAzilroka.lua 2.09 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 20

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
21 22
    PA.db["AuraReminder"]["Enable"] = false

fgprodigal's avatar
fgprodigal committed
23 24
    PA.db["EnhancedShadows"]["Enable"] = false

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

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

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

fgprodigal's avatar
fgprodigal committed
31 32 33 34 35 36 37 38 39 40
    PA.db["BrokerLDB"]["FontFlag"] = "OUTLINE"
    PA.db["BrokerLDB"]["Font"] = "PT Sans Narrow"

    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
41
    PA.db["OzCooldowns"]["Enable"] = false
fgprodigal's avatar
fgprodigal committed
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
    PA.db["OzCooldowns"]["StatusBarTexture"] = "Kringel"
    PA.db["OzCooldowns"]["Tooltips"] = false
    PA.db["OzCooldowns"]["SuppressDuration"] = 120
    PA.db["OzCooldowns"]["StackFont"] = "PT Sans Narrow"

    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)