Prechádzať zdrojové kódy

Merge pull request #422 from AtomicGameEngine/JME-ATOMIC-FIXEXITCRASH

Make sure to return whether the click event was handled (fixes exit c…
JoshEngebretson 10 rokov pred
rodič
commit
4331bd37f1

+ 2 - 3
Script/AtomicEditor/ui/ScriptWidget.ts

@@ -25,12 +25,11 @@ class ScriptWidget extends Atomic.UIWidget {
 
     }
 
-    handleWidgetEvent(ev: Atomic.UIWidgetEvent): void {
+    handleWidgetEvent(ev: Atomic.UIWidgetEvent): boolean {
 
         if (ev.type == Atomic.UI_EVENT_TYPE_CLICK) {
 
-            this.onEventClick(ev.target, ev.refid);
-            return;
+            return this.onEventClick(ev.target, ev.refid);
 
         }
 

+ 3 - 1
Script/AtomicEditor/ui/frames/inspector/AssemblyInspector.ts

@@ -19,7 +19,9 @@ class AssemblyInspector extends InspectorWidget {
 
     }
 
-    handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
+    handleWidgetEvent(ev: Atomic.UIWidgetEvent):boolean {
+
+      return false;
 
     }
 

+ 3 - 1
Script/AtomicEditor/ui/frames/inspector/InspectorWidget.ts

@@ -133,7 +133,9 @@ class InspectorWidget extends ScriptWidget {
 
     }
 
-    handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
+    handleWidgetEvent(ev: Atomic.UIWidgetEvent):boolean {
+
+      return false;
 
     }
 

+ 3 - 1
Script/AtomicEditor/ui/frames/inspector/ModelInspector.ts

@@ -19,7 +19,9 @@ class ModelInspector extends InspectorWidget {
 
     }
 
-    handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
+    handleWidgetEvent(ev: Atomic.UIWidgetEvent):boolean {
+
+      return false;
 
     }
 

+ 3 - 1
Script/AtomicEditor/ui/frames/inspector/PrefabInspector.ts

@@ -22,7 +22,9 @@ class PrefabInspector extends InspectorWidget {
 
     }
 
-    handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
+    handleWidgetEvent(ev: Atomic.UIWidgetEvent):boolean {
+
+      return false;
 
     }