mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-16 07:37:45 +00:00
Changed debug cheat display
This commit is contained in:
parent
0dbee1e854
commit
11454183a1
|
@ -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(());
|
||||
}
|
||||
|
|
|
@ -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)?;
|
||||
|
|
Loading…
Reference in a new issue