-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Port] Log Actions In The Chat / Логирование Действий В Чат #57
Conversation
WalkthroughThe pull request introduces a new checkbox, Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- Content.Client/Options/UI/Tabs/MiscTab.xaml (1 hunks)
- Content.Client/Options/UI/Tabs/MiscTab.xaml.cs (5 hunks)
- Content.Client/Popups/PopupSystem.cs (4 hunks)
- Content.Shared/_White/CVars.cs (2 hunks)
- Resources/Locale/en-US/_white/escape-menu/options-menu.ftl (1 hunks)
- Resources/Locale/ru-RU/_white/escape-menu/options-menu.ftl (1 hunks)
Additional comments not posted (11)
Resources/Locale/en-US/_white/escape-menu/options-menu.ftl (2)
1-1
: LGTM!The new localization entry for the chat logging option is clear and aligns with the PR objective. The text accurately describes the purpose of the option.
3-3
: Existing entry is retained.The existing entry for opening the emotions menu is retained, ensuring backward compatibility and preserving the existing functionality.
Resources/Locale/ru-RU/_white/escape-menu/options-menu.ftl (1)
1-1
: LGTM!The added localization string for logging actions in chat is correctly formatted and positioned. It aligns with the PR objective of implementing chat logging functionality.
Content.Shared/_White/CVars.cs (1)
34-40
: LGTM!The new configuration variable
LogInChat
is correctly defined in theWhiteCVars
class. The variable is created with appropriate default value and flags. The new regionOptionsMisc
helps improve code organization.Content.Client/Options/UI/Tabs/MiscTab.xaml (1)
56-56
: LGTM!The new checkbox for enabling/disabling chat logging is implemented correctly. The localized text is bound appropriately.
Content.Client/Options/UI/Tabs/MiscTab.xaml.cs (3)
3-3
: LGTM!The addition of the using statement for
Content.Shared._White
namespace is correct and necessary for using types from that namespace in this file.
84-84
: LGTM!The event subscription for
LogInChatCheckBox.OnToggled
is correctly added, ensuring that theOnCheckBoxToggled
method is called when the checkbox state changes.
103-103
: LGTM!The initialization of
LogInChatCheckBox.Pressed
based on theWhiteCVars.LogInChat
configuration value is correct, ensuring that the checkbox state matches the configuration when the UI is loaded.Content.Client/Popups/PopupSystem.cs (3)
46-47
: LGTM!The
_isLogging
variable is correctly declared and initialized. The purpose of the variable is clear from the name and the comment.
66-69
: LGTM!The changes to the
Initialize
method are correctly implemented. The changes allow the logging state to be dynamically updated based on the configuration.
99-126
: LGTM!The changes to the
PopupMessage
method are correctly implemented. The changes enhance the user experience by providing visual feedback in the chat when popups are displayed, contingent on the logging setting. The changes integrate the popup system with the chat system, allowing for better communication of popup messages to players.
Нужны скрины из игры |
Описание PR
Порт логирование действий в чат.
Медиа
Видео
Изменения
🆑 Spatison