Quantcast
WoWInterface - View Single Post - ChatFrame1EditBox Resizing and Scrolling
View Single Post
02-24-21, 10:06 AM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,418
I was thinking something like:
Lua Code:
  1. local frame=CreateFrame("Frame")
  2. frame:RegisterEvent("PLAYER_LOGIN")
  3. frame:SetScript("OnEvent",function(self,event,...)
  4.     local chat = DEFAULT_CHAT_FRAME
  5.     local editBox = chat.editBox
  6.     editBox:ClearAllPoints()
  7.     local x = chat:GetLeft()
  8.     local y = chat:GetBottom() - editBox:GetHeight()
  9.     editBox:SetPoint("BOTTOMLEFT", UIParent ,x ,y)
  10.     editBox:SetWidth(chat:GetWidth())
  11.     editBox:SetMultiLine(true)
  12.     local n = editBox:GetName()
  13.     _G[n.."Left"]:Hide()
  14.     _G[n.."Mid"]:Hide()
  15.     _G[n.."Right"]:Hide()
  16.     editBox.focusLeft:SetTexture(nil)
  17.     editBox.focusMid:SetTexture(nil)
  18.     editBox.focusRight:SetTexture(nil)
  19. end)
The editbox artwork doesn't adjust so I've just hidden it (some of the artwork regions might not be valid in Classic)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 02-24-21 at 10:22 AM.
  Reply With Quote