MCPcopy Create free account
hub / github.com/chrxh/alien / drawTitle

Method drawTitle

source/Gui/GettingStartedWindow.cpp:408–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void GettingStartedWindow::drawTitle()
409{
410 ImGui::PushStyleColor(ImGuiCol_Text, (ImU32)Const::HeadlineColor);
411
412 ImGui::PushFont(StyleRepository::get().getMediumFont());
413 ImGui::Text("What is ");
414 ImGui::PopFont();
415
416 ImGui::SameLine();
417 AlienImGui::NegativeSpacing();
418 ImGui::PushFont(StyleRepository::get().getMediumBoldFont());
419 ImGui::Text("A");
420 ImGui::PopFont();
421
422 ImGui::SameLine();
423 AlienImGui::NegativeSpacing();
424 AlienImGui::NegativeSpacing();
425 ImGui::PushFont(StyleRepository::get().getMediumFont());
426 ImGui::Text("rtificial ");
427 ImGui::PopFont();
428
429 ImGui::SameLine();
430 AlienImGui::NegativeSpacing();
431 ImGui::PushFont(StyleRepository::get().getMediumBoldFont());
432 ImGui::Text("LI");
433 ImGui::PopFont();
434
435 ImGui::SameLine();
436 AlienImGui::NegativeSpacing();
437 AlienImGui::NegativeSpacing();
438 ImGui::PushFont(StyleRepository::get().getMediumFont());
439 ImGui::Text("fe ");
440 ImGui::PopFont();
441
442 ImGui::SameLine();
443 AlienImGui::NegativeSpacing();
444 ImGui::PushFont(StyleRepository::get().getMediumBoldFont());
445 ImGui::Text("EN");
446 ImGui::PopFont();
447
448 ImGui::SameLine();
449 AlienImGui::NegativeSpacing();
450 AlienImGui::NegativeSpacing();
451 ImGui::PushFont(StyleRepository::get().getMediumFont());
452 ImGui::Text("vironment ?");
453 ImGui::PopFont();
454
455 ImGui::PopStyleColor();
456 AlienImGui::Separator();
457}
458
459void GettingStartedWindow::drawHeading1(std::string const& text)
460{

Callers

nothing calls this directly

Calls 2

getMediumFontMethod · 0.80
getMediumBoldFontMethod · 0.80

Tested by

no test coverage detected