DefChat is a chat asset for any Defold project. It activates on press of the ‘enter’ key, which allows you to start typing. Once the ‘enter’ key is pressed again the message is read and fit into the space above it.
Other scripts can have their messages printed through the message-passing system as well. This allows for easy adaptability for Multiplayer projects especially.
From Character-Precise linebreaking to the ability to stamp messages overtime, it’s got it.
FIXED: Backspacing causing odd duplication and deformed commandline text
FIXED: Caret extending beyond commandline width
CHANGED: Allowed width for commandline text to make it fit neater and more evenly
CHANGED: get_length(self, it) function for mutli-use with a return statement instead of a single variable equation
ADDED: Commands. You can now make your own functions, insert the call name and function name into the self.chatCommands table, and have it accessable using the ‘>’ key.
ADDED: Command arguments. You can now make your own command and have it gather each argument from the input. For example, >clear 2. The clear_chat function would receive this and only delete 2 messages.
CHANGED: Organization to make things easier to understand/follow along.
ADDED: Default font to bundle.
ADDED: Messages (change_font) (change_font_color), which allow you to modify the font while the asset is live. These do not effect previous messages.
ADDED: More customization values to DefChat Properties.
CHANGED: Linebreaking adjustments. Lines are now slightly more spaced out for special characters.