19 lines
772 B
Lua
19 lines
772 B
Lua
-- OctoTextSize: addon-local factory; Blizzard CreateFrame is unchanged.
|
|
local CreateFrame = OctoTextSize and OctoTextSize.WrapFactory(CreateFrame) or CreateFrame
|
|
-- Keep the original Mounts window and its controls. The Source riding trainer
|
|
-- starts at level 40; the stock empty-journal message describes level 10.
|
|
local sourceRidingMessage = "You can learn riding and obtain a mount from your riding trainer at level 40"
|
|
|
|
local function apply()
|
|
local display = MountJournal and MountJournal.MountDisplay
|
|
if display and display.NoMounts then
|
|
display.NoMounts:SetText(sourceRidingMessage)
|
|
end
|
|
end
|
|
|
|
local events = CreateFrame("Frame")
|
|
events:RegisterEvent("ADDON_LOADED")
|
|
events:RegisterEvent("PLAYER_LOGIN")
|
|
events:SetScript("OnEvent", apply)
|
|
apply()
|