diff --git a/Freewood-OctoWoW-Core.toc b/Freewood-OctoWoW-Core.toc index aa5d317..1abcb86 100644 --- a/Freewood-OctoWoW-Core.toc +++ b/Freewood-OctoWoW-Core.toc @@ -3,7 +3,7 @@ ## Notes: Base addon of the Freewood family: data storage, UI kit, export/import and the main window. ## Notes-deDE: Basis-Addon der Freewood-Familie: Datenspeicher, UI-Bausteine, Export/Import und Hauptfenster. ## Author: Lacustat -## Version: 0.1.239 +## Version: 0.1.240 ## SavedVariables: FreewoodDB ## SavedVariablesPerCharacter: FreewoodCharDB diff --git a/Locales.lua b/Locales.lua index f982d6c..c8f9904 100644 --- a/Locales.lua +++ b/Locales.lua @@ -85,6 +85,7 @@ FW:AddLocale("enUS", { SETTINGS_WHISPER_POPUP = "Show whisper windows (never in combat)", SETTINGS_WHISPER_ALWAYS = "Whisper windows also while the Freewood window is open", POP_TAB = "Chat", + POP_INVITE = "Invite", POP_INFO_NONE = "...", CHAT_MENU_JOIN = "Join or create channel...", CHAT_MENU_NEWCAT = "New category...", @@ -258,6 +259,7 @@ FW:AddLocale("deDE", { SETTINGS_WHISPER_POPUP = "Flüsterfenster anzeigen (nie im Kampf)", SETTINGS_WHISPER_ALWAYS = "Flüsterfenster auch bei offenem Freewood-Fenster", POP_TAB = "Chat", + POP_INVITE = "Einladen", POP_INFO_NONE = "...", CHAT_MENU_JOIN = "Kanal beitreten oder erstellen...", CHAT_MENU_NEWCAT = "Neue Kategorie...", diff --git a/UI/WhisperPopups.lua b/UI/WhisperPopups.lua index 57d9fd8..39787a2 100644 --- a/UI/WhisperPopups.lua +++ b/UI/WhisperPopups.lua @@ -112,7 +112,7 @@ local function Create(name) local head = CreateFrame("Button", nil, win) head:SetPoint("TOPLEFT", win, "TOPLEFT", 0, 0) - head:SetPoint("TOPRIGHT", win, "TOPRIGHT", -96, 0) -- Knoepfe liegen ausserhalb der Zugflaeche + head:SetPoint("TOPRIGHT", win, "TOPRIGHT", -160, 0) -- Knoepfe liegen ausserhalb der Zugflaeche head:SetHeight(44) head:RegisterForDrag("LeftButton") head:SetScript("OnDragStart", function() win:StartMoving() end) @@ -124,7 +124,7 @@ local function Create(name) win.title = UI.CreateLabel(win, name, { font = "heading", size = 14, color = "gold", justify = "LEFT" }) win.title:SetPoint("TOPLEFT", win, "TOPLEFT", 12, -8) - win.title:SetPoint("TOPRIGHT", win, "TOPRIGHT", -90, -8) + win.title:SetPoint("TOPRIGHT", win, "TOPRIGHT", -160, -8) win.info = UI.CreateLabel(win, "", { size = 11, color = "textDim", justify = "LEFT" }) win.info:SetPoint("TOPLEFT", win, "TOPLEFT", 12, -26) win.info:SetPoint("TOPRIGHT", win, "TOPRIGHT", -12, -26) @@ -139,6 +139,12 @@ local function Create(name) end) tab:SetPoint("RIGHT", close, "LEFT", -4, 0) tab:SetFrameLevel(head:GetFrameLevel() + 3) + local inv = UI.CreateButton(win, L.POP_INVITE, 60, 22, function() + local Ch = FW.Channels + if Ch and Ch.Invite then Ch.Invite(name) end + end) + inv:SetPoint("RIGHT", tab, "LEFT", -4, 0) + inv:SetFrameLevel(head:GetFrameLevel() + 3) local logBox = UI.CreatePanel(win, "bg", "bronze") logBox:SetPoint("TOPLEFT", win, "TOPLEFT", 8, -48)