From 90a7a8d88314e2196d3aa50dd5bcb836c90afb63 Mon Sep 17 00:00:00 2001 From: Eyal Shilony Date: Sat, 11 Oct 2014 23:30:45 +0300 Subject: [PATCH] Add profiles. --- Options.lua | 7 +++++++ loc/enUS.lua | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Options.lua b/Options.lua index 4ea489e..f24300e 100644 --- a/Options.lua +++ b/Options.lua @@ -84,5 +84,12 @@ function options:OnInitialize() } }) + local profiles = options:AddSubCategory(L["Profiles"]) + profiles:SetDescription(L["You can change the active database profile, so you can have different settings for every character."]) + + local frame = LibStub("Libra"):CreateAceDBControls(addon.db, profiles) + + frame:SetPoint("TOP", -100, -100); + options:SetupControls() end \ No newline at end of file diff --git a/loc/enUS.lua b/loc/enUS.lua index 222a342..a483c27 100644 --- a/loc/enUS.lua +++ b/loc/enUS.lua @@ -27,4 +27,7 @@ local L = LibStub("AceLocale-3.0"):NewLocale(addonName, "enUS", true, false) L["Hide icon"] = true L["Icon Position"] = true L["Hide time"] = true -L["Time Position"] = true \ No newline at end of file +L["Time Position"] = true + +L["Profiles"] = true +L["You can change the active database profile, so you can have different settings for every character."] = true \ No newline at end of file -- 1.7.9.5