| 3743 | } |
| 3744 | |
| 3745 | bool IGFD::KeyExplorerFeature::m_BeginFlashItem(size_t vIdx) { |
| 3746 | bool res = false; |
| 3747 | |
| 3748 | if (m_FlashedItem == vIdx && std::abs(m_FlashAlpha - 0.0f) > 0.00001f) { |
| 3749 | m_FlashAlpha -= m_FlashAlphaAttenInSecs * ImGui::GetIO().DeltaTime; |
| 3750 | if (m_FlashAlpha < 0.0f) m_FlashAlpha = 0.0f; |
| 3751 | |
| 3752 | ImVec4 hov = ImGui::GetStyleColorVec4(ImGuiCol_HeaderHovered); |
| 3753 | hov.w = m_FlashAlpha; |
| 3754 | ImGui::PushStyleColor(ImGuiCol_HeaderHovered, hov); |
| 3755 | res = true; |
| 3756 | } |
| 3757 | |
| 3758 | return res; |
| 3759 | } |
| 3760 | |
| 3761 | void IGFD::KeyExplorerFeature::m_EndFlashItem() { |
| 3762 | ImGui::PopStyleColor(); |
nothing calls this directly
no outgoing calls
no test coverage detected