1#ifndef GAME_EDITOR_MAP_GRID_H
2#define GAME_EDITOR_MAP_GRID_H
Definition: component.h:9
bool m_GridActive
Definition: map_grid.h:30
void OnRender(CUIRect View) override
Definition: map_grid.cpp:16
static CUi::EPopupMenuFunctionResult PopupGridSettings(void *pContext, CUIRect View, bool Active)
Definition: map_grid.cpp:116
bool IsEnabled() const
Definition: map_grid.cpp:91
void OnReset() override
Definition: map_grid.cpp:10
int m_GridFactor
Definition: map_grid.h:31
int GridLineDistance() const
Definition: map_grid.cpp:64
void Toggle()
Definition: map_grid.cpp:96
void SetFactor(int Factor)
Definition: map_grid.cpp:106
void SnapToGrid(float &x, float &y) const
Definition: map_grid.cpp:84
SPopupMenuId m_PopupGridSettingsId
Definition: map_grid.h:33
void DoSettingsPopup(vec2 Position)
Definition: map_grid.cpp:111
int Factor() const
Definition: map_grid.cpp:101
EPopupMenuFunctionResult
Definition: ui.h:289