pa3ck Posted December 15, 2013 Share Posted December 15, 2013 Hi there, I want to make 2 more chat boxes, one for the right hand side and one goes to the bottom of the screen. What functions / events will I need? The hardest part is that, when a new chat line comes up, the first one should disappear... Just like in the default chat box. What would be the easiest way? Link to comment
xXMADEXx Posted December 15, 2013 Share Posted December 15, 2013 I guess these: dxDrawText onClientRender -- event bindKey To do only a certain amount of messages, when the player makes a chat, you'll need to insert it into a table. You can check the number of indexes in the table, and if there are too many, remove the first index. Link to comment
DNL291 Posted December 15, 2013 Share Posted December 15, 2013 + onClientChatMessage addCommandHandler unbindKey getChatboxLayout Link to comment
Dealman Posted December 15, 2013 Share Posted December 15, 2013 Or if you don't want to use DX, you can use those functions; textCreateDisplay textCreateTextItem textDestroyDisplay textDestroyTextItem textDisplayAddObserver textDisplayAddText textDisplayRemoveObserver textDisplayRemoveText textItemGetColor textItemGetPosition textItemGetPriority textItemGetScale textItemGetText textItemSetColor textItemSetPosition textItemSetPriority textItemSetScale textItemSetText textDisplayGetObservers textDisplayIsObserver Link to comment
pa3ck Posted December 15, 2013 Author Share Posted December 15, 2013 Okay, got it, thank you guys. Link to comment
PaiN^ Posted December 15, 2013 Share Posted December 15, 2013 You should use a table so you can delete the first line in the chat once a new one comes up . 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