mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +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) {
|
||||
info.type = "server_script_status";
|
||||
webView.emitScriptEvent(JSON.stringify(info));
|
||||
createToolsWindow.emitScriptEvent(JSON.stringify(info));
|
||||
}
|
||||
|
||||
function resetScriptStatus() {
|
||||
|
|
|
@ -1671,7 +1671,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 = '[' + elServerScriptStatus.innerText + ']';
|
||||
elServerScriptStatus.innerText = "[ Getting status ]";
|
||||
});
|
||||
|
||||
elClearUserData.addEventListener("click", function() {
|
||||
|
@ -2145,7 +2145,7 @@ function loaded() {
|
|||
});
|
||||
elReloadServerScriptsButton.addEventListener("click", function() {
|
||||
// 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({
|
||||
type: "action",
|
||||
action: "reloadServerScripts"
|
||||
|
|
Loading…
Reference in a new issue