pub mod topbar; pub mod camera_info; use std::cell::RefCell; use cgmath::Vector3; use crate::{GameState, eguictx::EguiCtx, solar_system, timeman::{self, Second, TimeMan}, ui::{camera_info::CameraWindowState, topbar::TopBarState}}; mod ui { pub use super::camera_info; } #[derive(Default, Clone)] pub struct State { pub topbar_sate: TopBarState, pub camera_info: CameraWindowState } impl State { pub fn render( &mut self, game_state: &RefCell, eguictx: &EguiCtx) { TopBarState::render( &mut self.topbar_sate, game_state, eguictx); CameraWindowState::render( self, game_state, eguictx); } }