DDraceNetwork Docs
|
#include <map_grid.h>
Public Member Functions | |
void | OnReset () override |
void | OnRender (CUIRect View) override |
void | SnapToGrid (float &x, float &y) 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 | |
virtual bool | OnInput (const IInput::CEvent &Event) override |
void | InitSubComponents () |
void | RegisterSubComponent (CEditorComponent &Component) |
Public Member Functions inherited from CEditorObject | |
virtual | ~CEditorObject ()=default |
virtual void | OnInit (CEditor *pEditor) |
virtual void | OnUpdate () |
virtual bool | OnInput (const IInput::CEvent &Event) |
virtual void | OnRender (CUIRect View) |
virtual void | OnHot () |
virtual void | OnActive () |
virtual void | OnReset () |
virtual void | OnMapLoad () |
bool | IsHot () |
void | SetHot () |
void | UnsetHot () |
bool | IsActive () |
void | SetActive () |
void | SetInactive () |
CEditor * | Editor () |
const CEditor * | Editor () const |
IInput * | Input () |
IClient * | Client () |
CConfig * | Config () |
IConsole * | Console () |
IEngine * | Engine () |
IGraphics * | Graphics () |
ISound * | Sound () |
ITextRender * | TextRender () |
IStorage * | Storage () |
CUi * | Ui () |
CRenderTools * | RenderTools () |
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 CEditorObject.
|
overridevirtual |
Reimplemented from CEditorObject.
|
staticprivate |
void CMapGrid::SetFactor | ( | int | Factor | ) |
void CMapGrid::SnapToGrid | ( | float & | x, |
float & | y | ||
) | const |
void CMapGrid::Toggle | ( | ) |
|
private |
|
private |
|
private |