mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Removed InheritsFrom and IsTypeOrInheritsFrom, now it's contained in IsType.
Fixed IsType in cGameObjects.
This commit is contained in:
@@ -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" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user