INNER CODE UNIT · C++

isIndexActive

JuanDiegoMontoya/Gengine · src/engine/Console.cpp:401

    bool isIndexActive = console->state.activeIdx == i;
    if (isIndexActive)
    {
      ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(1, 0, 0, 1));
    }

    ImGui::PushID(i);
    if (ImGui::Selectable(candidate.c_str(), isIndexActive))
    {
      console->state.clickedIdx = i;
    }
    ImGui::PopID();

    if (isIndexActive)
    {
      if (console->state.selectionChanged)
      {
        ImGui::SetScrollHereY();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…