Changed debug cheat display

This commit is contained in:
dawnDus 2022-03-23 22:12:57 -04:00
parent 0dbee1e854
commit 11454183a1
No known key found for this signature in database
GPG Key ID: 972AABDE81848F21
2 changed files with 22 additions and 13 deletions

View File

@ -62,19 +62,6 @@ impl LiveDebugger {
self.selected_event = -1;
}
if state.settings.god_mode {
Window::new("God Mode Enabled [F3]")
.resizable(false)
.collapsed(true, Condition::Appearing)
.position([5.0, 100.0], Condition::FirstUseEver)
.size([180.0, 0.0], Condition::FirstUseEver)
.build(ui, || {
if ui.button("Disable") {
state.settings.god_mode = false;
}
});
}
if !state.debugger {
return Ok(());
}

View File

@ -2015,6 +2015,28 @@ impl Scene for GameScene {
self.draw_debug_outlines(state, ctx)?;
}
if state.settings.god_mode {
state.font.draw_text_with_shadow(
"GOD".chars(),
state.canvas_size.0 - 32.0,
20.0,
&state.constants,
&mut state.texture_set,
ctx,
)?;
}
if state.settings.infinite_booster {
state.font.draw_text_with_shadow(
"INF.B".chars(),
state.canvas_size.0 - 32.0,
32.0,
&state.constants,
&mut state.texture_set,
ctx,
)?;
}
self.replay.draw(state, ctx, &self.frame)?;
self.pause_menu.draw(state, ctx)?;