| 271 | } |
| 272 | |
| 273 | bool CUIInventoryWnd::OnMouse(float x, float y, EUIMessages mouse_action) |
| 274 | { |
| 275 | if (m_b_need_reinit) |
| 276 | return true; |
| 277 | |
| 278 | if (mouse_action == WINDOW_RBUTTON_DOWN) |
| 279 | { |
| 280 | if (UIPropertiesBox.IsShown()) |
| 281 | { |
| 282 | UIPropertiesBox.Hide(); |
| 283 | return true; |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | CUIWindow::OnMouse(x, y, mouse_action); |
| 288 | |
| 289 | return true; // always returns true, because ::StopAnyMove() == true; |
| 290 | } |
| 291 | |
| 292 | void CUIInventoryWnd::Draw() { CUIWindow::Draw(); } |
| 293 |