mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
port_map: createScreen is open_chat_method, and its draft gap is closed
open_chat_method is ChatComponent.createScreen: it restores the kept draft when it can (a command draft only for /), opens the box with the tab's prefix otherwise and records whether the box started on a draft, so the row names it rather than open_chat and no longer claims no draft is restored.
This commit is contained in:
1 parent
98330eacf2
commit
b597fa981e
1 file changed
+1
-1
@@ -13,7 +13,7 @@ ChatComponent.getHeight port crates/horizon-client-render/src/chat.rs::ChatOptio
|
||||
ChatComponent.defaultUnfocusedPct inline crates/horizon-client-render/src/chat.rs::ChatOptions::default the default 70/160 is stored as a constant, not computed from the height formula
|
||||
ChatComponent.getLineHeight port crates/horizon-client-render/src/chat.rs::ChatOptions::line_height 9 * (line spacing + 1)
|
||||
ChatComponent.saveAsDraft port crates/horizon-client/src/game/chat.rs::Game::keep_chat_draft the text left in the box becomes the draft unless the screen was closed on purpose without Save Chat Drafts or the text was sent
|
||||
ChatComponent.createScreen port crates/horizon-client/src/game/chat.rs::Game::open_chat gap: player: no draft is restored; the chat opens with the initial text its caller passes
|
||||
ChatComponent.createScreen port crates/horizon-client/src/game/chat.rs::Game::open_chat_method T or / opens the chat with the draft kept last time, a command draft only for /, else with its prefix, and records whether the box starts on a draft
|
||||
ChatComponent.preserveCurrentChatScreen missing minor: unsure: Horizon keeps no chat screen across a dimension change; game/nether_portal.rs:577 only leaves Chat alone during a portal effect, the change path was not checked
|
||||
ChatComponent.storeState inline crates/horizon-client/src/game/remote.rs::Game::poll_remote no snapshot: the Reconfigured arm only resets boss bars and registries, so the chat survives a reconfigure without a copy
|
||||
ChatComponent.restoreState inline crates/horizon-client/src/game/remote.rs::Game::poll_remote no restore: the chat is never cleared on Reconfigured, so there is nothing to put back
|
||||
|
||||
|
Reference in new issue
Block a user