瀏覽代碼

Merge pull request #173 from blackberry-gaming/next-cculy

Minor fix to allow disabling of forms from within a UI callback.
Sean Paul Taylor 14 年之前
父節點
當前提交
60471f60e4
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gameplay/src/Container.cpp

+ 5 - 0
gameplay/src/Container.cpp

@@ -297,6 +297,11 @@ namespace gameplay
             }
         }
 
+        if (!isEnabled())
+        {
+            return false;
+        }
+
         switch (evt)
         {
         case Touch::TOUCH_PRESS: