Ver Fonte

Fixed menu item staying pressed and performing its action later if cursor was moved away from it with left button pressed.

Lasse Öörni há 12 anos atrás
pai
commit
7402da1ebd
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Engine/UI/Menu.cpp

+ 2 - 0
Engine/UI/Menu.cpp

@@ -71,6 +71,8 @@ void Menu::RegisterObject(Context* context)
 
 
 void Menu::Update(float timeStep)
 void Menu::Update(float timeStep)
 {
 {
+    Button::Update(timeStep);
+    
     if (popup_ && showPopup_)
     if (popup_ && showPopup_)
     {
     {
         const Vector<SharedPtr<UIElement> >& children = popup_->GetChildren();
         const Vector<SharedPtr<UIElement> >& children = popup_->GetChildren();