switch to default iris app
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
use super::*;
|
||||
use crate::state::{ClientState, LoggedIn};
|
||||
use iris::layout::len_fns::*;
|
||||
use openworm::net::{ClientMsg, NetClientMsg, NetServerMsg};
|
||||
use iris::{
|
||||
layout::len_fns::*,
|
||||
winit::{
|
||||
attr::{Selectable, Selector},
|
||||
event::Submit,
|
||||
},
|
||||
};
|
||||
use openworm::net::{ClientMsg, NetClientMsg};
|
||||
|
||||
pub const SIZE: u32 = 20;
|
||||
|
||||
@@ -74,7 +80,7 @@ pub fn msg_panel(ui: &mut Ui, state: &mut LoggedIn) -> impl WidgetRet + use<> {
|
||||
content: content.clone(),
|
||||
};
|
||||
state.network.send(ClientMsg::SendMsg(msg.clone()));
|
||||
let msg = msg_widget(&client.data.username, &content).add(&mut client.ui);
|
||||
let msg = msg_widget(&state.username, &content).add(&mut client.ui);
|
||||
client.ui[&msg_area].children.push(msg.any());
|
||||
})
|
||||
.pad(15)
|
||||
|
||||
Reference in New Issue
Block a user