diff --git a/mario/editor.cpp b/mario/editor.cpp index 158113c..413500c 100644 --- a/mario/editor.cpp +++ b/mario/editor.cpp @@ -117,7 +117,11 @@ void pollEvents( SDLPP::Scene &scene ) { current_start_index -= 1; scene.moveEverything(BLOCK_SIZE, 0); } - if(previous_selected_flags == current_selected_flags && MouseVisitor::moveMapRight(current_selected_flags) && current_start_index != current_max_index) { + if(previous_selected_flags == current_selected_flags && MouseVisitor::moveMapRight(current_selected_flags)) { + if(current_start_index == current_max_index) { + objects.resize(current_max_index + 18 + 1); + current_max_index++; + } current_start_index += 1; scene.moveEverything(-BLOCK_SIZE,0); } @@ -294,9 +298,11 @@ int main() { left->setTextColor(font, "#000000", "#282828", 0.05); } if(current_start_index == current_max_index) { - right->setTextColor(font, "#CCCCCC", "#CCCCCC", 0.05); + right->setTextColor(font, "#00FF00", "#000000", 0.1); + right->changeText("+"); } else { right->setTextColor(font, "#000000", "#282828", 0.05); + right->changeText(">"); } if(update_size) { scene->updateSizeAndPosition();