Advertisement
Vultraz

Untitled

Oct 19th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. struct dialog_stack_helper
  2. {
  3.     dialog_stack_helper::dialog_stack_helper()
  4.         : helper_pos_(open_dialog_stack.end() - 1)
  5.     {
  6.     }
  7.  
  8.     std::vector::iterator helper_pos_;
  9. };
  10.  
  11. static std::vector<dialog_stack_helper> open_dialog_stack;
  12.  
  13. bool is_in_dialog()
  14. {
  15.     //return event::handler && !event::handler->dispatchers_.empty();
  16.     return !open_dialog_stack.empty();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement