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

Add printCaption e2functions #3172

Merged
merged 4 commits into from
Nov 9, 2024
Merged

Conversation

Denneisk
Copy link
Member

@Denneisk Denneisk commented Nov 8, 2024

Implements gui.AddCaption for the E2 owner. I wasn't sure where to put this, but I thought lumping it in with the other printing functions made some sort of sense.

These have a hard-coded duration limit of 7 seconds, equal to hints.

  • Adds function printCaption(string text, number duration, number fromPlayer)
  • Adds function printCaption(string text, number duration)

Copy link
Contributor

@thegrb93 thegrb93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would printCaption be a better name? That way it's easy to find with all the other print funcs

@thegrb93
Copy link
Contributor

thegrb93 commented Nov 8, 2024

Also need to update the docs

@Denneisk Denneisk changed the title Add addCaption e2functions Add printCaption e2functions Nov 9, 2024
@thegrb93 thegrb93 merged commit 1a635b3 into wiremod:master Nov 9, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants