From 59b564c44b682598ce5bbc2e8733d6e557e40116 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 5 Feb 2023 12:44:28 -0700 Subject: [PATCH] large dialog --- src/packet/ship.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/packet/ship.rs b/src/packet/ship.rs index ce44428..dcfd7a9 100644 --- a/src/packet/ship.rs +++ b/src/packet/ship.rs @@ -303,6 +303,24 @@ impl SmallLeftDialog { } } +#[pso_packet(0x1A)] +pub struct LargeDialog { + padding: [u32; 0x02], + msg: String, +} + +impl LargeDialog { + pub fn new(mut msg: String) -> LargeDialog { + if !msg.ends_with('\0') { + msg.push('\0'); + } + LargeDialog { + padding: [0, 0x45000000], + msg: msg, + } + } +} + #[pso_packet(0x64, manual_flag)] pub struct JoinRoom { pub flag: u32, // # of elements in players