-
Notifications
You must be signed in to change notification settings - Fork 414
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
Various Improvements to NanoChat #2922
base: master
Are you sure you want to change the base?
Conversation
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.
Move edit.svg.png under _DV Folders.
merge is from wizden, i made it, hi |
I tried to look there but the relevant commits are for NanoChat which isn't on wizden, if I'm not mistaken |
I made them in the PR, silly of me I know |
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.
Amazing QOL, huge +1
common.AddFunction(ContentKeyFunctions.NanoChatNavigateUp); // DeltaV - NanoChat keybinds | ||
common.AddFunction(ContentKeyFunctions.NanoChatNavigateDown); // DeltaV - NanoChat keybinds | ||
common.AddFunction(ContentKeyFunctions.NanoChatNavigateUpUnread); // DeltaV - NanoChat keybinds | ||
common.AddFunction(ContentKeyFunctions.NanoChatNavigateDownUnread); // DeltaV - NanoChat keybinds |
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.
begin/end instead
AddHeader("ui-options-header-nano-chat"); | ||
AddButton(ContentKeyFunctions.NanoChatNavigateUp); // DeltaV - NanoChat keybinds | ||
AddButton(ContentKeyFunctions.NanoChatNavigateDown); // DeltaV - NanoChat keybinds | ||
AddButton(ContentKeyFunctions.NanoChatNavigateUpUnread); // DeltaV - NanoChat keybinds | ||
AddButton(ContentKeyFunctions.NanoChatNavigateDownUnread); // DeltaV - NanoChat keybinds |
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.
.
@@ -229,6 +290,15 @@ private void HandleToggleMute(Entity<NanoChatCardComponent> card) | |||
UpdateUIForCard(card); | |||
} | |||
|
|||
private void HandleToggleMuteChat(Entity<NanoChatCardComponent> card, NanoChatUiMessageEvent msg) | |||
{ | |||
Log.Debug($"Toggling mute for chat #{msg.RecipientNumber:D4} on card #{card.Comp.Number:D4}"); |
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.
gamer
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.
What does this mean?
private static string Truncate(string text, int maxLength, string overflowText = "...") => | ||
text.Length <= maxLength | ||
? text | ||
: text[..(maxLength - overflowText.Length)] + overflowText; |
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.
put this in shared so ui doesnt copy paste it
public static readonly BoundKeyFunction NanoChatNavigateUp = "NanoChatNavigateUp"; // DeltaV - Keybinds for NanoChat | ||
public static readonly BoundKeyFunction NanoChatNavigateDown = "NanoChatNavigateDown"; // DeltaV - Keybinds for NanoChat | ||
public static readonly BoundKeyFunction NanoChatNavigateUpUnread = "NanoChatNavigateUpUnread"; // DeltaV - Keybinds for NanoChat | ||
public static readonly BoundKeyFunction NanoChatNavigateDownUnread = "NanoChatNavigateDownUnread"; // DeltaV - Keybinds for NanoChat |
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.
begin/end comments
# DeltaV - Swap Hands Reversed End | ||
# DeltaV - NanoChat keybinds Start |
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.
remove middle comments and change outer to Begin DeltaV Additions / End DeltaV Additions
no reason to have separate comments for 1 thing
About the PR
Why / Balance
NanoChat as-is is still not very nice to use. These changes should ideally make it a good alternative communication method to trying to call out people in common.
Technical details
Some ported from:
Media
2025-02-08.01-36-20.mp4
2025-02-08.01-43-33.mp4
2025-02-08.01-48-51.mp4
Requirements
Breaking changes
Changelog
🆑