Commit 27367906 authored by Darth Predator's avatar Darth Predator

Changed title in toc file back + updated lib

parent 9074c4f4
## Interface: 50200
## Title: ElvUI: Aura Bars Mover
## Title: |cff1784d1ElvUI |rAura Bars Mover
## Author: Darth Predator
## Version: 1.03
## Notes: Moveble unit aura bars for |cff1784d1ElvUI|r.
......
......@@ -88,7 +88,8 @@ function lib:SetupVersionCheck(plugin)
if plugin.version ~= 'BETA' and tonumber(message) ~= nil and tonumber(message) > tonumber(plugin.version) then
plugin.old = true
plugin.newversion = tonumber(message)
E:Print(L["Your version of "] .. plugin.name .. L[" is out of date. You can download the latest version from http://www.tukui.org"])
local Pname = GetAddOnMetadata(plugin.name, "Title")
E:Print(L["Your version of "] .. Pname .. L[" is out of date. You can download the latest version from http://www.tukui.org"])
E[plugin.name.."recievedOutOfDateMessage"] = true
end
end
......@@ -132,10 +133,11 @@ function lib:GeneratePluginList()
local author = GetAddOnMetadata(plugin.name, "Author")
local Pname = GetAddOnMetadata(plugin.name, "Title")
local color = plugin.old and E:RGBToHex(1,0,0) or E:RGBToHex(0,1,0)
list = list .. color .. Pname .. " " ..L["Version"].." " .. plugin.version
list = list .. Pname
if author then
list = list .. " "..L["by"].." " .. author
end
list = list .. color .. " - " ..L["Version"].." " .. plugin.version
if plugin.old then
list = list .. L[" (Newest: "] .. plugin.newversion .. ")"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment