Esempio n. 1
0
void LayersWindow::OnMoveLayerDownUI(wxUpdateUIEvent& event)
{
	Map* map = Editor->GetActiveMap();
	event.Enable( map && map->GetActiveLayerIndex() < map->NumLayers() - 1 );
}
Esempio n. 2
0
void LayersWindow::OnMoveLayerUpUI(wxUpdateUIEvent& event)
{
	Map* map = Editor->GetActiveMap();
	//event.Enable( map != 0 && map->NumLayers() < Map::MaxLayers );
	event.Enable( map && map->GetActiveLayerIndex() > 0 );
}