diff --git a/src/Core/Scene/CSceneNode.cpp b/src/Core/Scene/CSceneNode.cpp index 50f486cf..8783f5e9 100644 --- a/src/Core/Scene/CSceneNode.cpp +++ b/src/Core/Scene/CSceneNode.cpp @@ -11,7 +11,7 @@ #include u32 CSceneNode::smNumNodes = 0; -CColor CSceneNode::skSelectionTint((u8) 39, 154, 167, 255); +CColor CSceneNode::skSelectionTint = CColor::Integral(39, 154, 167); CSceneNode::CSceneNode(CSceneManager *pScene, CSceneNode *pParent) { diff --git a/src/Editor/INodeEditor.cpp b/src/Editor/INodeEditor.cpp index 7433d70a..e204dbef 100644 --- a/src/Editor/INodeEditor.cpp +++ b/src/Editor/INodeEditor.cpp @@ -18,10 +18,10 @@ INodeEditor::INodeEditor(QWidget *pParent) mUndoActions.push_back(pRedoAction); // Create gizmo actions - mGizmoActions.append(new QAction(QIcon(":/icons/EditorAssets/SelectMode.png"), "Select Objects", this)); - mGizmoActions.append(new QAction(QIcon(":/icons/EditorAssets/Translate.png"), "Translate", this)); - mGizmoActions.append(new QAction(QIcon(":/icons/EditorAssets/Rotate.png"), "Rotate", this)); - mGizmoActions.append(new QAction(QIcon(":/icons/EditorAssets/Scale.png"), "Scale", this)); + mGizmoActions.append(new QAction(QIcon(":/icons/SelectMode.png"), "Select Objects", this)); + mGizmoActions.append(new QAction(QIcon(":/icons/Translate.png"), "Translate", this)); + mGizmoActions.append(new QAction(QIcon(":/icons/Rotate.png"), "Rotate", this)); + mGizmoActions.append(new QAction(QIcon(":/icons/Scale.png"), "Scale", this)); mGizmoActions[0]->setShortcut(QKeySequence("Ctrl+Q")); mGizmoActions[1]->setShortcut(QKeySequence("Ctrl+W")); diff --git a/src/Editor/ModelEditor/CModelEditorWindow.cpp b/src/Editor/ModelEditor/CModelEditorWindow.cpp index e8cd6846..17b91c09 100644 --- a/src/Editor/ModelEditor/CModelEditorWindow.cpp +++ b/src/Editor/ModelEditor/CModelEditorWindow.cpp @@ -257,9 +257,9 @@ void CModelEditorWindow::SetActiveMaterial(int MatIndex) QTableWidgetItem *pItemB = new QTableWidgetItem(); if (pPass->IsEnabled()) - pItemB->setIcon(QIcon(":/icons/EditorAssets/Show.png")); + pItemB->setIcon(QIcon(":/icons/Show.png")); else - pItemB->setIcon(QIcon(":/icons/EditorAssets/Hide.png")); + pItemB->setIcon(QIcon(":/icons/Hide.png")); ui->PassTable->setItem(iPass, 0, pItemA); ui->PassTable->setItem(iPass, 1, pItemB); @@ -466,9 +466,9 @@ void CModelEditorWindow::UpdateMaterial(int ValueA, int ValueB) mpCurrentMat->Pass(ValueA)->SetEnabled(Enabled); if (Enabled) - ui->PassTable->item(ValueA, ValueB)->setIcon(QIcon(":/icons/EditorAssets/Show.png")); + ui->PassTable->item(ValueA, ValueB)->setIcon(QIcon(":/icons/Show.png")); else - ui->PassTable->item(ValueA, ValueB)->setIcon(QIcon(":/icons/EditorAssets/Hide.png")); + ui->PassTable->item(ValueA, ValueB)->setIcon(QIcon(":/icons/Hide.png")); } } @@ -778,7 +778,7 @@ void CModelEditorWindow::on_FlatPreviewButton_clicked() void CModelEditorWindow::on_ClearColorPicker_colorChanged(const QColor &Color) { - CColor NewColor((u8) Color.red(), (u8) Color.green(), (u8) Color.blue(), 255); + CColor NewColor = CColor::Integral(Color.red(), Color.green(), Color.blue(), Color.alpha()); ui->Viewport->SetClearColor(NewColor); } @@ -844,14 +844,14 @@ void CModelEditorWindow::on_CameraModeButton_clicked() if (pCam->MoveMode() == eOrbitCamera) { pCam->SetMoveMode(eFreeCamera); - ui->CameraModeButton->setIcon(QIcon(":/icons/EditorAssets/Show.png")); + ui->CameraModeButton->setIcon(QIcon(":/icons/Show.png")); ui->CameraModeButton->setToolTip(QString("Free Camera")); } else if (pCam->MoveMode() == eFreeCamera) { pCam->SetMoveMode(eOrbitCamera); - ui->CameraModeButton->setIcon(QIcon(":/icons/EditorAssets/Orbit Camera.png")); + ui->CameraModeButton->setIcon(QIcon(":/icons/Orbit Camera.png")); ui->CameraModeButton->setToolTip(QString("Orbit Camera")); CVector3f Pos = pCam->Position(); diff --git a/src/Editor/ModelEditor/CModelEditorWindow.ui b/src/Editor/ModelEditor/CModelEditorWindow.ui index 0c7509c0..21ce7c65 100644 --- a/src/Editor/ModelEditor/CModelEditorWindow.ui +++ b/src/Editor/ModelEditor/CModelEditorWindow.ui @@ -2176,7 +2176,7 @@ - :/icons/EditorAssets/GridLight.png:/icons/EditorAssets/GridLight.png + :/icons/GridLight.png:/icons/GridLight.png @@ -2208,7 +2208,7 @@ - :/icons/EditorAssets/Highlight.png:/icons/EditorAssets/Highlight.png + :/icons/Highlight.png:/icons/Highlight.png @@ -2237,7 +2237,7 @@ - :/icons/EditorAssets/Orbit Camera.png:/icons/EditorAssets/Orbit Camera.png + :/icons/Orbit Camera.png:/icons/Orbit Camera.png @@ -2282,7 +2282,7 @@ - :/icons/EditorAssets/Model Preview.png:/icons/EditorAssets/Model Preview.png + :/icons/Model Preview.png:/icons/Model Preview.png @@ -2317,7 +2317,7 @@ - :/icons/EditorAssets/Sphere Preview.png:/icons/EditorAssets/Sphere Preview.png + :/icons/Sphere Preview.png:/icons/Sphere Preview.png @@ -2352,7 +2352,7 @@ - :/icons/EditorAssets/Square Preview.png:/icons/EditorAssets/Square Preview.png + :/icons/Square Preview.png:/icons/Square Preview.png diff --git a/src/Editor/WorldEditor/CTypesInstanceModel.cpp b/src/Editor/WorldEditor/CTypesInstanceModel.cpp index dd041c3d..69b4d065 100644 --- a/src/Editor/WorldEditor/CTypesInstanceModel.cpp +++ b/src/Editor/WorldEditor/CTypesInstanceModel.cpp @@ -257,8 +257,8 @@ QVariant CTypesInstanceModel::data(const QModelIndex &index, int role) const { if (!mpScene) return QVariant::Invalid; - static QIcon Visible(":/icons/EditorAssets/Show.png"); - static QIcon Invisible(":/icons/EditorAssets/Hide.png"); + static QIcon Visible(":/icons/Show.png"); + static QIcon Invisible(":/icons/Hide.png"); // Show/Hide Node Types if (type == eNodeTypeIndex) diff --git a/src/Editor/WorldEditor/CWorldEditor.ui b/src/Editor/WorldEditor/CWorldEditor.ui index 8c651e28..bbb94610 100644 --- a/src/Editor/WorldEditor/CWorldEditor.ui +++ b/src/Editor/WorldEditor/CWorldEditor.ui @@ -342,7 +342,7 @@ QTabWidget::Rounded - 0 + 4 @@ -356,7 +356,7 @@ - :/icons/EditorAssets/Create.png:/icons/EditorAssets/Create.png + :/icons/Create.png:/icons/Create.png @@ -368,7 +368,7 @@ - :/icons/EditorAssets/Modify.png:/icons/EditorAssets/Modify.png + :/icons/Modify.png:/icons/Modify.png @@ -397,7 +397,7 @@ - :/icons/EditorAssets/Instances.png:/icons/EditorAssets/Instances.png + :/icons/Instances.png:/icons/Instances.png @@ -426,7 +426,7 @@ - :/icons/EditorAssets/Display.png:/icons/EditorAssets/Display.png + :/icons/Display.png:/icons/Display.png @@ -438,7 +438,7 @@ - :/icons/EditorAssets/World.png:/icons/EditorAssets/World.png + :/icons/World.png:/icons/World.png @@ -493,7 +493,7 @@ - :/icons/EditorAssets/Link.png:/icons/EditorAssets/Link.png + :/icons/Link.png:/icons/Link.png Link @@ -505,7 +505,7 @@ - :/icons/EditorAssets/Unlink.png:/icons/EditorAssets/Unlink.png + :/icons/Unlink.png:/icons/Unlink.png Unlink