RematchDialog.OnKeyDown(self,key)
RematchDialog:CancelOnClick()
RematchDialog.AcceptOnClick(self)
RematchDialog.OtherOnClick(self)
self:SetHitRectInsets(0,-self.text:GetStringWidth(),0,0)
self:ClearFocus()
self:Insert(" ")
ScrollingEdit_OnCursorChanged(self, x, y, w, h)
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent())
-- if this is clicked at all, it's because notes don't take up whole editBox
-- safe to set cursor to end
local editBox = self:GetParent().EditBox
editBox:SetCursorPosition(editBox:GetText():len())
editBox:SetFocus(true)
local scrollBar = self.ScrollBar
scrollBar:ClearAllPoints()
scrollBar:SetPoint("TOPRIGHT",4,-12)
scrollBar:SetPoint("BOTTOMRIGHT",4,11)
local up = _G[scrollBar:GetName().."ScrollUpButton"]
local down = _G[scrollBar:GetName().."ScrollDownButton"]
scrollBar.trackBG:SetColorTexture(0.03,0.03,0.03)
scrollBar.trackBG:SetPoint("TOPLEFT",up,"TOPLEFT",0,-4)
scrollBar.trackBG:SetPoint("BOTTOMRIGHT",down,"BOTTOMRIGHT",-1,4)
up:SetPoint("TOP",0,13)
down:SetPoint("BOTTOM",0,-13)
self.EditBox:SetWidth(w-23)
self.InsetBg:SetPoint("BOTTOMRIGHT",-6,26)
self:StartMoving()
self:StopMovingOrSizing()
RematchSettings.DialogXPos,RematchSettings.DialogYPos = self:GetCenter()
Rematch.timeUIChanged = GetTime()
self:ClearAllPoints()
if RematchSettings.DialogXPos then
self:SetPoint("CENTER",UIParent,"BOTTOMLEFT",RematchSettings.DialogXPos,RematchSettings.DialogYPos)
else
self:SetPoint("CENTER")
end
RematchDialog:OnHide()