Imgui stuff

This commit is contained in:
Margen67
2025-08-01 06:05:55 -07:00
parent 833f938a64
commit 10f2b5ebfc
6 changed files with 1930 additions and 14 deletions

View File

@@ -379,7 +379,7 @@ void DebugWindow::DrawSourcePane() {
ImGui::EndGroup();
ImGui::BeginGroup();
ImGui::PushButtonRepeat(true);
ImGui::PushItemFlag(ImGuiItemFlags_ButtonRepeat, true);
bool can_step = !cache_.is_running && state_.thread_info;
if (ImGui::ButtonEx("Step PPC", ImVec2(0, 0),
can_step ? 0 : ImGuiItemFlags_Disabled)) {
@@ -388,7 +388,7 @@ void DebugWindow::DrawSourcePane() {
processor_->StepGuestInstruction(state_.thread_info->thread_id);
}
}
ImGui::PopButtonRepeat();
ImGui::PopItemFlag();
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(
"Step one PPC instruction on the current thread (hold for many).");
@@ -398,7 +398,7 @@ void DebugWindow::DrawSourcePane() {
// Only show x64 step button if we have x64 visible.
ImGui::Dummy(ImVec2(4, 0));
ImGui::SameLine();
ImGui::PushButtonRepeat(true);
ImGui::PushItemFlag(ImGuiItemFlags_ButtonRepeat, true);
if (ImGui::ButtonEx("Step x64", ImVec2(0, 0),
can_step ? 0 : ImGuiItemFlags_Disabled)) {
// By enabling the button when stepping we allow repeat behavior.
@@ -406,7 +406,7 @@ void DebugWindow::DrawSourcePane() {
processor_->StepHostInstruction(state_.thread_info->thread_id);
}
}
ImGui::PopButtonRepeat();
ImGui::PopItemFlag();
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(
"Step one x64 instruction on the current thread (hold for many).");