Exploit Posted April 25, 2010 Share Posted April 25, 2010 I'd like to be able to change the chat-box position, say to the bottom left instead of where it is. This would enable us to make more customized user interfaces etc, Is this possible to do yet? If no is it possible to be implemented in the future? Thanks in advance, Exploit Link to comment
MCvarial Posted April 25, 2010 Share Posted April 25, 2010 clients should be abble to decide where their chatbox is, you'll have to think of an interface that is compatible with that. Link to comment
Exploit Posted April 25, 2010 Author Share Posted April 25, 2010 What I'd like is a command to set the starting x and y and the width and height of the chat-box. I don't know if that's possible but it would enable us developers to have more customization and personality in our user interface on the server, especially for those who want to change the mini-map and status bars etc. Thanks. Link to comment
50p Posted April 25, 2010 Share Posted April 25, 2010 You can't change the chatbox position but you can make your own custom chatbox with DX functions. Link to comment
robhol Posted April 26, 2010 Share Posted April 26, 2010 This would just be a pain in the ass for clients and players anyway. Personally, I think the chatbox is fine just where it is, thank you. Link to comment
Exploit Posted April 26, 2010 Author Share Posted April 26, 2010 50p said: You can't change the chat-box position but you can make your own custom chat-box with DX functions. Thanks 50p, I appreciate your constructive reply. But if I design my own custom chat-box in dx, will I be able to hide the current chat-box? Thanks again. PS to robhol: I never said the chat-box isn't right where it is, I just asked if developers could change their chat-box position since I'd like to implement a custom User Interface, thank you. Link to comment
Discord Moderators Zango Posted April 26, 2010 Discord Moderators Share Posted April 26, 2010 Quote will I be able to hide the current chat-box? https://wiki.multitheftauto.com/wiki/ShowChat A function which is used to show or hide the player's chat. Something I found laying around in my resources folder, provides an example to /toggle the chatbox. g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Me = getLocalPlayer() g_Show = true function testCommand() g_Show = not g_Show showChat(g_Show) end addCommandHandler("chat",testCommand) You could then obviously replace the CommandHandler with an event handler related to when you want it off. Link to comment
Exploit Posted April 26, 2010 Author Share Posted April 26, 2010 Thanks for the server 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