43 TASSERT( m_aTextureSections[ i ] ==
TNULL,
"ALoadScreen is already created" );
45 TASSERT( m_aTextureSections[ i ] !=
TNULL,
"Unable to find texture section" );
52 pRootElement->GetDimensions( fWidth, fHeight );
54 m_CanvasElement.SetDimensions( fWidth, fHeight );
55 m_CanvasElement.SetColour(
TCOLOR( 0, 0, 0 ) );
56 m_CanvasElement.Hide();
58 pRootElement->AddChildTail( m_CanvasElement );
60 TFLOAT fRectPosX = fWidth * 0.1f;
65 auto pRectangle = &m_aRectangles[ i ];
67 pRectangle->SetDimensions( pTexSection->GetWidth(), pTexSection->GetHeight() );
68 pRectangle->SetTextureSection( pTexSection );
70 pRectangle->SetTransform( fRectPosX, -fHeight * 0.075f );
73 pRootElement->AddChildTail( *pRectangle );
80 m_TextBox.Create( pFont, pFont->GetTextWidth( pLoadingString, 1.0f ) );
81 m_TextBox.SetScale( 1.0f );
82 m_TextBox.SetText( pLoadingString );
84 m_TextBox.SetTransform( 0.0f, -fHeight * 0.08f );
87 pRootElement->AddChildTail( m_TextBox );