コード例 #1
0
void LayersWindow::OnMoveLayerDownUI(wxUpdateUIEvent& event)
{
	Map* map = Editor->GetActiveMap();
	event.Enable( map && map->GetActiveLayerIndex() < map->NumLayers() - 1 );
}
コード例 #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 );
}