[email protected] 8 years ago
parent
commit
8ea46c150f
2 changed files with 12 additions and 0 deletions
  1. 10 0
      src/flow/flow.cpp
  2. 2 0
      src/flow/flow.h

+ 10 - 0
src/flow/flow.cpp

@@ -156,6 +156,16 @@ namespace oxygine
         }
 
 
+        void Flow::finishDialogs()
+        {
+            for (auto it = scenes.rbegin(); it != scenes.rend(); ++it)
+            {
+                spScene scene = *it;
+                if (scene->isDialog())
+                    scene->finishNoResult();
+            }
+        }
+
         void Flow::phaseBegin(spScene current, spScene next, bool back)
         {
             _back = back;

+ 2 - 0
src/flow/flow.h

@@ -61,6 +61,8 @@ namespace oxygine
             void lockBlockedTouches();
             void unlockBlockedTouches();
 
+            void finishDialogs();
+
             std::list<spScene> scenes;
             std::list<spScene> scenes2show;