1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-12-26 05:56:41 +00:00

Change debugger to match refactor branch

Alula already fixed this, but not in the current release version.
This commit is contained in:
Dr. Glaucous 2024-11-27 14:46:43 -05:00
parent ca7e4e3a29
commit 67d4fe66b6

View file

@ -95,7 +95,7 @@ impl LiveDebugger {
self.command_line_focused = true;
}
ui.input_text("##command", &mut self.command_line_parser.buffer).build();
ui.input_text("##I", &mut self.command_line_parser.buffer).build();
}
if ui.is_item_active() {
@ -173,7 +173,7 @@ impl LiveDebugger {
ui.text(format!("Game speed ({:.1} TPS):", state.current_tps()));
let mut speed = state.settings.speed;
ui.slider("##speed", 0.1, 3.0, &mut speed);
ui.slider("##Speed", 0.1, 3.0, &mut speed);
ui.same_line();
if ui.button("Reset") {
speed = 1.0
@ -253,8 +253,8 @@ impl LiveDebugger {
}
let stages: Vec<&ImStr> = self.stages.iter().map(|e| e.as_ref()).collect();
let _ = ui.push_item_width(-1.0);
ui.list_box("##selector", &mut self.selected_stage, &stages, 10);
ui.push_item_width(-1.0);
ui.list_box("##SelectedStage", &mut self.selected_stage, &stages, 10);
if ui.button("Load") {
match GameScene::new(state, ctx, self.selected_stage as usize) {
@ -337,8 +337,8 @@ impl LiveDebugger {
state.creditscript_vm.state
)));
let _ = ui.push_item_width(-1.0);
ui.list_box("##tscbox", &mut self.selected_event, &events, 10);
ui.push_item_width(-1.0);
ui.list_box("##SelectedEvent", &mut self.selected_event, &events, 10);
if ui.button("Execute") {
assert_eq!(self.event_ids.len(), self.events.len());
@ -534,7 +534,7 @@ impl LiveDebugger {
)
.size([300.0, 100.0], Condition::Appearing)
.build(|| {
let _ = ui.push_item_width(-1.0);
ui.push_item_width(-1.0);
ui.text_wrapped(self.error.as_ref().unwrap());
if ui.button("OK") {
@ -573,4 +573,4 @@ fn cond_flags(ui: &imgui::Ui, cond: &mut crate::common::Condition) {
ui.checkbox_flags("Increased acceleration", &mut cond.0, 32);
ui.checkbox_flags("Unknown (0x40)", &mut cond.0, 64);
ui.checkbox_flags("Alive", &mut cond.0, 128);
}
}