-
-
Notifications
You must be signed in to change notification settings - Fork 531
Add timestamp display option for chatbox/console #4568
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
base: master
Are you sure you want to change the base?
Conversation
|
Loved it. |
|
It'd be nice if chat and console were separate options, I'd like to have timestamp shown in console but not chat, I don't want to clutter chat too much but console is a bigger window |
qaisjp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the pull request, here's some feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toggling the setting should show/hide the time in the chat and the console.
The current implementation conditionally modifies the chat string to include the time.
Instead I suggest you save the timestamp string + message string separately, and include the timestamp string conditionally at render time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to change Console to support toggling. (mainly because the console is implemented as simply appending raw text to m_pHistory / a CGuiMemo, and I don't want to introduce another copy of the buffer)
| DEFAULT("chat_text_alignment", Chat::Text::Align::LEFT); // chatbox horizontal text alignment | ||
| DEFAULT("server_can_flash_window", true); // allow server to flash the window | ||
| DEFAULT("allow_tray_notifications", true); // allow scripts to create tray balloon notifications | ||
| DEFAULT("show_time_in_chat", false); // show time prefix in chat messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SpeedyFolf's feedback is valid:
It'd be nice if chat and console were separate options, I'd like to have timestamp shown in console but not chat, I don't want to clutter chat too much but console is a bigger window
|
Maybe also a good idea to add it to the |
Closes #1029
This PR adds timestamp display option for chatbox/console