2 local function OnMouseWheel(frame
, delta
)
4 if IsShiftKeyDown() then frame
:ScrollToTop()
5 else frame
:ScrollUp() end
7 if IsShiftKeyDown() then frame
:ScrollToBottom()
8 else frame
:ScrollDown() end
13 local f
= CreateFrame("ScrollingMessageFrame", nil, UIParent
)
15 f
:SetFontObject(ChatFontNormal
)
18 f
:EnableMouseWheel(true)
19 f
:SetScript("OnMouseWheel", OnMouseWheel
)
20 f
:SetScript("OnHide", f
.ScrollToBottom
)
24 local orig
= f
.AddMessage
25 f
.AddMessage
= function(self
, txt
, ...)
26 local newtext
= txt
:gsub("TourGuide|r:", date("%X").."|r", 1)
27 return orig(self
, newtext
, ...)
31 TourGuideOHDebugFrame
= f