Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement title and actionbar for message action #1067

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

Pablete1234
Copy link
Member

@Pablete1234 Pablete1234 commented Oct 8, 2022

Adds support for more than just text messages in the message action:

<message fade-in="0.5s" stay="1s" fade-out="0.5s">
  <text>Text to show in chat</text>
  <title>Text in title</title>
  <subtitle>Text in subtitle!</subtitle>
  <actionbar>Message above hotbar</actionbar>
</message>

They can be specified as attributes too just like text was before:

<message text="Text in chat" title="Title" subtitle="Subtitle text" actionbar="actionbar"/>

At least one of the 4 formatted-text properties is required for message action, fade in, stay and out are optional, they default to the vanilla defaults after a reset (10 ticks or 0.5s, 70 ticks or 3.5s, and 20 ticks or 1s).

The PR has been tested and works as intended.

@Pablete1234 Pablete1234 added the feature New feature or request label Oct 8, 2022
@Electroid Electroid merged commit c68d04f into dev Oct 8, 2022
@Electroid Electroid deleted the message-improvements branch October 8, 2022 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants