| 339 | } |
| 340 | |
| 341 | bool utils::GrabButton(ImVec2 pos, int random_int) |
| 342 | { |
| 343 | bool active = false; |
| 344 | ImGui::SetCursorPos(pos); |
| 345 | ImGui::PushID(random_int); |
| 346 | ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.00f, 0.00f)); |
| 347 | ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0); |
| 348 | ImGui::BeginChild(random_int + 9, ImVec2(20, 20)); |
| 349 | ImGui::Button(" "); |
| 350 | active = ImGui::IsItemActive(); |
| 351 | ImGui::EndChild(); |
| 352 | ImGui::PopStyleVar(2); |
| 353 | ImGui::PopID(); |
| 354 | return active; |
| 355 | } |
| 356 | |
| 357 | void utils::HelpMarker(const char *desc) |
| 358 | { |