Quantcast chatframeeditbox - WoWInterface
Thread Tools Display Modes
07-08-10, 11:07 PM   #1
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 350
chatframeeditbox



where the red box is, what is that frame called?
  Reply With Quote
07-08-10, 11:55 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,447
Type /framestack and hover over it. There should appear a box that displays all frame names underneath the mouse until you type it again.
__________________
  Reply With Quote
07-08-10, 11:55 PM   #3
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
I'm pretty sure that isn't a frame by itself. You can double check (and get your answer) by doing /framestack and mousing over it.

EDIT: Xrystal is fired for being faster than me.
  Reply With Quote
07-09-10, 12:23 AM   #4
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 350
i shouldve stated i tried that, it comes up as a table code.
  Reply With Quote
07-09-10, 02:12 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,447
Hmm, so it doesn't come up with something like ?
MyFrameName
MyFrameNameFrame
etc ?

but instead says something like
table : 34D23E ?


If so, then it definitely isn't a standard frame and the person that created it never gave it an identifying name.

Your option in that case is to disable all your addons and add them one at a time until it appears to see if you can track down which addon is creating it and go from there.
__________________
  Reply With Quote
07-09-10, 02:15 AM   #6
Miralen
A Rage Talon Dragon Guard
 
Miralen's Avatar
Join Date: Dec 2006
Posts: 341
Mank, what chat addon are you using? I noticed that when I moved my chatframe earlier this night while redoing my ui my chateditbox stayed where my chatframe used to be and I had to tell prat to anchor it to my chat frame instead of leaving it free floating.
__________________
Never hold discussions with the monkey when the organ grinder is in the room.

- Winston Churchill
  Reply With Quote
07-09-10, 03:10 AM   #7
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 350
Originally Posted by Miralen View Post
Mank, what chat addon are you using? I noticed that when I moved my chatframe earlier this night while redoing my ui my chateditbox stayed where my chatframe used to be and I had to tell prat to anchor it to my chat frame instead of leaving it free floating.
i dont remember chat addon name but heres the lua

lua Code:
  1. CHAT_FRAME_TAB_SELECTED_MOUSEOVER_ALPHA = 1.0
  2. CHAT_FRAME_TAB_SELECTED_NOMOUSE_ALPHA = 0.5     -- set to 0 if u want to hide the tabs when no mouse is over them or the chat
  3.    
  4. CHAT_FRAME_TAB_NORMAL_MOUSEOVER_ALPHA = 0.5
  5. CHAT_FRAME_TAB_NORMAL_NOMOUSE_ALPHA = 0.1      -- set to 0 if u want to hide the tabs when no mouse is over them or the chat
  6.    
  7. CHAT_FRAME_FADE_OUT_TIME = 0.5
  8. CHAT_FRAME_FADE_TIME = 0.1;
  9.  
  10. CHAT_FONT_HEIGHTS = {
  11.     [1] = 8,
  12.     [2] = 9,
  13.     [3] = 10,
  14.     [4] = 11,
  15.     [5] = 12,
  16.     [6] = 13,
  17.     [7] = 14,
  18.     [8] = 15,
  19.     [9] = 16,
  20.     [10] = 17,
  21.     [11] = 18,
  22.     [12] = 19,
  23.     [13] = 20,
  24. }
  25.  
  26. CHAT_FLAG_AFK = '[AFK] '
  27. CHAT_FLAG_DND = '[DND] '
  28. CHAT_FLAG_GM = '[GM] '
  29.  
  30. CHAT_SAY_GET = '%s:\32'
  31. CHAT_YELL_GET = '%s:\32'
  32.  
  33. CHAT_WHISPER_GET = 'from %s:\32'
  34. CHAT_WHISPER_INFORM_GET = 'to %s:\32'
  35.  
  36. CHAT_GUILD_GET = '|Hchannel:Guild|hG|h %s:\32'
  37. CHAT_OFFICER_GET = '|Hchannel:o|hO|h %s:\32'
  38.  
  39. CHAT_PARTY_GET = 'P %s:\32'
  40. CHAT_MONSTER_PARTY_GET = '|Hchannel:raid|hR|h %s:\32'
  41.  
  42. CHAT_RAID_GET = '|Hchannel:raid|hR|h %s:\32'
  43. CHAT_RAID_WARNING_GET = 'RW! %s:\32'
  44. CHAT_RAID_LEADER_GET = '|Hchannel:raid|hL|h %s:\32'
  45.  
  46. CHAT_BATTLEGROUND_GET = '|Hchannel:Battleground|hBG|h %s:\32'
  47. CHAT_BATTLEGROUND_LEADER_GET = '|Hchannel:Battleground|hBL|h %s:\32'
  48.  
  49. CHAT_YOU_CHANGED_NOTICE = '# |Hchannel:%d|h%s|h'
  50. CHAT_YOU_JOINED_NOTICE = '+ |Hchannel:%d|h%s|h'
  51. CHAT_YOU_LEFT_NOTICE = '- |Hchannel:%d|h%s|h'
  52.  
  53. ChatTypeInfo['CHANNEL'].sticky = 1
  54. ChatTypeInfo['GUILD'].sticky = 1
  55. ChatTypeInfo['OFFICER'].sticky = 1
  56. ChatTypeInfo['PARTY'].sticky = 1
  57. ChatTypeInfo['RAID'].sticky = 1
  58. ChatTypeInfo['BATTLEGROUND'].sticky = 1
  59. ChatTypeInfo['BATTLEGROUND_LEADER'].sticky = 1
  60.  
  61. local AddMessage = ChatFrame1.AddMessage    
  62.  
  63. function FCF_AddMessage(self, text, ...)
  64.     if (type(text) == 'string') then
  65.         -- bnet names
  66.        
  67.         text = text:gsub('(|HBNplayer.-|h)%[(.-)%]|h', '%1%2|h')
  68.         text = text:gsub('(|Hplayer.-|h)%[(.-)%]|h', '%1%2|h')
  69.                
  70.         text = text:gsub('%[(%d+)%. (.+)%].+(|Hplayer.+)', '|Hchannel:channel|h%1|h %3')
  71.     --  text = format('%s %s', date'%H:%M', text)
  72.     end
  73.     return AddMessage(self, text, ...)
  74. end
  75.  
  76.     -- modify the editbox
  77.        
  78. for i = 1, NUM_CHAT_WINDOWS do
  79.     _G['ChatFrame'..i..'EditBox']:SetAltArrowKeyMode(false)
  80.     _G['ChatFrame'..i..'EditBox']:ClearAllPoints()
  81.     _G['ChatFrame'..i..'EditBox']:SetFont('interface\\addons\\media\\pixel 1.ttf', 10, 'outlinemonochrome')
  82.     _G['ChatFrame'..i..'EditBox']:SetPoint('BOTTOMLEFT', ChatFrame1, 'TOPLEFT', 2, 30)
  83.     _G['ChatFrame'..i..'EditBox']:SetPoint('BOTTOMRIGHT', ChatFrame1, 'TOPRIGHT', 0, 30)
  84.     _G['ChatFrame'..i..'EditBox']:SetBackdrop({
  85.         bgFile = 'Interface\\Buttons\\WHITE8x8',
  86.         insets = {
  87.             left = 3,
  88.             right = 3,
  89.             top = 2,
  90.             bottom = 2
  91.         },
  92.     })
  93.    
  94.     _G['ChatFrame'..i..'EditBox']:SetBackdropColor(0, 0, 0, 0)
  95.    
  96.     for k = 6, 11 do
  97.         select(k, _G['ChatFrame'..i..'EditBox']:GetRegions()):SetTexture(nil)
  98.     end
  99.  
  100. end
  101.  
  102.     -- hide the menu and friend button
  103.    
  104. FriendsMicroButton:SetAlpha(0)
  105. FriendsMicroButton:EnableMouse(false)
  106. FriendsMicroButton:UnregisterAllEvents()
  107.  
  108. ChatFrameMenuButton:SetAlpha(0)
  109. ChatFrameMenuButton:EnableMouse(false)
  110.    
  111.     -- modify the chat
  112.    
  113. for i = 1, NUM_CHAT_WINDOWS do
  114.     local chat = _G['ChatFrame'..i]
  115.     chat:SetFont('interface\\addons\\media\\pixel 1.ttf', 8, 'outlinemonochrome')
  116.     chat:SetShadowOffset(0, 0)
  117.     chat:SetClampedToScreen(false)
  118.    
  119.     chat:SetClampRectInsets(0, 0, 0, 0)
  120.     chat:SetMaxResize(UIParent:GetWidth(), UIParent:GetHeight())
  121.     chat:SetMinResize(150, 25)
  122.  
  123.         -- enable mousewheel scrolling with all chat frames
  124.    
  125.     chat:EnableMouseWheel(true)
  126.     chat:SetScript('OnMouseWheel', function(self, direction)
  127.     if (direction > 0) then
  128.             if (IsShiftKeyDown()) then
  129.                 self:ScrollToTop()
  130.             else
  131.                 self:ScrollUp()
  132.             end
  133.         elseif (direction < 0)  then
  134.             if (IsShiftKeyDown()) then
  135.                 self:ScrollToBottom()
  136.             else
  137.                 self:ScrollDown()
  138.             end
  139.         end
  140.     end)
  141.    
  142.     if (i ~= 2) then
  143.         chat.AddMessage = FCF_AddMessage
  144.     end
  145.    
  146.     local buttonUp = _G['ChatFrame'..i..'ButtonFrameUpButton']
  147.     buttonUp:SetAlpha(0)
  148.     buttonUp:EnableMouse(false)
  149.    
  150.     local buttonDown = _G['ChatFrame'..i..'ButtonFrameDownButton']
  151.     buttonDown:SetAlpha(0)
  152.     buttonDown:EnableMouse(false)
  153.  
  154.     local buttonBottom = _G['ChatFrame'..i..'ButtonFrameBottomButton']
  155.     buttonBottom:SetAlpha(0)
  156.     buttonBottom:EnableMouse(false)
  157.  
  158.     local tabLeft = _G['ChatFrame'..i..'TabLeft']
  159.     tabLeft:SetTexture(nil)
  160.    
  161.     local tabMiddle = _G['ChatFrame'..i..'TabMiddle']
  162.     tabMiddle:SetTexture(nil)
  163.    
  164.     local tabRight = _G['ChatFrame'..i..'TabRight']
  165.     tabRight:SetTexture(nil)
  166.    
  167.     local tabText = _G['ChatFrame'..i..'TabText']
  168.     tabText:SetFont('interface\\addons\\media\\pixel.ttf', 16, 'outlinemonochrome')
  169.     tabText:SetShadowOffset(0, 0)   -- (1, -1)
  170.     tabText:SetJustifyH('CENTER')
  171.     tabText:SetWidth(60)
  172.  
  173.     local a1, a2, a3, a4, a5 = tabText:GetPoint()
  174.     tabText:SetPoint(a1, a2, a3, a4, a5 + 7)
  175.    
  176.     local tabSelLeft = _G['ChatFrame'..i..'TabSelectedLeft']
  177.     tabSelLeft:SetTexture(nil)
  178.    
  179.     local tabSelMiddle = _G['ChatFrame'..i..'TabSelectedMiddle']
  180.     tabSelMiddle:SetTexture(nil)
  181.    
  182.     local tabSelRight = _G['ChatFrame'..i..'TabSelectedRight']
  183.     tabSelRight:SetTexture(nil)
  184.        
  185.     local tabHigLeft = _G['ChatFrame'..i..'TabHighlightLeft']
  186.     tabHigLeft:SetTexture(nil)
  187.    
  188.     local tabHigMiddle = _G['ChatFrame'..i..'TabHighlightMiddle']
  189.     tabHigMiddle:SetTexture(nil)
  190.    
  191.     local tabHigRight = _G['ChatFrame'..i..'TabHighlightRight']
  192.     tabHigRight:SetTexture(nil)
  193.    
  194.     local tabGlow = _G['ChatFrame'..i..'TabGlow']
  195.     tabGlow:SetTexture(nil)
  196.    
  197.     tabGlow.Show = function()
  198.         tabText:SetTextColor(1, 0, 1, CHAT_FRAME_TAB_SELECTED_NOMOUSE_ALPHA == 0 and 0.5 or CHAT_FRAME_TAB_SELECTED_NOMOUSE_ALPHA)
  199.     end
  200.    
  201.     tabGlow.Hide = function()
  202.         tabText:SetTextColor(1, 1, 1)
  203.     end
  204.    
  205.     local tab = _G['ChatFrame'..i..'Tab']
  206.     tab:SetScript('OnEnter', function()
  207.         local al = tabText:GetAlpha()
  208.         tabText:SetTextColor(1, 0, 1, al)
  209.     end)
  210.    
  211.     tab:SetScript('OnLeave', function()
  212.         local r, g, b
  213.         local hasNofication = tabGlow:IsShown()
  214.  
  215.         if (_G['ChatFrame'..i] == SELECTED_CHAT_FRAME) then
  216.             r, g, b = 0, 0.75, 1
  217.         elseif (hasNofication) then
  218.             r, g, b = 1, 0, 1
  219.         else
  220.             r, g, b = 1, 1, 1
  221.         end
  222.  
  223.         tabText:SetTextColor(r, g, b)
  224.     end)
  225.    
  226.         -- hide some textures
  227.  
  228.     for _, texture in pairs({
  229.         'ButtonFrameBackground',
  230.         'ButtonFrameTopLeftTexture',
  231.         'ButtonFrameBottomLeftTexture',
  232.         'ButtonFrameTopRightTexture',
  233.         'ButtonFrameBottomRightTexture',
  234.         'ButtonFrameLeftTexture',
  235.         'ButtonFrameRightTexture',
  236.         'ButtonFrameBottomTexture',
  237.         'ButtonFrameTopTexture',
  238.     }) do
  239.         _G['ChatFrame'..i..texture]:SetTexture(nil)
  240.     end
  241. end
  242.  
  243.     -- tab text colors for the tabs
  244.    
  245. hooksecurefunc('FCFTab_UpdateColors', function(self, selected)
  246.     if (selected) then
  247.         self:GetFontString():SetTextColor(0, 0.75, 1)
  248.     else
  249.         self:GetFontString():SetTextColor(1, 1, 1)
  250.     end
  251. end)
  252.    
  253.     -- new position for the minimize button (only chat frame 2 - 10)
  254.    
  255. for i = 2, NUM_CHAT_WINDOWS do
  256.     local chat = _G['ChatFrame'..i]
  257.  
  258.     local chatMinimize = _G['ChatFrame'..i..'ButtonFrameMinimizeButton']
  259.     chatMinimize:ClearAllPoints()
  260.     chatMinimize:SetPoint('TOPRIGHT', chat, 'TOPLEFT', -2, 0)
  261. end
  262.  
  263.     -- modify the gm chatframe
  264.    
  265. local f = CreateFrame('Frame')
  266. f:RegisterEvent('ADDON_LOADED')
  267. f:SetScript('OnEvent', function(_, event)
  268.     if (event == 'ADDON_LOADED' and arg1 == 'Blizzard_GMChatUI') then
  269.         GMChatFrame:EnableMouseWheel(true)
  270.         GMChatFrame:SetScript('OnMouseWheel', ChatFrame1:GetScript('OnMouseWheel'))
  271.         GMChatFrame:SetHeight(200)
  272.        
  273.         GMChatFrameUpButton:SetAlpha(0)
  274.         GMChatFrameUpButton:EnableMouse(false)
  275.        
  276.         GMChatFrameDownButton:SetAlpha(0)
  277.         GMChatFrameDownButton:EnableMouse(false)
  278.        
  279.         GMChatFrameBottomButton:SetAlpha(0)
  280.         GMChatFrameBottomButton:EnableMouse(false)
  281.     end
  282. end)
  Reply With Quote
07-09-10, 04:29 AM   #8
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
It's editBox.header. They changed 'Header' to lowercase in 3.3.5.

Code:
for i = 1, NUM_CHAT_WINDOWS do
	local frame = _G[("ChatFrame%d"):format(i)]
	frame.editBox.header:SetFont(...)
end
  Reply With Quote
07-09-10, 04:50 AM   #9
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 350
Originally Posted by Haleth View Post
It's editBox.header. They changed 'Header' to lowercase in 3.3.5.

Code:
for i = 1, NUM_CHAT_WINDOWS do
	local frame = _G[("ChatFrame%d"):format(i)]
	frame.editBox.header:SetFont(...)
end
thanks alot [: checking now
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » chatframeeditbox

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off