|
@@ -4268,16 +4268,16 @@ var INSPECTOR;
|
|
title.appendChild(versionSpan);
|
|
title.appendChild(versionSpan);
|
|
// Environment block
|
|
// Environment block
|
|
title = INSPECTOR.Helpers.CreateDiv('tool-title2', _this._panel);
|
|
title = INSPECTOR.Helpers.CreateDiv('tool-title2', _this._panel);
|
|
- title.textContent = "Environment";
|
|
|
|
|
|
+ title.textContent = "Environment Texture (.dds, .env)";
|
|
{
|
|
{
|
|
- var elemLabel = _this._createToolLabel("Load Environment Texture (.dds, .env) ", _this._panel);
|
|
|
|
- elemLabel.className = "tool-label-line";
|
|
|
|
var errorElemm_1 = INSPECTOR.Inspector.DOCUMENT.createElement('div');
|
|
var errorElemm_1 = INSPECTOR.Inspector.DOCUMENT.createElement('div');
|
|
errorElemm_1.className = "tool-label-error";
|
|
errorElemm_1.className = "tool-label-error";
|
|
errorElemm_1.style.display = "none";
|
|
errorElemm_1.style.display = "none";
|
|
|
|
+ var elemValue = INSPECTOR.Helpers.CreateDiv(null, _this._panel);
|
|
var inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
var inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
- inputElement.className = "tool-label-line";
|
|
|
|
|
|
+ inputElement.className = "tool-input";
|
|
inputElement.type = "file";
|
|
inputElement.type = "file";
|
|
|
|
+ inputElement.accept = ".dds, .env";
|
|
inputElement.onchange = function (event) {
|
|
inputElement.onchange = function (event) {
|
|
var files = event.target.files;
|
|
var files = event.target.files;
|
|
var file = null;
|
|
var file = null;
|
|
@@ -4315,11 +4315,11 @@ var INSPECTOR;
|
|
}
|
|
}
|
|
}, undefined, true);
|
|
}, undefined, true);
|
|
};
|
|
};
|
|
- _this._panel.appendChild(inputElement);
|
|
|
|
- _this._createToolLabel("Compress to .env", _this._panel);
|
|
|
|
- var elemValue = INSPECTOR.Helpers.CreateDiv('tool-value', _this._panel);
|
|
|
|
|
|
+ elemValue.appendChild(inputElement);
|
|
|
|
+ elemValue = INSPECTOR.Helpers.CreateDiv(null, _this._panel);
|
|
inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
- inputElement.value = "Save";
|
|
|
|
|
|
+ inputElement.value = "Compress current texture to .env";
|
|
|
|
+ inputElement.className = "tool-input";
|
|
inputElement.type = "button";
|
|
inputElement.type = "button";
|
|
inputElement.onclick = function () {
|
|
inputElement.onclick = function () {
|
|
if (!_this._scene.environmentTexture) {
|
|
if (!_this._scene.environmentTexture) {
|
|
@@ -4350,11 +4350,11 @@ var INSPECTOR;
|
|
title = INSPECTOR.Helpers.CreateDiv('tool-title2', _this._panel);
|
|
title = INSPECTOR.Helpers.CreateDiv('tool-title2', _this._panel);
|
|
title.textContent = "Capture";
|
|
title.textContent = "Capture";
|
|
{
|
|
{
|
|
- _this._createToolLabel("Screenshot", _this._panel);
|
|
|
|
- var elemValue = INSPECTOR.Helpers.CreateDiv('tool-value', _this._panel);
|
|
|
|
|
|
+ var elemValue = INSPECTOR.Helpers.CreateDiv(null, _this._panel);
|
|
var inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
var inputElement = INSPECTOR.Inspector.DOCUMENT.createElement('input');
|
|
- inputElement.value = "Capture";
|
|
|
|
|
|
+ inputElement.value = "Take Screenshot";
|
|
inputElement.type = "button";
|
|
inputElement.type = "button";
|
|
|
|
+ inputElement.className = "tool-input";
|
|
inputElement.onclick = function () {
|
|
inputElement.onclick = function () {
|
|
if (_this._scene.activeCamera) {
|
|
if (_this._scene.activeCamera) {
|
|
BABYLON.Tools.CreateScreenshot(_this._scene.getEngine(), _this._scene.activeCamera, { precision: 0.5 });
|
|
BABYLON.Tools.CreateScreenshot(_this._scene.getEngine(), _this._scene.activeCamera, { precision: 0.5 });
|
|
@@ -4364,11 +4364,6 @@ var INSPECTOR;
|
|
}
|
|
}
|
|
return _this;
|
|
return _this;
|
|
}
|
|
}
|
|
- ToolsTab.prototype._createToolLabel = function (content, parent) {
|
|
|
|
- var elem = INSPECTOR.Helpers.CreateDiv('tool-label', parent);
|
|
|
|
- elem.textContent = content;
|
|
|
|
- return elem;
|
|
|
|
- };
|
|
|
|
ToolsTab.prototype.dispose = function () {
|
|
ToolsTab.prototype.dispose = function () {
|
|
// Nothing to dispose
|
|
// Nothing to dispose
|
|
};
|
|
};
|