feat: add hide option to message context menu
This commit is contained in:
@@ -487,7 +487,7 @@ internal sealed class ChatLog : IUiComponent {
|
||||
|
||||
try {
|
||||
if (ImGui.Selectable("Hide chat")) {
|
||||
this._hideState = HideState.User;
|
||||
this.UserHide();
|
||||
}
|
||||
} finally {
|
||||
ImGui.PopStyleColor();
|
||||
@@ -517,6 +517,10 @@ internal sealed class ChatLog : IUiComponent {
|
||||
ImGui.End();
|
||||
}
|
||||
|
||||
internal void UserHide() {
|
||||
this._hideState = HideState.User;
|
||||
}
|
||||
|
||||
private void DrawMessageLog(Tab tab, float childHeight, bool switchedTab) {
|
||||
if (ImGui.BeginChild("##chat2-messages", new Vector2(-1, childHeight))) {
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
||||
|
||||
Reference in New Issue
Block a user