Compare commits

...

2 Commits

Author SHA1 Message Date
433800da6b Merge pull request 'right-side screen text' (#31) from andy/right-text into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #31
Reviewed-by: jake <jake@sharnoth.com>
2023-02-15 19:20:09 -05:00
fe5919199e right-side screen text
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-02-16 00:04:17 +00:00

View File

@ -285,6 +285,25 @@ impl SmallDialog {
}
}
// this is literally the same struct as 0x01.
#[pso_packet(0xB0)]
pub struct RightText {
padding: [u32; 0x02],
msg: String,
}
impl RightText {
pub fn new(mut msg: String) -> RightText {
if !msg.ends_with('\0') {
msg.push('\0');
}
RightText {
padding: [0; 0x02],
msg: msg,
}
}
}
#[pso_packet(0x11)]
pub struct SmallLeftDialog {
padding: [u32; 0x02],