Add reticule-styled cursors
This commit is contained in:
parent
f5f763d32c
commit
5b96af47db
5 changed files with 6 additions and 3 deletions
|
@ -904,7 +904,7 @@ void MainWindow::on_toolButton_deleteObject_clicked()
|
|||
void MainWindow::on_toolButton_Paint_clicked()
|
||||
{
|
||||
editor->map_edit_mode = "paint";
|
||||
editor->cursor = QCursor(QPixmap(":/icons/pencil.ico"), 0, 14);
|
||||
editor->cursor = QCursor(QPixmap(":/icons/pencil_cursor.ico"), 10, 10);
|
||||
|
||||
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
|
@ -928,7 +928,7 @@ void MainWindow::on_toolButton_Select_clicked()
|
|||
void MainWindow::on_toolButton_Fill_clicked()
|
||||
{
|
||||
editor->map_edit_mode = "fill";
|
||||
editor->cursor = QCursor(QPixmap(":/icons/fill_color.ico"), 12, 10);
|
||||
editor->cursor = QCursor(QPixmap(":/icons/fill_color_cursor.ico"), 10, 10);
|
||||
|
||||
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
|
@ -940,7 +940,7 @@ void MainWindow::on_toolButton_Fill_clicked()
|
|||
void MainWindow::on_toolButton_Dropper_clicked()
|
||||
{
|
||||
editor->map_edit_mode = "pick";
|
||||
editor->cursor = QCursor(QPixmap(":/icons/pipette.ico"), 1, 14);
|
||||
editor->cursor = QCursor(QPixmap(":/icons/pipette_cursor.ico"), 10, 10);
|
||||
|
||||
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
|
|
BIN
resources/icons/fill_color_cursor.ico
Normal file
BIN
resources/icons/fill_color_cursor.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/icons/pencil_cursor.ico
Normal file
BIN
resources/icons/pencil_cursor.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/icons/pipette_cursor.ico
Normal file
BIN
resources/icons/pipette_cursor.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -17,5 +17,8 @@
|
|||
<file>icons/delete.ico</file>
|
||||
<file>icons/viewsprites.ico</file>
|
||||
<file>images/collisions.png</file>
|
||||
<file>icons/fill_color_cursor.ico</file>
|
||||
<file>icons/pencil_cursor.ico</file>
|
||||
<file>icons/pipette_cursor.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in a new issue