use Copy()
This commit is contained in:
@@ -140,7 +140,7 @@ void OptionRowType::Load( const CString &sType )
|
|||||||
if( SHOW_UNDERLINES )
|
if( SHOW_UNDERLINES )
|
||||||
m_UnderlineParent.Load( sType, OptionsCursor::underline );
|
m_UnderlineParent.Load( sType, OptionsCursor::underline );
|
||||||
m_textTitle.LoadFromFont( THEME->GetPathF(sType,"title") );
|
m_textTitle.LoadFromFont( THEME->GetPathF(sType,"title") );
|
||||||
//m_sprBullet.Load( THEME->GetPathG(sType,"bullet") );
|
m_sprBullet = ActorUtil::MakeActor( THEME->GetPathG(sType,"bullet") );
|
||||||
if( SHOW_OPTION_ICONS )
|
if( SHOW_OPTION_ICONS )
|
||||||
m_OptionIcon.Load( sType );
|
m_OptionIcon.Load( sType );
|
||||||
}
|
}
|
||||||
@@ -240,7 +240,7 @@ void OptionRow::InitText()
|
|||||||
m_textTitle = new BitmapText( m_pParentType->m_textTitle );
|
m_textTitle = new BitmapText( m_pParentType->m_textTitle );
|
||||||
m_Frame.AddChild( m_textTitle );
|
m_Frame.AddChild( m_textTitle );
|
||||||
|
|
||||||
m_sprBullet = ActorUtil::MakeActor( THEME->GetPathG(m_pParentType->m_sType,"bullet") );
|
m_sprBullet = m_pParentType->m_sprBullet->Copy();
|
||||||
m_sprBullet->SetDrawOrder(-1); // under title
|
m_sprBullet->SetDrawOrder(-1); // under title
|
||||||
m_Frame.AddChild( m_sprBullet );
|
m_Frame.AddChild( m_sprBullet );
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ private:
|
|||||||
|
|
||||||
BitmapText m_textItemParent;
|
BitmapText m_textItemParent;
|
||||||
OptionsCursor m_UnderlineParent;
|
OptionsCursor m_UnderlineParent;
|
||||||
//Sprite m_sprBullet;
|
Actor *m_sprBullet;
|
||||||
BitmapText m_textTitle;
|
BitmapText m_textTitle;
|
||||||
OptionIcon m_OptionIcon;
|
OptionIcon m_OptionIcon;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user