Fury Posted August 12, 2012 Share Posted August 12, 2012 is this possible to edit ChatBox? I mean can i change the position of chat? Link to comment
Buffalo Posted August 12, 2012 Share Posted August 12, 2012 You can't edit user's chatbox settings via scripting, but you can create your own chat system tho. Link to comment
Fury Posted August 12, 2012 Author Share Posted August 12, 2012 You can't edit user's chatbox settings via scripting, but you can create your own chat system tho. how can i? Link to comment
ernst Posted August 12, 2012 Share Posted August 12, 2012 You can't edit user's chatbox settings via scripting, but you can create your own chat system tho. how can i? Easiest would be doing a GUI then adding the text. Nothing I can recommend for a beginner though. Link to comment
Fury Posted August 12, 2012 Author Share Posted August 12, 2012 You can't edit user's chatbox settings via scripting, but you can create your own chat system tho. how can i? Easiest would be doing a GUI then adding the text. Nothing I can recommend for a beginner though. well i now how to use dx functions but i cant make a table like chatbox. thats the problem. and im not a beginner Link to comment
Buffalo Posted August 13, 2012 Share Posted August 13, 2012 You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it: chatBox = {} table.insert(chatBox,'This is test message #1') table.insert(chatBox,'This is test message #2') table.insert(chatBox,'This is test message #3') local yval = 0 for i,v in ipairs(chatBox)do dxDrawText(v,x,y+yval,w,h,....) yval = yval + (h + 1) end Well hook up onClientChatMessage for content updating with table.remove and table.insert Link to comment
Fury Posted August 13, 2012 Author Share Posted August 13, 2012 You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it: chatBox = {} table.insert(chatBox,'This is test message #1') table.insert(chatBox,'This is test message #2') table.insert(chatBox,'This is test message #3') local yval = 0 for i,v in ipairs(chatBox)do dxDrawText(v,x,y+yval,w,h,....) yval = yval + (h + 1) end Well hook up onClientChatMessage for content updating with table.remove and table.insert oh you got me so wrong. im talking about make a table like chatbox. when im writing ex: outPutTable( "zaa", source, 255,255,255,true) outPutTable( "zaa2", source, 255,255,255,true) outPutTable( "zaa3", source, 255,255,255,true) outPutTable will be like this: zaa zaa2 zaa3 and it will be non-visible for a while later. is that possible? Link to comment
ernst Posted August 13, 2012 Share Posted August 13, 2012 You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it: chatBox = {} table.insert(chatBox,'This is test message #1') table.insert(chatBox,'This is test message #2') table.insert(chatBox,'This is test message #3') local yval = 0 for i,v in ipairs(chatBox)do dxDrawText(v,x,y+yval,w,h,....) yval = yval + (h + 1) end Well hook up onClientChatMessage for content updating with table.remove and table.insert oh you got me so wrong. im talking about make a table like chatbox. when im writing ex: outPutTable( "zaa", source, 255,255,255,true) outPutTable( "zaa2", source, 255,255,255,true) outPutTable( "zaa3", source, 255,255,255,true) outPutTable will be like this: zaa zaa2 zaa3 and it will be non-visible for a while later. is that possible? set a timer to remove the event. although, I still think a GUI would be better. local memo = guiCreateMemo() local sendEdit = guiCreateEdit() function write() local text = guiGetText(sendEdit) local content = guiGetText(memo) guiSetText(memo, content.."\n"..text end Link to comment
Buffalo Posted August 13, 2012 Share Posted August 13, 2012 Well i would still advice to do how i said. Just add some params into table like alpha which can be then changed using timers to fade out lines using dx function. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now