update iris
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user