INNER CODE UNIT · C++

project_name

oxylusengine/Oxylus · OxylusEditor/src/Editor.cpp:625

      const std::string& project_name = self.active_project->get_config().name;
      ImGui::SetCursorPos(
        ImVec2(ImGui::GetMainViewport()->Size.x - UI::scale(10.0f) - ImGui::CalcTextSize(project_name.c_str()).x, 0)
      );
      ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.2f, 0.2f, 0.2f, 0.7f));
      ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.2f, 0.2f, 0.2f, 0.7f));
      ImGui::Button(project_name.c_str());
      ImGui::PopStyleColor(2);
    }

    ImGui::EndMenuBar();
  }
}

void Editor::draw_bottom_toolbar(this Editor& self, float height) {
  ZoneScoped;

  ImGuiViewport* viewport = ImGui::GetMainViewport();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…