Q6Z5IQJ3SUI7BUJCKT377EPIRO7UVZFI7UB74ZEEGTCTUKC7WGKQC
X5EMQBC4BFNJOOHS2QMF4UB4QH6JKSALK6RXLK6B7SP6MNYSAP6QC
L6RIUKGLJZLAOKFGUDTZKBPP4HUBPEZAKHJEQHO34WFF62AB2ZIQC
egui::Window::new("Welcome").show(ctx, |ui| { ui.label(">> Welcome to Cat Waiter <<"); });
egui::Window::new("Welcome").show(ctx, |ui| {
ui.label(">> Welcome to Cat Waiter <<");
});
let mut view = GameView { assets: &mut self.assets, world: &mut self.world, }; self.current_scene.gui_egui(ctx, &mut view)
let mut view = GameView {
assets: &mut self.assets,
world: &mut self.world,
};
self.current_scene.gui_egui(ctx, &mut view)
self.egui_winit .handle_platform_output(self.screen.window(), full_output.platform_output.clone());
self.egui_winit
.handle_platform_output(self.screen.window(), full_output.platform_output.clone());
if self .egui_winit .on_window_event(self.screen.window(), event) .consumed { return true; }
if self
.egui_winit
.on_window_event(self.screen.window(), event)
.consumed
{
return true;
}
/// Renders to egui's gui fn gui_egui(&mut self, ctx: &egui::Context, game: &mut GameView);
/// Renders to egui's gui
fn gui_egui(&mut self, ctx: &egui::Context, game: &mut GameView);
SceneReference::Init => Box::new(MainGameScene),
SceneReference::Init => Box::new(MainGameScene::default()),
pub struct MainGameScene;
#[derive(Default)]pub struct MainGameScene { voop: String,}
#[derive(Default)]
pub struct MainGameScene {
voop: String,
fn gui_egui(&mut self, ctx: &egui::Context, game: &mut GameView) { let _ = game; egui::SidePanel::left("gama").show(ctx, |ui| { ui.label(">> Welcome to Cat Waiter <<"); ui.text_edit_singleline(&mut self.voop); }); }
fn gui_egui(&mut self, ctx: &egui::Context, game: &mut GameView) {
let _ = game;
egui::SidePanel::left("gama").show(ctx, |ui| {
ui.text_edit_singleline(&mut self.voop);