mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
fix server script status event, use [ Getting status ]
This commit is contained in:
parent
00c5b6f5f4
commit
e5abd9d57d
2 changed files with 3 additions and 2 deletions
|
@ -2042,6 +2042,7 @@ var PropertiesTool = function (opts) {
|
||||||
function updateScriptStatus(info) {
|
function updateScriptStatus(info) {
|
||||||
info.type = "server_script_status";
|
info.type = "server_script_status";
|
||||||
webView.emitScriptEvent(JSON.stringify(info));
|
webView.emitScriptEvent(JSON.stringify(info));
|
||||||
|
createToolsWindow.emitScriptEvent(JSON.stringify(info));
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetScriptStatus() {
|
function resetScriptStatus() {
|
||||||
|
|
|
@ -1671,7 +1671,7 @@ function loaded() {
|
||||||
elServerScripts.addEventListener('change', createEmitTextPropertyUpdateFunction('serverScripts'));
|
elServerScripts.addEventListener('change', createEmitTextPropertyUpdateFunction('serverScripts'));
|
||||||
elServerScripts.addEventListener('change', function() {
|
elServerScripts.addEventListener('change', function() {
|
||||||
// invalidate the current status (so that same-same updates can still be observed visually)
|
// invalidate the current status (so that same-same updates can still be observed visually)
|
||||||
elServerScriptStatus.innerText = '[' + elServerScriptStatus.innerText + ']';
|
elServerScriptStatus.innerText = "[ Getting status ]";
|
||||||
});
|
});
|
||||||
|
|
||||||
elClearUserData.addEventListener("click", function() {
|
elClearUserData.addEventListener("click", function() {
|
||||||
|
@ -2145,7 +2145,7 @@ function loaded() {
|
||||||
});
|
});
|
||||||
elReloadServerScriptsButton.addEventListener("click", function() {
|
elReloadServerScriptsButton.addEventListener("click", function() {
|
||||||
// invalidate the current status (so that same-same updates can still be observed visually)
|
// invalidate the current status (so that same-same updates can still be observed visually)
|
||||||
elServerScriptStatus.innerText = '[' + elServerScriptStatus.innerText + ']';
|
elServerScriptStatus.innerText = "[ Getting status ]";
|
||||||
EventBridge.emitWebEvent(JSON.stringify({
|
EventBridge.emitWebEvent(JSON.stringify({
|
||||||
type: "action",
|
type: "action",
|
||||||
action: "reloadServerScripts"
|
action: "reloadServerScripts"
|
||||||
|
|
Loading…
Reference in a new issue