MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / PushRecentProject

Function PushRecentProject

Engine/Editor/Source/UI/EditorUI.cpp:300–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 if (bCompact || Subtitle == nullptr || Subtitle[0] == '\0')
299 {
300 ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + (Height - ImGui::GetFontSize()) * 0.5f));
301 ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextPrimary());
302 ImGui::TextUnformatted(Title);
303 ImGui::PopStyleColor();
304 if (Subtitle && Subtitle[0])
305 {
306 ImGui::SameLine(0.0f, 12.0f);
307 ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextDim());
308 ImGui::TextUnformatted(Subtitle);
309 ImGui::PopStyleColor();
310 }
311 }
312 else
313 {
314 ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + 7.0f));
315 ImGuiX::Font::PushFont(ImGuiX::Font::EFont::SmallBold);
316 ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextPrimary());
317 ImGui::TextUnformatted(Title);
318 ImGui::PopStyleColor();
319 ImGuiX::Font::PopFont();
320
321 ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + 27.0f));
322 ImGuiX::Font::PushFont(ImGuiX::Font::EFont::Tiny);
323 ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextDim());
324 ImGui::TextUnformatted(Subtitle);
325 ImGui::PopStyleColor();
326 ImGuiX::Font::PopFont();
327 }

Callers 2

NewProjectDialogMethod · 0.85
OnProjectLoadedMethod · 0.85

Calls 8

erase_ifFunction · 0.50
emptyMethod · 0.45
findMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45
SaveSettingsMethod · 0.45

Tested by

no test coverage detected