Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddnet/ddnet
/ IsFocused
Method
IsFocused
src/game/editor/map_view.cpp:36–39 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
}
35
36
bool CMapView::IsFocused()
37
{
38
return GetWorldOffset() == (m_ProofMode.IsModeMenu() ? m_ProofMode.CurrentMenuBackgroundPosition() : vec2(0.0f, 0.0f));
39
}
40
41
void CMapView::Focus()
42
{
Callers
1
DoToolbarLayers
Method · 0.80
Calls
2
IsModeMenu
Method · 0.80
CurrentMenuBackgroundPosition
Method · 0.80
Tested by
no test coverage detected