MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnMouse

Method OnMouse

ogsr_engine/xrGame/ui/UIInventoryWnd.cpp:273–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273bool 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
292void CUIInventoryWnd::Draw() { CUIWindow::Draw(); }
293

Callers

nothing calls this directly

Calls 2

IsShownMethod · 0.80
HideMethod · 0.45

Tested by

no test coverage detected