Explorar el Código

added more info to debugactor

dmuratshin hace 9 años
padre
commit
2e2a73a9cc
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. 6 0
      oxygine/src/Actor.cpp
  2. 4 2
      oxygine/src/Actor.h

+ 6 - 0
oxygine/src/Actor.cpp

@@ -156,6 +156,12 @@ namespace oxygine
         if (!getVisible())
         if (!getVisible())
             stream << " invisible";
             stream << " invisible";
 
 
+        if (!getTouchEnabled())
+            stream << " touchEnabled=false";
+
+        if (!getTouchChildrenEnabled())
+            stream << " touchChildrenEnabled=false";
+
         if (getAlpha() != 255)
         if (getAlpha() != 255)
             stream << " alpha=" << (int)getAlpha();
             stream << " alpha=" << (int)getAlpha();
 
 

+ 4 - 2
oxygine/src/Actor.h

@@ -142,8 +142,10 @@ namespace oxygine
         pointer_index       getPressed() const;
         pointer_index       getPressed() const;
         /**returns touch id if actor is moused overred*/
         /**returns touch id if actor is moused overred*/
         pointer_index       getOvered() const;
         pointer_index       getOvered() const;
-        bool                getInputEnabled() const {return (_flags & flag_touchEnabled) != 0;}
-        bool                getInputChildrenEnabled() const {return (_flags & flag_touchChildrenEnabled) != 0;}
+        bool                getInputEnabled() const { return (_flags & flag_touchEnabled) != 0; }
+        bool                getInputChildrenEnabled() const { return (_flags & flag_touchChildrenEnabled) != 0; }
+        bool                getTouchEnabled() const { return (_flags & flag_touchEnabled) != 0; }
+        bool                getTouchChildrenEnabled() const { return (_flags & flag_touchChildrenEnabled) != 0; }
         bool                getChildrenRelative() const {return (_flags & flag_childrenRelative) != 0;;}
         bool                getChildrenRelative() const {return (_flags & flag_childrenRelative) != 0;;}
         UpdateCallback      getCallbackDoUpdate() const {return _cbDoUpdate;}
         UpdateCallback      getCallbackDoUpdate() const {return _cbDoUpdate;}
         Material*           getMaterial() { return _material; }
         Material*           getMaterial() { return _material; }