Reply
 
Thread Tools Display Modes
Old 11-03-2009, 05:15 PM   #1
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
NeonChat's Border

NeonChat is a neat little addon.

As of right now, those pretty colored borders shown in the screenies only show up when you are in the edit box about to type.

Anyone know of a way to have those pretty borders show up always around the Chat even if the edit box is not up?
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 02:24 PM   #2
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
bumping for all those who have yet to read and hopefully have a solution!!

thanks!
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 03:07 PM   #3
ckramme
A Cyclonian
Join Date: Mar 2008
Posts: 43
I think thats how it is ment to work...
Taken from the addon page.
Quote:
It colors the chat input and chat border to match the chat you are about to write.
ckramme is offline   Reply With Quote
Old 11-06-2009, 03:20 PM   #4
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
yep, it sure is, however, im hoping someone will know how to make it work the way i described via a little editing ^_^
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 03:32 PM   #5
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Well the file isn't that readable without formatting it or finding an editor they used to automatically reformat it but here is the part I think you want to look at :

Code:
local editbox = CreateFrame("Button", nil, ChatFrameEditBox)
editbox:SetBackdrop(GameTooltip:GetBackdrop())
editbox:SetPoint("TOPLEFT", "ChatFrameEditBoxLeft", "TOPLEFT", 1, -2)
editbox:SetPoint("BOTTOMRIGHT", "ChatFrameEditBoxRight", "BOTTOMRIGHT", -1, 2)
editbox:SetFrameLevel(ChatFrameEditBox:GetFrameLevel()-1)

local chatborder = CreateFrame("Button", nil, ChatFrameEditBox)
chatborder:SetBackdrop(GameTooltip:GetBackdrop())
chatborder:SetPoint("TOPLEFT", "ChatFrame1ResizeTopLeft")
chatborder:SetPoint("BOTTOMRIGHT", "ChatFrame1ResizeBottomRight")
chatborder:SetBackdropColor(0,0,0,0)
chatborder:EnableMouse(false)

local function colorize(r,g,b)
  editbox:SetBackdropBorderColor(r,g,b,NeonChatDB.border)
  chatborder:SetBackdropBorderColor(r,g,b,NeonChatDB.border)
  if NeonChatDB.chatborder then 
    chatborder:Show() 
  else 
    chatborder:Hide() 
  end
  editbox:SetBackdropColor(r/3,g/3,b/3,NeonChatDB.background)
end
I think if you change that block of code to the following it will default the border and background to a set color you can choose and still do what the rest of the addon is designed to do. I can't test it to be sure so keep a copy of the file to be on the safe side. But perhaps the original programmer can add the option in to change the default color and alpha settings.

Code:
local editbox = CreateFrame("Button", nil, ChatFrameEditBox)
editbox:SetBackdrop(GameTooltip:GetBackdrop())
editbox:SetPoint("TOPLEFT", "ChatFrameEditBoxLeft", "TOPLEFT", 1, -2)
editbox:SetPoint("BOTTOMRIGHT", "ChatFrameEditBoxRight", "BOTTOMRIGHT", -1, 2)
editbox:SetFrameLevel(ChatFrameEditBox:GetFrameLevel()-1)

local chatborder = CreateFrame("Button", nil, ChatFrameEditBox)
chatborder:SetBackdrop(GameTooltip:GetBackdrop())
chatborder:SetPoint("TOPLEFT", "ChatFrame1ResizeTopLeft")
chatborder:SetPoint("BOTTOMRIGHT", "ChatFrame1ResizeBottomRight")
chatborder:SetBackdropColor(0,0,0,0)
chatborder:EnableMouse(false)

local function colorize(r,g,b)
  editbox:SetBackdropBorderColor(r,g,b,NeonChatDB.border)
  chatborder:SetBackdropBorderColor(r,g,b,NeonChatDB.border)
  if NeonChatDB.chatborder then 
    chatborder:Show() 
  else 
    chatborder:Hide() 
  end
  editbox:SetBackdropColor(r/3,g/3,b/3,NeonChatDB.background)
end

colorize(1.0,0.0,0.0)   -- Colors a bright red color for a default coloring
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is offline   Reply With Quote
Old 11-06-2009, 04:09 PM   #6
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
i pasted your code over the existing code after backing up the lua, but no go, it still only shows the pretty border when im going to type, no other time ; ;

i did post a request on the addon page, but no reply as of yet, thanks for trying to help, hope it can be done!

hmm, now that i actually read both codes you posted, i dont see any differences in them at all O.o..
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 04:37 PM   #7
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Very last line .. I was hoping that line would set the default color for the frame. What color is the frame when the edit box isn't selected ?
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is offline   Reply With Quote
Old 11-06-2009, 05:17 PM   #8
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
when the edit box is not selected, there is no frame, it doesnt show up untill the edit box is selected, and then its the color of the channel you are about to talk in.

i was hoping for a way to show the frame even if the edit box is not selected, as well as keep the color based on the channel you are about to type in.
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 05:25 PM   #9
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Well, it looks like my wow account is still active for the moment so spent this time to try and figure it out but for the life of me I cannot see any code either in the official blizzard chatframe source file or anyway in the addons code to keep that border up. Even though he clearly does it within that colorize function but for some reason doesn't work when you call it outside of the secure function functionality.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is offline   Reply With Quote
Old 11-06-2009, 05:58 PM   #10
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
lol nice, he has stumped you! yeah, pretty border tho aint it? can you see why id like that border up at all times? ^_^

thanks a bunch for trying to figure it out tho, muchas gracias!
ffxiedyn is offline   Reply With Quote
Old 11-06-2009, 06:02 PM   #11
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Yep, he has definitely stumped me. Hopefully he will reply to your post and come back with 'I aint got a clue mate' reply and then I'll feel better .. rofl.

Seriously, I hope he can incorporate it into the code or tell you how to change it yourself. Would be interesting to know how it can get done. I am suspecting the changes are being overwritten elsewhere but I can't see why my changes are but his aren't.

*Crosses Fingers*
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is offline   Reply With Quote
Old 11-07-2009, 03:18 AM   #12
mikma
An Aku'mai Servant
 
mikma's Avatar
Interface Author - Click to view interfaces
Join Date: Nov 2005
Posts: 36
Line 30
Code:
local chatborder = CreateFrame("Button", nil, ChatFrameEditBox)
change into:
Code:
local chatborder = CreateFrame("Button", nil, ChatFrame1)

Last edited by mikma : 11-07-2009 at 04:47 AM.
mikma is offline   Reply With Quote
Old 11-07-2009, 07:20 AM   #13
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Ah, was wondering if there was something that had to be changed on that line. I'll go try it out now.

Yep, just tried that and it works a charm.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 11-07-2009 at 07:24 AM.
Xrystal is offline   Reply With Quote
Old 11-07-2009, 08:08 AM   #14
KleinerMink
A Deviate Faerie Dragon
Join Date: Jun 2009
Posts: 11
Sorry this has nothing to do directly with your issue but can someone please help me with this error i have with neonchat? The author is not responding...

Message: Interface\AddOns\NeonChat\NeonChat.lua:25: Usage: <unnamed>:SetBackdrop(nil or {bgFile = "bgFile", edgeFile = "edgeFile", tile = false, tileSize = 0, edgeSize = 32, insets = { left = 0, right = 0, top = 0, bottom = 0 }})
Time: Sat Nov 7 14:06:06 2009
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
[C]: in function `SetBackdrop'
Interface\AddOns\NeonChat\NeonChat.lua:25: in main chunk

Locals: (*temporary) = <unnamed> {
0 = <userdata>
}
KleinerMink is offline   Reply With Quote
Old 11-07-2009, 08:27 AM   #15
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces
Join Date: Feb 2006
Posts: 1,539
Have you made any changes to the file ? I never had an error like that and the SetBackdrop functions in the addon use the tooltip backdrop. Ah, have you got a tooltip addon that changes the look of the tooltip background ? If so try it without the tooltip addon and see if that stops the error.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is offline   Reply With Quote
Old 11-07-2009, 08:38 AM   #16
KleinerMink
A Deviate Faerie Dragon
Join Date: Jun 2009
Posts: 11
Quote:
Originally Posted by Xrystal View Post
Have you made any changes to the file ? I never had an error like that and the SetBackdrop functions in the addon use the tooltip backdrop. Ah, have you got a tooltip addon that changes the look of the tooltip background ? If so try it without the tooltip addon and see if that stops the error.
Thanks a lot! You were correct the tooltip addon "atooltip" was causing this error.

Last edited by KleinerMink : 11-07-2009 at 08:58 AM.
KleinerMink is offline   Reply With Quote
Old 11-07-2009, 12:26 PM   #17
mikma
An Aku'mai Servant
 
mikma's Avatar
Interface Author - Click to view interfaces
Join Date: Nov 2005
Posts: 36
Quote:
Originally Posted by KleinerMink View Post
Sorry this has nothing to do directly with your issue but can someone please help me with this error i have with neonchat? The author is not responding...
Sorry, been busy decapitating zombies.
I've not seen that error myself, but i guess relying on the tooltip backdrop data is not working when people obviously want to modify all the aspects of the game. I think I'll hardcode the info in the next release (if there is one).
mikma is offline   Reply With Quote
Old 11-07-2009, 05:35 PM   #18
ffxiedyn
A Flamescale Wyrmkin
 
ffxiedyn's Avatar
Join Date: Oct 2008
Posts: 118
thanks!!! *giggles like a little girl then runs off to admire the pretty border*
ffxiedyn is offline   Reply With Quote
Reply

Go BackWoWInterface » General Discussion » Interface Requests » NeonChat's Border

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




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.