Mario editor: add + button for columns
This commit is contained in:
parent
7b0f72e273
commit
c383654349
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user