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