![]() |
DDraceNetwork Documentation
|
#include <map_grid.h>
Public Member Functions | |
| void | OnReset () override |
| void | OnRender (CUIRect View) override |
| void | SnapToGrid (vec2 &Position) const |
| int | GridLineDistance () const |
| bool | IsEnabled () const |
| void | Toggle () |
| int | Factor () const |
| void | SetFactor (int Factor) |
| void | DoSettingsPopup (vec2 Position) |
| Public Member Functions inherited from CEditorComponent | |
| void | OnInit (CEditor *pEditor) override |
| virtual void | OnMapLoad () |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual void | OnUpdate () |
| void | InitSubComponents () |
| void | RegisterSubComponent (CEditorComponent &Component) |
| Public Member Functions inherited from CEditorObject | |
| virtual | ~CEditorObject ()=default |
| CEditor * | Editor () |
| const CEditor * | Editor () const |
| IInput * | Input () |
| const IInput * | Input () const |
| IClient * | Client () |
| const IClient * | Client () const |
| CConfig * | Config () |
| const CConfig * | Config () const |
| IEngine * | Engine () |
| const IEngine * | Engine () const |
| IGraphics * | Graphics () |
| const IGraphics * | Graphics () const |
| ISound * | Sound () |
| const ISound * | Sound () const |
| ITextRender * | TextRender () |
| const ITextRender * | TextRender () const |
| IStorage * | Storage () |
| const IStorage * | Storage () const |
| CUi * | Ui () |
| const CUi * | Ui () const |
| CRenderMap * | RenderMap () |
| const CRenderMap * | RenderMap () const |
Static Private Member Functions | |
| static CUi::EPopupMenuFunctionResult | PopupGridSettings (void *pContext, CUIRect View, bool Active) |
Private Attributes | |
| bool | m_GridActive |
| int | m_GridFactor |
| SPopupMenuId | m_PopupGridSettingsId |
| void CMapGrid::DoSettingsPopup | ( | vec2 | Position | ) |
| int CMapGrid::Factor | ( | ) | const |
| int CMapGrid::GridLineDistance | ( | ) | const |
| bool CMapGrid::IsEnabled | ( | ) | const |
Returns whether the grid is rendered.
|
overridevirtual |
Reimplemented from CEditorComponent.
|
overridevirtual |
Reimplemented from CEditorComponent.
|
staticprivate |
| void CMapGrid::SetFactor | ( | int | Factor | ) |
| void CMapGrid::SnapToGrid | ( | vec2 & | Position | ) | const |
| void CMapGrid::Toggle | ( | ) |
|
private |
|
private |
|
private |