From 869769ed08c34a4c3147bda375b7965503cbda98 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 14 Jan 2015 04:53:35 +0400 Subject: [PATCH] Error Frame mover and stuff --- ElvUI_SLE/core/modules.lua | 1 + ElvUI_SLE/defaults/profile.lua | 5 +++ ElvUI_SLE/locales/russian.lua | 6 ++++ ElvUI_SLE/modules/errorframe.lua | 11 +++++++ ElvUI_SLE/modules/load_modules.xml | 1 + ElvUI_SLE/options/errorframe_c.lua | 59 ++++++++++++++++++++++++++++++++++++ ElvUI_SLE/options/load_options.xml | 1 + 7 files changed, 84 insertions(+) create mode 100644 ElvUI_SLE/modules/errorframe.lua create mode 100644 ElvUI_SLE/options/errorframe_c.lua diff --git a/ElvUI_SLE/core/modules.lua b/ElvUI_SLE/core/modules.lua index 3bac6cd..77e60d7 100644 --- a/ElvUI_SLE/core/modules.lua +++ b/ElvUI_SLE/core/modules.lua @@ -25,6 +25,7 @@ local modules = { ['SLE_InstDif'] = {'AceHook-3.0', 'AceEvent-3.0'}, ['SLE_ScreenSaver'] = { 'AceHook-3.0', 'AceEvent-3.0' }, ['SLE_Garrison'] = { 'AceEvent-3.0' }, + ['SLE_ErrorFrame'] = { }, ['SLE'] = {'AceHook-3.0', 'AceEvent-3.0'}, } diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua index 63ba57e..cc9da37 100644 --- a/ElvUI_SLE/defaults/profile.lua +++ b/ElvUI_SLE/defaults/profile.lua @@ -460,6 +460,11 @@ P['sle'] = { ['autoTrade'] = false, ['showOrderButton'] = true, }, + + ['errorframe'] = { + ['height'] = 60, + ['width'] = 512, + }, } P.chat.editboxhistory = 5 diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index 86013dd..50d3df2 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -42,6 +42,7 @@ L['Oh lord, you have got ElvUI Enhanced and Shadow & Light both enabled at the s L['You have got Loot Confirm and Shadow & Light both enabled at the same time. Select an addon to disable.'] = "Одновременно активны Loot Confirm и Shadow & Light. Выберите что из них отключить." L["Enabling mouse over will make ElvUI's raid utility show on mouse over instead of always showing."] = "Отображать кнопку управления рейдом только при наведении мыши." L['Adjust the position of the threat bar to any of the datatext panels in ElvUI & S&L.'] = "Позволяет поместить полосу угрозы на любой панели инфо-текстов." +L["This option have been moved by Shadow & Light. Click to access it's new place."] = "Shadow & Light переместил эту опцию. Кликните для перехода к ее новому расположению." --Chat-- L["Reset Chat History"] = "Сбросить историю чата" @@ -496,6 +497,11 @@ L["Show Max Order Button"] = "Кнопка максимума" L["Show the button to queue maximum number of work orders in building's UI."] = "Отображать кнопку для выполнения максимума заказов в интерфейсе зданий." L["Max"] = "Макс." +--Error Frame-- +L["Error Frame"] = "Фрейм ошибок" +L["Set the width of Error Frame. Too narrow frame may cause messages to be split in several lines"] = "Устанавливает ширину фрейма ошибок. Если фрейм окажется слишком узким, текст будет разделен на несколько строк." +L["Set the height of Error Frame. Higher frame can show more lines at once."] = "Устанавливает высоту фрейма ошибок. Чем выше фрейм, тем больше строк может быть показано одновременно." + --Credits-- L["Submodules and Coding:"] = "Субмодули и помощь с кодом:" L["Other Support:"] = "Прочая поддержка:" diff --git a/ElvUI_SLE/modules/errorframe.lua b/ElvUI_SLE/modules/errorframe.lua new file mode 100644 index 0000000..d4cfe73 --- /dev/null +++ b/ElvUI_SLE/modules/errorframe.lua @@ -0,0 +1,11 @@ +local E, L, V, P, G = unpack(ElvUI); +local F = E:GetModule('SLE_ErrorFrame'); + +function F:SetSize() + UIErrorsFrame:SetSize(E.db.sle.errorframe.width, E.db.sle.errorframe.height) --512 x 60 +end + +function F:Initialize() + F:SetSize() + E:CreateMover(UIErrorsFrame, "UIErrorsFrameMover", L["Error Frame"], nil, nil, nil, "ALL,S&L,S&L MISC") +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/load_modules.xml b/ElvUI_SLE/modules/load_modules.xml index 19cec56..b168fbb 100644 --- a/ElvUI_SLE/modules/load_modules.xml +++ b/ElvUI_SLE/modules/load_modules.xml @@ -26,4 +26,5 @@