right-side screen text
This commit is contained in:
parent
05222bbf9f
commit
fe5919199e
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user