blob: d6cbe7f56225af3a8587feebeac3025babf7ed04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
pub mod topbar;
pub mod camera_info;
use std::cell::RefCell;
use crate::{GameState, eguictx::EguiCtx, ui::{camera_info::CameraWindowState, topbar::TopBarState}};
mod ui {
}
#[derive(Default, Clone)]
pub struct State
{
pub topbar_sate: TopBarState,
pub camera_info: CameraWindowState
}
impl State
{
pub fn render(
&mut self,
game_state: &RefCell<GameState>,
eguictx: &EguiCtx)
{
TopBarState::render(
&mut self.topbar_sate,
game_state,
eguictx);
CameraWindowState::render(
self,
game_state,
eguictx);
}
}
|