Skip to content

[Feature]: Chat emojis #7229

Description

@lL1l1

Describe the Feature

Ability to display text-scaled images in chat.

This helps players express themselves better with modern emoji communication in chat.
It also allows improvements for things like the resource sharing notifications by allowing generic icon-based system messages.

Expected Behavior

Steps of implementation:

  1. A text superclass that can render a basic variable-size bitmap using an in-text key. The bitmap should take the left edge of the key's text and be centered vertically in the text line. The height should adjust to text font height. The width should offset the text coming after the bitmap.
  2. Make sure methods like text wrapping and the textadvance lazyvar work with it.
  3. Allow passing in a key->bitmap table to customize the new class.
  4. Implement the new class as the text display for the chat.
  5. Add ability to add additional emoji mappings for chat.
  6. Create a basic emoji set for the FAF community and assign it to chat.
  7. Add an emoji input box to chat based off the mappings. Put added mappings in separate categories alphabetically sorted so that mods don't mess with it too much.
  8. Add onto chat's autocomplete implementation to work with the emojis.

Screenshots

No response

Additional context

This would be an integration and upgrade of @4z0t's deprecated "Emojis" mod.

In the future this could be added to the lobby chat.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiAnything to do with the User Interface of the Gameui: chat windowrelated to chatting with players

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions