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

Method OnDrawUI

ogsr_engine/xrGame/Weapon.cpp:1959–1969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957}
1958
1959void CWeapon::OnDrawUI()
1960{
1961 if (IsZoomed() && ZoomHideCrosshair())
1962 {
1963 if (UseScopeTexture() && !IsRotatingToZoom())
1964 {
1965 m_UIScope->Update();
1966 m_UIScope->Draw();
1967 }
1968 }
1969}
1970
1971bool CWeapon::IsHudModeNow() { return (HudItemData() != nullptr); }
1972

Callers 1

RenderMethod · 0.45

Calls 2

UpdateMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected