added main menus, improved shading
This commit is contained in:
@@ -25,6 +25,31 @@ void CFGUI_Widget::SetSize( uint32_t nX, uint32_t nY )
|
||||
|
||||
void CFGUI_Widget::SetParent( CFGUI_Widget *pParent )
|
||||
{
|
||||
|
||||
m_pParent = pParent;
|
||||
}
|
||||
|
||||
void CFGUI_Widget::ComputeOffset( void )
|
||||
{
|
||||
CFGUI_Widget *pParent = m_pParent;
|
||||
while (pParent)
|
||||
{
|
||||
IFGUI::AddOffset(pParent->m_iPosition[0], pParent->m_iPosition[1]);
|
||||
pParent = pParent->m_pParent;
|
||||
};
|
||||
}
|
||||
bool CFGUI_Widget::IsVisible( )
|
||||
{
|
||||
CFGUI_Widget *pWidget = this;
|
||||
while (pWidget)
|
||||
{
|
||||
if (!pWidget->m_bIsVisible)
|
||||
return false;
|
||||
pWidget = pWidget->m_pParent;
|
||||
};
|
||||
return true;
|
||||
};
|
||||
|
||||
void CFGUI_Widget::SetVisibility( bool bValue )
|
||||
{
|
||||
m_bIsVisible = bValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user