update iris

This commit is contained in:
2025-12-09 01:53:00 -05:00
parent 4aa7219d49
commit 34f57ce0b5
8 changed files with 64 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ use crate::{
state::{ClientState, LoggedIn, Login},
ui::*,
};
use iris::{prelude::*, winit::*};
use iris::prelude::*;
use openworm::{
net::{ClientMsg, ServerMsg, install_crypto_provider},
rsc::DataDir,
@@ -76,7 +76,7 @@ impl DefaultAppState for Client {
notif,
proxy,
};
start_screen(&mut s, ui).set_ptr(&s.main_ui, ui);
start_ui(&mut s, ui).set_ptr(&s.main_ui, ui);
s
}
@@ -101,7 +101,7 @@ impl DefaultAppState for Client {
&& let Some(msg_area) = &state.channel
{
let msg = msg_widget(&msg.user, &msg.content).add(ui);
msg_area.get_mut().children.push(msg.any());
msg_area.get_mut().children.push(msg);
}
}
ServerMsg::LoadMsgs(msgs) => {
@@ -111,7 +111,7 @@ impl DefaultAppState for Client {
for msg in msgs {
state.msgs.push(msg.clone());
let msg = msg_widget(&msg.user, &msg.content).add(ui);
msg_area.get_mut().children.push(msg.any());
msg_area.get_mut().children.push(msg);
}
}
}