mirror of
https://github.com/Blaststar/Questie-Octo-Vanilla.git
synced 2026-10-20 04:10:49 +00:00
Various fixes and added professions/class trainers
This commit is contained in:
@@ -1088,9 +1088,17 @@ function T:Show(pin)
|
||||
spiritHealer="Spirit Healer",
|
||||
stableMaster="Stable Master",
|
||||
vendor="Vendor",
|
||||
classTrainer="Class Trainer",
|
||||
professionTrainer="Profession Trainer",
|
||||
rareMob="[Rare]"
|
||||
}
|
||||
local permanentLabel=permanentLabels[pin.role]
|
||||
-- Trainers refine the generic label with the specific class/profession, e.g.
|
||||
-- "Warrior Trainer" / "Cooking Trainer".
|
||||
if permanentLabel and (pin.role=="classTrainer" or pin.role=="professionTrainer") and type(pin.trainerKey)=="string" and pin.trainerKey~="" then
|
||||
local key=pin.trainerKey
|
||||
permanentLabel=string.upper(string.sub(key,1,1))..string.sub(key,2).." Trainer"
|
||||
end
|
||||
if permanentLabel then
|
||||
tooltip:SetOwner(pin,"ANCHOR_CURSOR")
|
||||
tooltip:ClearLines()
|
||||
|
||||
Reference in New Issue
Block a user