diff --git a/src/Editor/WorldEditor/WEditorProperties.cpp b/src/Editor/WorldEditor/WEditorProperties.cpp
index 1dae4ab7..b0f004ad 100644
--- a/src/Editor/WorldEditor/WEditorProperties.cpp
+++ b/src/Editor/WorldEditor/WEditorProperties.cpp
@@ -8,6 +8,11 @@ WEditorProperties::WEditorProperties(QWidget *pParent /*= 0*/)
, mpDisplayNode(nullptr)
, mHasEditedName(false)
{
+ mpInstanceInfoLabel = new QLabel;
+ mpInstanceInfoLabel->setText("No selection");
+ mpInstanceInfoLayout = new QHBoxLayout;
+ mpInstanceInfoLayout->addWidget(mpInstanceInfoLabel);
+
mpActiveCheckBox = new QCheckBox;
mpActiveCheckBox->setToolTip("Active");
mpInstanceNameLineEdit = new QLineEdit;
@@ -26,6 +31,7 @@ WEditorProperties::WEditorProperties(QWidget *pParent /*= 0*/)
mpLayersLayout->addWidget(mpLayersComboBox);
mpMainLayout = new QVBoxLayout;
+ mpMainLayout->addLayout(mpInstanceInfoLayout);
mpMainLayout->addLayout(mpNameLayout);
mpMainLayout->addLayout(mpLayersLayout);
mpMainLayout->setContentsMargins(6, 6, 6, 0);
@@ -36,6 +42,7 @@ WEditorProperties::WEditorProperties(QWidget *pParent /*= 0*/)
QFont Font = font();
Font.setPointSize(10);
setFont(Font);
+ mpInstanceInfoLabel->setFont(Font);
mpInstanceNameLineEdit->setFont(Font);
mpLayersLabel->setFont(Font);
@@ -103,15 +110,29 @@ void WEditorProperties::OnSelectionModified()
mpInstanceNameLineEdit->setEnabled(false);
if (rkSelection.empty())
+ {
+ mpInstanceInfoLabel->setText("[No selection]");
mpInstanceNameLineEdit->clear();
+ }
else if (mpDisplayNode)
+ {
+ mpInstanceInfoLabel->setText("[Light]");
mpInstanceNameLineEdit->setText(TO_QSTRING(mpDisplayNode->Name()));
+ }
else
- mpInstanceNameLineEdit->setText(QString("[%1 objects selected]").arg(rkSelection.size()));
+ {
+ mpInstanceInfoLabel->setText(QString("[%1 objects selected]").arg(rkSelection.size()));
+ mpInstanceNameLineEdit->clear();
+ }
}
else
{
+ CScriptNode *pScript = static_cast(mpDisplayNode);
+ TString InstanceID = TString::HexString(pScript->Object()->InstanceID(), false, true, 8);
+ TString ObjectType = pScript->Template()->Name();
+ mpInstanceInfoLabel->setText(QString("[%1] [%2]").arg( TO_QSTRING(ObjectType) ).arg( TO_QSTRING(InstanceID) ));
+
UpdatePropertyValues();
}
diff --git a/src/Editor/WorldEditor/WEditorProperties.h b/src/Editor/WorldEditor/WEditorProperties.h
index abba88c9..50a40915 100644
--- a/src/Editor/WorldEditor/WEditorProperties.h
+++ b/src/Editor/WorldEditor/WEditorProperties.h
@@ -19,6 +19,9 @@ class WEditorProperties : public QWidget
QVBoxLayout *mpMainLayout;
+ QLabel *mpInstanceInfoLabel;
+ QHBoxLayout *mpInstanceInfoLayout;
+
QCheckBox *mpActiveCheckBox;
QLineEdit *mpInstanceNameLineEdit;
QHBoxLayout *mpNameLayout;
diff --git a/templates/Properties.xml b/templates/Properties.xml
index 7029963b..140058c0 100644
--- a/templates/Properties.xml
+++ b/templates/Properties.xml
@@ -4782,7 +4782,7 @@
-
+
@@ -7051,7 +7051,7 @@
-
+
@@ -8583,7 +8583,7 @@
-
+
@@ -10495,7 +10495,7 @@
-
+
diff --git a/templates/dkcr/MasterTemplate.xml b/templates/dkcr/MasterTemplate.xml
index 197391eb..0a365671 100644
--- a/templates/dkcr/MasterTemplate.xml
+++ b/templates/dkcr/MasterTemplate.xml
@@ -14,7 +14,7 @@
-
+
diff --git a/templates/dkcr/Script/ASAS.xml b/templates/dkcr/Script/AssignedAudioStream.xml
similarity index 98%
rename from templates/dkcr/Script/ASAS.xml
rename to templates/dkcr/Script/AssignedAudioStream.xml
index ee7ef958..50d638e1 100644
--- a/templates/dkcr/Script/ASAS.xml
+++ b/templates/dkcr/Script/AssignedAudioStream.xml
@@ -1,6 +1,6 @@
- ASAS
+ AssignedAudioStream
diff --git a/templates/dkcr/Script/SplineModifierVolume.xml b/templates/dkcr/Script/SplineModifierVolume.xml
index 61ba2623..aa25cace 100644
--- a/templates/dkcr/Script/SplineModifierVolume.xml
+++ b/templates/dkcr/Script/SplineModifierVolume.xml
@@ -17,6 +17,7 @@
enabled
- enabled
+ volume
+
diff --git a/templates/mp1/Structs/ActorParameters.xml b/templates/mp1/Structs/ActorParameters.xml
index d83172a9..08f8a2b6 100644
--- a/templates/mp1/Structs/ActorParameters.xml
+++ b/templates/mp1/Structs/ActorParameters.xml
@@ -7,10 +7,10 @@
-
-
-
-
+
+
+
+
diff --git a/templates/mp2/Structs/ActorParameters.xml b/templates/mp2/Structs/ActorParameters.xml
index 9c913176..56c0ceec 100644
--- a/templates/mp2/Structs/ActorParameters.xml
+++ b/templates/mp2/Structs/ActorParameters.xml
@@ -3,18 +3,10 @@
-
- -1
-
-
- -1
-
-
- -1
-
-
- -1
-
+
+
+
+
true
diff --git a/templates/mp2demo/Structs/ActorParameters.xml b/templates/mp2demo/Structs/ActorParameters.xml
index 14353e50..386cce7b 100644
--- a/templates/mp2demo/Structs/ActorParameters.xml
+++ b/templates/mp2demo/Structs/ActorParameters.xml
@@ -3,18 +3,10 @@
-
- -1
-
-
- -1
-
-
- -1
-
-
- -1
-
+
+
+
+
true