mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 11:45:01 +01:00
more
This commit is contained in:
parent
3a7cdc412b
commit
785078098e
1 changed files with 2 additions and 4 deletions
|
|
@ -7,8 +7,6 @@ mod tiles;
|
|||
pub(crate) struct App {
|
||||
pub(crate) game: GameState,
|
||||
pub(crate) sf_egui: SfEgui,
|
||||
/// Integer scale for rendering the game
|
||||
pub(crate) scale: u8,
|
||||
}
|
||||
impl App {
|
||||
pub(crate) fn new() -> Self {
|
||||
|
|
@ -20,12 +18,12 @@ fn main() {
|
|||
let mut app = App::new();
|
||||
app.sf_egui
|
||||
.do_frame(|ctx| {
|
||||
do_debug_ui(ctx, &mut app.game, &mut app.scale);
|
||||
do_debug_ui(ctx, &mut app.game);
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
pub(crate) fn do_debug_ui(ctx: &egui::Context, mut game: &mut GameState, mut scale: &mut u8) {
|
||||
pub(crate) fn do_debug_ui(ctx: &egui::Context, mut game: &mut GameState) {
|
||||
egui::Window::new("Debug (F12)").show(ctx, |ui| {
|
||||
egui::ScrollArea::both().show(ui, |ui| {
|
||||
let mut id_source = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue