Chat: mod output lines are the client's own
Main's mod output calls Chat::add without the new source; a mod's line is written by this client, so the Chat option keeps it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -454,10 +454,16 @@ impl Game<'_> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// Not through system_message: a mod must not hear its own lines.
|
// Not through system_message: a mod must not hear its own lines.
|
||||||
|
// Written by this client, so the Chat option doesn't hide it.
|
||||||
let focused = self.screen == Screen::Chat;
|
let focused = self.screen == Screen::Chat;
|
||||||
self.ui
|
self.ui.chat.add(
|
||||||
.chat
|
&self.gui.atlas,
|
||||||
.add(&self.gui.atlas, line, None, self.ticks, focused);
|
line,
|
||||||
|
None,
|
||||||
|
horizon_client::chat::ChatSource::Client,
|
||||||
|
self.ticks,
|
||||||
|
focused,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
// A mod may set or clear its settings page in any call, not only
|
// A mod may set or clear its settings page in any call, not only
|
||||||
// while loading: its row's Settings button follows.
|
// while loading: its row's Settings button follows.
|
||||||
|
|||||||
Reference in New Issue
Block a user