MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / m_BeginFlashItem

Method m_BeginFlashItem

ImGuiFileDialog.cpp:3745–3759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3743}
3744
3745bool 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
3761void IGFD::KeyExplorerFeature::m_EndFlashItem() {
3762 ImGui::PopStyleColor();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected