From de56a45aa417c744b6ad3c6a91fec42abb25b162 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 28 Jun 2014 02:01:00 +0400 Subject: [PATCH] dev folder --- ElvUI_SLE/dev/commands.lua | 5 ----- ElvUI_SLE/dev/options.lua | 20 ++++++++++++++++++- ElvUI_SLE/dev/staticpopups.lua | 20 +++++++++++++++++++ ElvUI_SLE/dev/test.lua | 42 ++++++++++++++++++++-------------------- 4 files changed, 60 insertions(+), 27 deletions(-) diff --git a/ElvUI_SLE/dev/commands.lua b/ElvUI_SLE/dev/commands.lua index 108c259..5a7f62b 100755 --- a/ElvUI_SLE/dev/commands.lua +++ b/ElvUI_SLE/dev/commands.lua @@ -14,11 +14,6 @@ local Authors = { ["Repøøc"] = "SLEAUTHOR", ["Repooc"] = "SLEAUTHOR" }, - ["СвежевательДуш"] = { - --Darth's toons - ["Джатон"] = "SLEAUTHOR", - ["Нарджо"] = "SLEAUTHOR" - }, ["ВечнаяПесня"] = { --Darth's toons ["Дартпредатор"] = "SLEAUTHOR", diff --git a/ElvUI_SLE/dev/options.lua b/ElvUI_SLE/dev/options.lua index e0e3eec..6bf7890 100755 --- a/ElvUI_SLE/dev/options.lua +++ b/ElvUI_SLE/dev/options.lua @@ -177,7 +177,7 @@ if SLE:Auth() then }, }, devcommand = { - order = 500, + order = 4, type = "group", name = "Commands", args = { @@ -313,6 +313,24 @@ if SLE:Auth() then }, }, + devdiaggroup = { + order = 5, + type = "group", + name = "Tech and shit", + args = { + subgroup = { + order = 1, + type = "header", + name = "Some tech stuff", + }, + cpuprofiling = { + order = 2, + type = 'execute', + name = "CPU Profiling", + func = function() SetCVar("scriptProfile", GetCVar("scriptProfile") == "1" and 0 or 1); ReloadUI() end, + }, + }, + }, devgroupone = { order = 500, type = "group", diff --git a/ElvUI_SLE/dev/staticpopups.lua b/ElvUI_SLE/dev/staticpopups.lua index 9fea07f..556bbc8 100755 --- a/ElvUI_SLE/dev/staticpopups.lua +++ b/ElvUI_SLE/dev/staticpopups.lua @@ -30,4 +30,24 @@ E.PopupDialogs['SLE_INCOMPATIBLE_ADDON'] = { timeout = 0, whileDead = 1, hideOnEscape = false, +} + +E.PopupDialogs['SLE_CHAT_HISTORY'] = { + text = "This will clear your chat history, you will no longer be able to see messages shown before executing after reload.\nContinue?", + button1 = ACCEPT, + button2 = CANCEL, + OnAccept = function(self) if ElvCharacterDB.ChatLog then ElvCharacterDB.ChatLog = {} end end, + timeout = 0, + whileDead = 1, + hideOnEscape = false, +} + +E.PopupDialogs['SLE_EDIT_HISTORY'] = { + text = "This will clear your editbox history and reload UI.\nContinue?", + button1 = ACCEPT, + button2 = CANCEL, + OnAccept = function(self) if ElvCharacterDB.ChatEditHistory then ElvCharacterDB.ChatEditHistory = {}; ReloadUI() end end, + timeout = 0, + whileDead = 1, + hideOnEscape = false, } \ No newline at end of file diff --git a/ElvUI_SLE/dev/test.lua b/ElvUI_SLE/dev/test.lua index bba7ded..6e668dd 100755 --- a/ElvUI_SLE/dev/test.lua +++ b/ElvUI_SLE/dev/test.lua @@ -1,21 +1,21 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB ---[[local T = E:NewModule('Test', 'AceHook-3.0', 'AceEvent-3.0'); - -local f1, f2, b1, b2 - -function T:Initialize() - f1 = CreateFrame("PlayerModel") - f1:SetPoint("TOPLEFT", LeftChatPanel,"TOPLEFT",0,0) - f1:SetHeight(E.db.chat.panelHeight) - f1:SetWidth(E.db.chat.panelWidth) - - f1:SetFrameStrata(LeftChatPanel:GetFrameStrata()) - f1:SetFrameLevel(LeftChatPanel:GetFrameLevel() - 2) - f1:SetScale(0.71) - f1:SetUnit("player") - - f1:SetPosition(2.5,0,-0.9) - f1:SetFacing(0.5) -end - -E:RegisterModule(T:GetName())]] +local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB +--[[local T = E:NewModule('SLE_Test', 'AceHook-3.0', 'AceEvent-3.0'); + +local f1, f2, b1, b2 + +function T:Initialize() + f1 = CreateFrame("PlayerModel") + f1:SetPoint("TOPLEFT", LeftChatPanel,"TOPLEFT",0,0) + f1:SetHeight(E.db.chat.panelHeight) + f1:SetWidth(E.db.chat.panelWidth) + + f1:SetFrameStrata(LeftChatPanel:GetFrameStrata()) + f1:SetFrameLevel(LeftChatPanel:GetFrameLevel() - 2) + f1:SetScale(0.71) + f1:SetUnit("player") + + f1:SetPosition(2.5,0,-0.9) + f1:SetFacing(0.5) +end + +E:RegisterModule(T:GetName())]] -- 1.7.9.5