Skip to content

Commit

Permalink
Show Sprite Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jowin202 committed Jun 8, 2024
1 parent fc37a29 commit b096715
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 185 deletions.
4 changes: 4 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ MainWindow::MainWindow(QWidget *parent)
this->opt.show_grid_lines = val;
this->ui->graphicsView->scene()->update();
});
connect(this->ui->check_sprite_numbers, &QCheckBox::toggled, [=](bool val) {
this->opt.show_numbers = val;
this->ui->graphicsView->scene()->update();
});
connect(this->ui->spin_horizontal_spacing, &QSpinBox::valueChanged, [=](int val) {
this->opt.sprite_spacing_x = val;
this->ui->graphicsView->redraw();
Expand Down
Loading

0 comments on commit b096715

Please sign in to comment.