MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / IntroduceChapterView

Method IntroduceChapterView

src/ui/IntroduceChapterView.cpp:8–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <audio/AudioWorld.h>
7
8UI::IntroduceChapterView::IntroduceChapterView(Engine::BaseEngine& e)
9 : View(e)
10{
11 m_pImageView = new ImageView(e);
12 addChild(m_pImageView);
13 m_pImageView->setRelativeSize(false);
14 m_pImageView->setSize(Math::float2(1.0f, 1.0f));
15 m_pImageView->setTranslation(Math::float2(.0f, .0f));
16
17 m_pTitleTextView = new TextView(e);
18 addChild(m_pTitleTextView);
19 m_pTitleTextView->setFont(DEFAULT_FONT_LARGE);
20 m_pTitleTextView->setAlignment(A_TopCenter);
21 m_pTitleTextView->setTranslation(Math::float2(.5f, .085f));
22
23 m_pSubtitleTextView = new TextView(e);
24 addChild(m_pSubtitleTextView);
25 m_pSubtitleTextView->setFont(DEFAULT_FONT);
26 m_pSubtitleTextView->setAlignment(A_TopCenter);
27 m_pSubtitleTextView->setTranslation(Math::float2(.5f, .885f));
28
29 m_QueueStatus = QueueStatus::Empty;
30}
31
32UI::IntroduceChapterView::~IntroduceChapterView()
33{

Callers

nothing calls this directly

Calls 5

setRelativeSizeMethod · 0.80
setSizeMethod · 0.80
setTranslationMethod · 0.80
setFontMethod · 0.80
setAlignmentMethod · 0.80

Tested by

no test coverage detected