/
NoTitle |
========== |
Prompts to remove the randomly set title from new characters. |
[de] Schlägt vor, den zufällig festgelegten Titel auf neuen Charakteren zu deaktivieren. |
[es] Sugiere a quitar el tÃtulo especificado al azar de los nuevos personajes. |
Download |
----------- |
* [WoWInterface](http://www.wowinterface.com/downloads/info22746-NoTitle) |
* [Curse](http://www.curse.com/addons/wow/notitle) |
Localization |
--------------- |
Works in all languages. |
Translated into English, Deutsch, Español, Français, Italiano, |
Português and Ð ÑÑÑкий. |
Feedback |
----------- |
Post a ticket on either download site, or a comment on WoWInterface. |
If you are reporting a bug, please include directions I can follow to |
reproduce the bug, whether it still happens when all other addons are |
disabled, and the exact text of the related error message (if any) from |
[Bugger](http://www.wowinterface.com/downloads/info23144-Bugger.html). |
If you need to contact me privately, you can send me a private message |
on either download site, or email me at <addons@phanx.net>. |
License |
---------- |
Copyright (c) 2014 Phanx. All rights reserved. |
See the accompanying LICENSE file for information about the conditions |
under which redistribution and modification may be allowed. |
--[[-------------------------------------------------------------------- |
NoTitle |
Prompts to remove the randomly set title from new characters. |
Copyright (c) 2014 Phanx. All rights reserved. |
See accompanying README and LICENSE files for more information. |
http://www.wowinterface.com/downloads/info22746-NoTitle.html |
http://wow.curse.com/addons/notitle/ |
----------------------------------------------------------------------]] |
local f = CreateFrame("Frame") |
f:RegisterEvent("PLAYER_LOGIN") |
f:SetScript("OnEvent", function(self, event) |
self:UnregisterEvent(event) |
self:SetScript("OnEvent", nil) |
local title = GetCurrentTitle() |
if not title or title < 1 or title == NoTitleSVPC then |
-- no title, or same as last time |
return |
end |
if NoTitleSVPC == nil and UnitLevel("player") > 10 then |
-- first time, but level > 10 so probably intentional |
NoTitleSVPC = title |
return |
end |
local name = strtrim((GetTitleName(title))) |
StaticPopupDialogs["UNSET_TITLE"] = { |
text = GetLocale() == "deDE" and format("Ihr aktueller Titel ist %q.\nMöchtet Ihr er entfernen?", name) |
or GetLocale() == "esES" and format("Tu tÃtulo actual es %q.\n¿Quieres quitarlo?", name) |
or GetLocale() == "esMX" and format("Tu tÃtulo actual es %q.\n¿Quieres quitarlo?", name) |
or GetLocale() == "frFR" and format("Votre titre actuel est %q.\nVoulez-vous supprimer?", name) |
or GetLocale() == "itIT" and format("Il titolo attuale è %q.\nVuoi rimuoverlo?", name) |
or GetLocale() == "ptBR" and format("Seu tÃtulo atual é %q.\nVocê quer removê-lo?", name) |
or GetLocale() == "ruRU" and format("ÐаÑе ÑекÑÑее звание %q.\nХоÑиÑе, ÑÑÐ¾Ð±Ñ ÑдалиÑÑ ÐµÐ³Ð¾?", name) -- needs check |
or format("Your current title is %q.\nWould you like to remove it?", name), |
button1 = YES, |
button2 = NO, |
OnAccept = function(self) |
SetCurrentTitle(-1) |
end, |
OnCancel = function(self) |
NoTitleSVPC = GetCurrentTitle() |
end, |
hideOnEscape = 1, |
timeout = 0, |
exclusive = 0, |
whileDead = 1, |
preferredIndex = 3, |
} |
StaticPopup_Show("UNSET_TITLE") |
end) |
local buttons = {} |
local click = function(self, button) |
if button == "LeftButton" then |
NoTitleSVPC = self.titleId > 0 and self.titleId or nil |
end |
end |
PaperDollTitlesPane:HookScript("OnShow", function(self) |
local button = _G["PaperDollTitlesPaneButton" .. (#buttons + 1)] |
while button do |
--print("Hooked button", b:GetName()) |
button:HookScript("OnClick", click) |
tinsert(buttons, button) |
button = _G["PaperDollTitlesPaneButton" .. (#buttons + 1)] |
end |
end) |
Copyright (c) 2014 Phanx. All rights reserved. |
Permission is granted for anyone to use, read, or otherwise interpret |
this software for any purpose, without any restrictions. |
Permission is granted for anyone to modify this software or sample from |
it, and to distribute such modified versions or derivative works as long |
as neither the names of this software nor its authors are used in the |
name or title of the work or in any other way that may cause it to be |
confused with or interfere with the simultaneous use of this software. |
Permission is granted for anyone to aggregate this software with other |
works not derived from this software for the purpose of creating a user |
interface replacement (also commonly known as a "compilation" or "addon |
pack") for the "World of Warcraft" game client, and to distribute such |
collective works as long as the software is not modified in any way, |
including by modifying or removing any files. |
This software may not be distributed standalone or in any other way, in |
whole or in part, modified or unmodified, without specific prior written |
permission from the authors of this software. |
The names of this software and/or its authors may not be used to |
promote or endorse works derived from this software without specific |
prior written permission from the authors of this software. |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
OTHER DEALINGS IN THE SOFTWARE. |
## Interface: 60000 |
## Version: 6.0.2.wowi:revision |
## Notes: Prompts to remove the randomly set title from new characters. |
## Notes-deDE: Schlägt vor, den zufällig festgelegten Titel auf neuen Charakteren zu deaktivieren. |
## Notes-esES: Sugiere a quitar el tÃtulo especificado al azar de los nuevos personajes. |
## Notes-esMX: Sugiere a quitar el tÃtulo especificado al azar de los nuevos personajes. |
## Author: Phanx |
## X-Email: addons@phanx.net |
## X-Copyright: Copyright (c) 2014 Phanx. All rights reserved. |
## X-License: See the accompanying LICENSE file for details. |
## X-CompatibleLocales: deDE, enUS, esES, esMX, frFR, itIT, ptBR, ruRU, koKR, zhCN, zhTW |
## X-Localizations: deDE, enUS, esES, esMX, frFR, itIT, ptBR, ruRU |
## X-Website: http://www.wowinterface.com/downloads/info22746-NoTitle |
## X-Curse-ProjectID: notitle |
## X-WoWI-ID: 22746 |
## SavedVariablesPerCharacter: NoTitleSVPC |
NoTitle.lua |