diff --git a/.vscode/settings.json b/.vscode/settings.json
index b6e6ced..061097a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -132,7 +132,8 @@
"GameTooltip_AddErrorLine",
"UIDropDownMenu_SetSelectedValue",
"UIDropDownMenu_Initialize",
- "UIDropDownMenu_ClearAll"
+ "UIDropDownMenu_ClearAll",
+ "RED_FONT_COLOR_CODE"
],
"Lua.runtime.version": "Lua 5.1",
"Lua.runtime.builtin": {
diff --git a/Core/Atlas.lua b/Core/Atlas.lua
index 180cee6..3a6d007 100644
--- a/Core/Atlas.lua
+++ b/Core/Atlas.lua
@@ -341,6 +341,9 @@ function addon:SearchAndRefresh(text)
end
function addon:SearchLFG()
+ -- LFG tool isn't available until level 10
+ if (UnitLevel("player") < 10) then return end
+
-- Open LFG to the group browser
ShowLFGParentFrame(2);
@@ -358,6 +361,15 @@ function addon:SearchLFG()
LFGBrowse_DoSearch();
end
+function addon:SearchLFG_Enter(button)
+ GameTooltip:SetOwner(button, "ANCHOR_RIGHT");
+ if (UnitLevel("player") < 10) then
+ GameTooltip:SetText(L["Find group for this instance"].."\n"..RED_FONT_COLOR_CODE..L["LFG is unavailable until level 10"]);
+ else
+ GameTooltip:SetText(L["Find group for this instance"]);
+ end
+end
+
local function parse_entry_strings(typeStr, id, preStr, index, lineplusoffset)
if (typeStr == "item") then
local itemID = id
diff --git a/Core/Atlas.xml b/Core/Atlas.xml
index 01daace..ba9ac32 100644
--- a/Core/Atlas.xml
+++ b/Core/Atlas.xml
@@ -62,8 +62,7 @@
- GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
- GameTooltip:SetText("Find group for this instance");
+ Atlas:SearchLFG_Enter(self);
diff --git a/Locale/Atlas-deDE.lua b/Locale/Atlas-deDE.lua
index 1b0808e..3d2335b 100644
--- a/Locale/Atlas-deDE.lua
+++ b/Locale/Atlas-deDE.lua
@@ -344,3 +344,6 @@ L["Wave 6"] = "Welle 6"
L["West"] = "Westen"
L["Yarley "] = "Yarley "
L["Zaladormu"] = "Zaladormu"
+
+L["Find group for this instance"] = "Gruppe für diese Instanz suchen"
+L["LFG is unavailable until level 10"] = "LFG ist bis Level 10 nicht verfügbar"
diff --git a/Locale/Atlas-enUS.lua b/Locale/Atlas-enUS.lua
index c80e760..ba5ff14 100644
--- a/Locale/Atlas-enUS.lua
+++ b/Locale/Atlas-enUS.lua
@@ -349,3 +349,6 @@ L["West"] = "West"
L["MapNotYetAvailable"] = "This map is not yet available."
L["Yarley "] = "Yarley "
L["Zaladormu"] = "Zaladormu"
+
+L["Find group for this instance"] = "Find group for this instance"
+L["LFG is unavailable until level 10"] = "LFG is unavailable until level 10"
diff --git a/Locale/Atlas-esES.lua b/Locale/Atlas-esES.lua
index fc6fb3b..44de5ad 100644
--- a/Locale/Atlas-esES.lua
+++ b/Locale/Atlas-esES.lua
@@ -338,3 +338,6 @@ L["Wave 6"] = "Ola 6"
L["West"] = "Oeste"
L["Yarley "] = "Yarley "
L["Zaladormu"] = "Zaladormu"
+
+L["Find group for this instance"] = "Buscar grupo para esta instancia"
+L["LFG is unavailable until level 10"] = "LFG no está disponible hasta el nivel 10"
diff --git a/Locale/Atlas-esMX.lua b/Locale/Atlas-esMX.lua
index 4ef5852..fe5c8b0 100644
--- a/Locale/Atlas-esMX.lua
+++ b/Locale/Atlas-esMX.lua
@@ -280,3 +280,6 @@ L["Wave 6"] = "Ola 6"
L["West"] = "Oeste"
L["Yarley "] = "Yarley "
L["Zaladormu"] = "Zaladormu"
+
+L["Find group for this instance"] = "Buscar grupo para esta instancia"
+L["LFG is unavailable until level 10"] = "LFG no está disponible hasta el nivel 10"
diff --git a/Locale/Atlas-frFR.lua b/Locale/Atlas-frFR.lua
index 981879c..cd7a883 100644
--- a/Locale/Atlas-frFR.lua
+++ b/Locale/Atlas-frFR.lua
@@ -289,3 +289,6 @@ L["Wave 6"] = "Vague 6"
L["West"] = "Ouest"
L["Yarley "] = "Yarley "
L["Zaladormu"] = "Zaladormu"
+
+L["Find group for this instance"] = "Rechercher un groupe pour cette instance"
+L["LFG is unavailable until level 10"] = "LFG n'est pas disponible jusqu'au niveau 10"