Removed InheritsFrom and IsTypeOrInheritsFrom, now it's contained in IsType.

Fixed IsType in cGameObjects.
This commit is contained in:
spartanj@gmail.com
2011-08-22 22:41:56 -03:00
parent 4e70877ef1
commit d2c002f992
72 changed files with 413 additions and 115 deletions

View File

@@ -27,8 +27,6 @@ cUIListBox::cUIListBox( cUIListBox::CreateParams& Params ) :
mVisibleFirst(0),
mVisibleLast(0)
{
mType = UI_TYPE_LISTBOX;
if ( NULL == Params.Font && NULL != cUIThemeManager::instance()->DefaultFont() )
mFont = cUIThemeManager::instance()->DefaultFont();
@@ -78,6 +76,14 @@ cUIListBox::cUIListBox( cUIListBox::CreateParams& Params ) :
cUIListBox::~cUIListBox() {
}
Uint32 cUIListBox::Type() const {
return UI_TYPE_LISTBOX;
}
bool cUIListBox::IsType( const Uint32& type ) const {
return cUIListBox::Type() == type ? true : cUIComplexControl::IsType( type );
}
void cUIListBox::SetTheme( cUITheme * Theme ) {
cUIControl::SetTheme( Theme, "listbox" );