mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fmt
Former-commit-id: 2d9b4f53438a3849381d8723d0ab48b4015cd35c
This commit is contained in:
parent
265e8f243c
commit
4f2b27c338
@ -266,7 +266,12 @@ impl Hud {
|
||||
}
|
||||
}
|
||||
|
||||
fn update_layout(&mut self, client: &Client, global_state: &GlobalState, debug_info: DebugInfo) -> Vec<Event> {
|
||||
fn update_layout(
|
||||
&mut self,
|
||||
client: &Client,
|
||||
global_state: &GlobalState,
|
||||
debug_info: DebugInfo,
|
||||
) -> Vec<Event> {
|
||||
let mut events = Vec::new();
|
||||
let ref mut ui_widgets = self.ui.set_widgets();
|
||||
let version = env!("CARGO_PKG_VERSION");
|
||||
@ -688,7 +693,10 @@ impl Hud {
|
||||
let events = self.update_layout(client, global_state, debug_info);
|
||||
let (view_mat, _, _) = camera.compute_dependents(client);
|
||||
let fov = camera.get_fov();
|
||||
self.ui.maintain(&mut global_state.window.renderer_mut(), Some((view_mat, fov)));
|
||||
self.ui.maintain(
|
||||
&mut global_state.window.renderer_mut(),
|
||||
Some((view_mat, fov)),
|
||||
);
|
||||
events
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user