DefChat

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.

7 Likes

Version 0.1 - Jan. 7th, 2018

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

2 Likes

Version 0.105 - Jan. 8th, 2018

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.

4 Likes

Version 0.5 - Feb. 2nd, 2018 - MILESTONE

FIXED: Caret starting at the length of the previously typed chat.
FIXED: Commands not being recieved because of string case.

ADDED: Frame to GUI. Messages are now cropped to the boundaries of the chat box.

4 Likes

Version 0.555 - March 19th, 2018

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.

3 Likes

Version 0.670 - May 24th, 2018 - MILESTONE PASSED

FIXED: Special characters and related bugs.

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.

2 Likes