mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 23:03:56 -07:00
# More useful environment (water, lighting) editing (now saved into the map files). Fixed no-PCH a bit. This was SVN commit r4002.
30 lines
557 B
C++
30 lines
557 B
C++
#include "stdafx.h"
|
|
|
|
#include "Sidebar.h"
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(Sidebar, wxPanel)
|
|
|
|
Sidebar::Sidebar(wxWindow* sidebarContainer, wxWindow* WXUNUSED(bottomBarContainer))
|
|
: wxPanel(sidebarContainer), m_BottomBar(NULL), m_AlreadyDisplayed(false)
|
|
{
|
|
m_MainSizer = new wxBoxSizer(wxVERTICAL);
|
|
SetSizer(m_MainSizer);
|
|
}
|
|
|
|
void Sidebar::OnSwitchAway()
|
|
{
|
|
if (m_BottomBar)
|
|
m_BottomBar->Show(false);
|
|
}
|
|
|
|
void Sidebar::OnSwitchTo()
|
|
{
|
|
if (! m_AlreadyDisplayed)
|
|
{
|
|
m_AlreadyDisplayed = true;
|
|
OnFirstDisplay();
|
|
}
|
|
|
|
if (m_BottomBar)
|
|
m_BottomBar->Show(true);
|
|
}
|