Exemplo n.º 1
0
void ButtonsExample::ButtonToggle() {
	// When the ToggleButton is active hide the window's titlebar.
	if( m_toggle_button->IsActive() ) {
		m_window->SetStyle( m_window->GetStyle() & ~sfg::Window::TITLEBAR );
	}
	else {
		m_window->SetStyle( m_window->GetStyle() | sfg::Window::TITLEBAR );
	}
}
		void onButtonLayerForeground()
		{
			buttonLayerAll->SetActive(false);
			buttonLayerObject->SetActive(false);
			buttonLayerAudio->SetActive(false);
			buttonLayerBackground->SetActive(false);
			buttonLayerTerrain->SetActive(false);
			if (!buttonLayerForeground->IsActive())
			{
				buttonLayerForeground->SetActive(true);
			}
		}