mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
Add proportionality support for GameUI panels (#35)
* Add proportionality support for GameUI panels * Add Android platform define * Fix button wrong state on fast clicking Co-authored-by: JusicP <slender87844@gmail.com>
This commit is contained in:
@@ -148,6 +148,13 @@ void CGameConsole::SetParent( int parent )
|
||||
return;
|
||||
|
||||
m_pConsole->SetParent( static_cast<vgui::VPANEL>( parent ));
|
||||
|
||||
// apply proportionality from parent
|
||||
if (vgui::ipanel()->IsProportional(static_cast<vgui::VPANEL>(parent)))
|
||||
{
|
||||
m_pConsole->SetProportional(true);
|
||||
m_pConsole->InvalidateLayout(true, true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user