From b1e3cb8431d219ccc1f67c8813f152dc1d222be1 Mon Sep 17 00:00:00 2001 From: Goombert Date: Wed, 30 Dec 2020 18:04:47 -0500 Subject: [PATCH] blargh --- Editors/SpriteEditor.cpp | 2 +- Editors/SpriteEditor.ui | 127 ++++++++++++++++++++++++--------------- 2 files changed, 78 insertions(+), 51 deletions(-) diff --git a/Editors/SpriteEditor.cpp b/Editors/SpriteEditor.cpp index c704c7fd1..a4bb63323 100644 --- a/Editors/SpriteEditor.cpp +++ b/Editors/SpriteEditor.cpp @@ -33,7 +33,7 @@ SpriteEditor::SpriteEditor(MessageModel* model, QWidget* parent) _nodeMapper->addMapping(_ui->nameEdit, TreeNode::kNameFieldNumber); _resMapper->addMapping(_ui->originXSpinBox, Sprite::kOriginXFieldNumber); _resMapper->addMapping(_ui->originYSpinBox, Sprite::kOriginYFieldNumber); - _resMapper->addMapping(_ui->collisionShapeGroupBox, Sprite::kShapeFieldNumber, "currentIndex"); + _resMapper->addMapping(_ui->shapeComboBox, Sprite::kShapeFieldNumber, "currentIndex"); _resMapper->addMapping(_ui->bboxComboBox, Sprite::kBboxModeFieldNumber, "currentIndex"); _resMapper->addMapping(_ui->leftSpinBox, Sprite::kBboxLeftFieldNumber); _resMapper->addMapping(_ui->rightSpinBox, Sprite::kBboxRightFieldNumber); diff --git a/Editors/SpriteEditor.ui b/Editors/SpriteEditor.ui index 5b3777480..67ab8bd4b 100644 --- a/Editors/SpriteEditor.ui +++ b/Editors/SpriteEditor.ui @@ -89,50 +89,6 @@ 4 - - - - - 0 - 0 - - - - Collision Shape - - - - - - - Precise - - - - - Rectangle - - - - - Disk - - - - - Diamond - - - - - Polygon - - - - - - - @@ -220,7 +176,7 @@ - + @@ -229,16 +185,23 @@ - Bounding Box + Collision Mask false - + 9 - + + + + Mode + + + + @@ -257,7 +220,71 @@ - + + + + Type + + + + + + + + Precise + + + + + Rectangle + + + + + Disk + + + + + Diamond + + + + + Polygon + + + + + + + + Alpha Tolerance + + + + + + + + + 255 + + + Qt::Horizontal + + + + + + + 255 + + + + + + 0 @@ -353,7 +380,7 @@ 0 0 - 627 + 608 312