mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
CR changes
This commit is contained in:
parent
deee73f14d
commit
d88615219c
2 changed files with 6 additions and 5 deletions
|
@ -2040,8 +2040,9 @@ var PropertiesTool = function (opts) {
|
|||
that.setVisible(false);
|
||||
|
||||
function emitScriptEvent(data) {
|
||||
webView.emitScriptEvent(JSON.stringify(data));
|
||||
createToolsWindow.emitScriptEvent(JSON.stringify(data));
|
||||
var dataString = JSON.stringify(data);
|
||||
webView.emitScriptEvent(dataString);
|
||||
createToolsWindow.emitScriptEvent(dataString);
|
||||
}
|
||||
|
||||
function updateScriptStatus(info) {
|
||||
|
|
|
@ -36,7 +36,7 @@ var lastEntityID = null;
|
|||
|
||||
var MATERIAL_PREFIX_STRING = "mat::";
|
||||
|
||||
var INVALIDATE_SCRIPT_STATUS = "[ Fetching status ]";
|
||||
var PENDING_SCRIPT_STATUS = "[ Fetching status ]";
|
||||
|
||||
function debugPrint(message) {
|
||||
EventBridge.emitWebEvent(
|
||||
|
@ -1673,7 +1673,7 @@ function loaded() {
|
|||
elServerScripts.addEventListener('change', createEmitTextPropertyUpdateFunction('serverScripts'));
|
||||
elServerScripts.addEventListener('change', function() {
|
||||
// invalidate the current status (so that same-same updates can still be observed visually)
|
||||
elServerScriptStatus.innerText = INVALIDATE_SCRIPT_STATUS;
|
||||
elServerScriptStatus.innerText = PENDING_SCRIPT_STATUS;
|
||||
});
|
||||
|
||||
elClearUserData.addEventListener("click", function() {
|
||||
|
@ -2147,7 +2147,7 @@ function loaded() {
|
|||
});
|
||||
elReloadServerScriptsButton.addEventListener("click", function() {
|
||||
// invalidate the current status (so that same-same updates can still be observed visually)
|
||||
elServerScriptStatus.innerText = INVALIDATE_SCRIPT_STATUS;
|
||||
elServerScriptStatus.innerText = PENDING_SCRIPT_STATUS;
|
||||
EventBridge.emitWebEvent(JSON.stringify({
|
||||
type: "action",
|
||||
action: "reloadServerScripts"
|
||||
|
|
Loading…
Reference in a new issue