From 33bc9a394ca68191955a85697442d91cbe81acc3 Mon Sep 17 00:00:00 2001 From: Terijaki <590522+terijaki@users.noreply.github.com> Date: Wed, 9 Nov 2022 21:21:40 +0100 Subject: [PATCH 1/8] Update deDE.lua --- ls_Glass/locales/deDE.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ls_Glass/locales/deDE.lua b/ls_Glass/locales/deDE.lua index 461703a..509e98a 100644 --- a/ls_Glass/locales/deDE.lua +++ b/ls_Glass/locales/deDE.lua @@ -7,3 +7,27 @@ local L = ns.L local _G = getfenv(0) if GetLocale() ~= "deDE" then return end + +L["BACKGROUND_ALPHA"] = "Hintergrundtransparenz" +L["CHANGELOG"] = "Änderungsprotokoll" +L["CHANGELOG_FULL"] = "vollständiges Änderungsprotokoll" +L["CONFIG_WARNING"] = "Ich empfehle dringend, die Benutzeroberfläche nach dem Einrichten des Addons oder dem Öffnen dieses Fensters mithilfe von |cffffd200/reload|r neu zu laden, um Fehler die während des Kampfes auftreten können zu vermeiden." +L["DOCK_AND_EDITBOX"] = "Registerkarten und Eingabefeld" +L["DOWNLOADS"] = "Downloads" +L["FADE_IN_DURATION"] = "Einblendezeit" +L["FADE_OUT_DELAY"] = "Ausblendeverzögerung" +L["FADE_OUT_DURATION"] = "Ausblendezeit" +L["FADING"] = "Ausblenden" +L["FONT"] = "Schriftart" +L["FONT_EDITBOX"] = "Schriftart des Eingabefeld" +L["JUMP_TO_PRESENT"] = "zur aktuellen Position springen" +L["MESSAGES"] = "Nachrichten" +L["MOUSEOVER_TOOLTIPS"] = "Mauszeiger-Tooltip" +L["OPEN_CONFIG"] = "Konfigurationen öffnen" +L["OUTLINE"] = "Umriss" +L["PERSISTENT"] = "dauerhaft" +L["SHADOW"] = "Schatten" +L["SIZE"] = "Größe" +L["SLIDE_IN_DURATION"] = "Einschubzeit" +L["SUPPORT"] = "Support" +L["UNREAD_MESSAGES"] = "|TInterface\\CHATFRAME\\UI-ChatWhisperIcon:0:|t ungelesene Nachrichten" From defe4708d2e860b60e5c740ee5651a285c13f3ad Mon Sep 17 00:00:00 2001 From: Terijaki <590522+terijaki@users.noreply.github.com> Date: Wed, 9 Nov 2022 21:26:37 +0100 Subject: [PATCH 2/8] Update deDE.lua --- ls_Glass/locales/deDE.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ls_Glass/locales/deDE.lua b/ls_Glass/locales/deDE.lua index 509e98a..06e4d2b 100644 --- a/ls_Glass/locales/deDE.lua +++ b/ls_Glass/locales/deDE.lua @@ -25,7 +25,7 @@ L["MESSAGES"] = "Nachrichten" L["MOUSEOVER_TOOLTIPS"] = "Mauszeiger-Tooltip" L["OPEN_CONFIG"] = "Konfigurationen öffnen" L["OUTLINE"] = "Umriss" -L["PERSISTENT"] = "dauerhaft" +L["PERSISTENT"] = "Dauerhaft anzeigen" L["SHADOW"] = "Schatten" L["SIZE"] = "Größe" L["SLIDE_IN_DURATION"] = "Einschubzeit" From 63bcae15de732f60658dcc6ae7198f84b42e061f Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Thu, 10 Nov 2022 04:16:06 +0700 Subject: [PATCH 3/8] Fix fasting forward for good MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A couple of days ago I moved SetShown to make things prettier, who knew it'd have such devastating consequences... 😒🔫 --- ls_Glass/core/components/slidingmessageframe.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ls_Glass/core/components/slidingmessageframe.lua b/ls_Glass/core/components/slidingmessageframe.lua index 6e8c1a5..2ff14ab 100644 --- a/ls_Glass/core/components/slidingmessageframe.lua +++ b/ls_Glass/core/components/slidingmessageframe.lua @@ -209,7 +209,6 @@ function object_proto:CaptureChatFrame(chatFrame) self:SetPoint("TOPLEFT", chatFrame) self:SetSize(width, height) - self:SetShown(chatFrame:IsShown()) self.ScrollChild:SetSize(width, height) @@ -230,6 +229,8 @@ function object_proto:CaptureChatFrame(chatFrame) for i = 1, chatFrame:GetNumMessages() do self:AddMessage(chatFrame, chatFrame:GetMessageInfo(i)) end + + self:SetShown(chatFrame:IsShown()) end function object_proto:ReleaseChatFrame() @@ -393,11 +394,11 @@ function object_proto:FastForward() t_wipe(self.incomingMessages) local num = m_min(self:GetNumHistoryElements(), self:GetMaxMessages(), self:GetFirstMessageIndex()) - if num == 0 then return end self:SetVerticalScroll(0) - self:ScrollTo(num) + self:ScrollTo(num, true) + if num == 0 then return end if num == self:GetFirstMessageIndex() then num = num + 1 end @@ -410,7 +411,7 @@ function object_proto:FastForward() end end - self:ProcessIncoming(messages, false) + self:ProcessIncoming(messages, true) self:SetFirstMessageIndex(0) end end From 4256a9b669034b8286690bb41e917848b9d2f410 Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Thu, 10 Nov 2022 05:12:18 +0700 Subject: [PATCH 4/8] More fasting forward fixes --- ls_Glass/core/components/slidingmessageframe.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ls_Glass/core/components/slidingmessageframe.lua b/ls_Glass/core/components/slidingmessageframe.lua index 2ff14ab..1319653 100644 --- a/ls_Glass/core/components/slidingmessageframe.lua +++ b/ls_Glass/core/components/slidingmessageframe.lua @@ -315,7 +315,7 @@ function object_proto:ReleaseMessageLine(messageLine) end function object_proto:GetMaxMessages() - return m_ceil(self.ChatFrame:GetHeight() / (C.db.profile.chat.font.size + C.db.profile.chat.y_padding * 2)) + return m_ceil(self:GetHeight() / (C.db.profile.chat.font.size + C.db.profile.chat.y_padding * 2)) end function object_proto:ScrollTo(index, refreshFading, tryToFadeIn) @@ -390,6 +390,8 @@ function object_proto:ScrollTo(index, refreshFading, tryToFadeIn) end function object_proto:FastForward() + if not self:IsShown() or self.ScrollChild:GetHeight() == 0 then return end + if self:GetNumHistoryElements() > 0 then t_wipe(self.incomingMessages) @@ -417,7 +419,7 @@ function object_proto:FastForward() end function object_proto:Refresh(delta, refreshFading, tryToFadeIn) - if not self:IsShown() then return end + if not self:IsShown() or self.ScrollChild:GetHeight() == 0 then return end if self:GetNumHistoryElements() == 0 then return self:SetFirstMessageIndex(0) @@ -485,7 +487,7 @@ function object_proto:AddMessage(_, ...) end function object_proto:OnFrame() - if not self:IsShown() or self:GetScrollingHandler() then return end + if not self:IsShown() or self.ScrollChild:GetHeight() == 0 or self:GetScrollingHandler() then return end if #self.incomingMessages > 0 then self:ProcessIncoming({t_removemulti(self.incomingMessages, 1, #self.incomingMessages)}, false) From a007a74dbb53fa080ede21c4433922971f1ad20d Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Thu, 10 Nov 2022 05:23:49 +0700 Subject: [PATCH 5/8] Limit x/y padding to >= 1 --- ls_Glass/core/_core.xml | 1 + ls_Glass/core/modernize.lua | 28 ++++++++++++++++++++++++++++ ls_Glass/init.lua | 12 ++++++++++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 ls_Glass/core/modernize.lua diff --git a/ls_Glass/core/_core.xml b/ls_Glass/core/_core.xml index 06813c1..05596d6 100644 --- a/ls_Glass/core/_core.xml +++ b/ls_Glass/core/_core.xml @@ -1,6 +1,7 @@