mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 18:38:24 +02:00
Add id to properties window
This commit is contained in:
parent
d1f5bf2e3c
commit
1a90a81037
3 changed files with 23 additions and 0 deletions
|
@ -1003,6 +1003,7 @@ PropertiesTool = function(opts) {
|
||||||
type: 'update',
|
type: 'update',
|
||||||
};
|
};
|
||||||
if (selectionManager.hasSelection()) {
|
if (selectionManager.hasSelection()) {
|
||||||
|
data.id = selectionManager.selections[0].id;
|
||||||
data.properties = Entities.getEntityProperties(selectionManager.selections[0]);
|
data.properties = Entities.getEntityProperties(selectionManager.selections[0]);
|
||||||
data.properties.rotation = Quat.safeEulerAngles(data.properties.rotation);
|
data.properties.rotation = Quat.safeEulerAngles(data.properties.rotation);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function loaded() {
|
function loaded() {
|
||||||
|
var elID = document.getElementById("property-id");
|
||||||
var elType = document.getElementById("property-type");
|
var elType = document.getElementById("property-type");
|
||||||
var elLocked = document.getElementById("property-locked");
|
var elLocked = document.getElementById("property-locked");
|
||||||
var elVisible = document.getElementById("property-visible");
|
var elVisible = document.getElementById("property-visible");
|
||||||
|
@ -160,6 +161,8 @@
|
||||||
} else {
|
} else {
|
||||||
var properties = data.properties;
|
var properties = data.properties;
|
||||||
|
|
||||||
|
elID.innerHTML = data.id;
|
||||||
|
|
||||||
elType.innerHTML = properties.type;
|
elType.innerHTML = properties.type;
|
||||||
|
|
||||||
elLocked.checked = properties.locked;
|
elLocked.checked = properties.locked;
|
||||||
|
@ -451,6 +454,14 @@
|
||||||
<col id="col-label">
|
<col id="col-label">
|
||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td class="label">
|
||||||
|
ID
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<label id="property-id" class="selectable">asdf</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">
|
<td class="label">
|
||||||
Type
|
Type
|
||||||
|
|
|
@ -17,6 +17,17 @@ body {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selectable {
|
||||||
|
-webkit-touch-callout: text;
|
||||||
|
-webkit-user-select: text;
|
||||||
|
-khtml-user-select: text;
|
||||||
|
-moz-user-select: text;
|
||||||
|
-ms-user-select: text;
|
||||||
|
user-select: text;
|
||||||
|
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
.color-box {
|
.color-box {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
|
|
Loading…
Reference in a new issue