diff options
| author | SushiTee <weichel.sascha@xxx.xx> | 2011-07-10 22:16:16 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-07-11 12:03:16 +0200 |
| commit | 6cd2ab38878cda02a6ff18bc87d8a694e43781bb (patch) | |
| tree | 6035a72d1817370616471fd6ece39e52df30f32a /src/game/editor/editor.h | |
| parent | f4ce34f01c87e4edbfc085ea60ccec1e3b386f60 (diff) | |
| download | zcatch-6cd2ab38878cda02a6ff18bc87d8a694e43781bb.tar.gz zcatch-6cd2ab38878cda02a6ff18bc87d8a694e43781bb.zip | |
added grid to editor
Diffstat (limited to 'src/game/editor/editor.h')
| -rw-r--r-- | src/game/editor/editor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/editor/editor.h b/src/game/editor/editor.h index 353b0774..92ec7b2b 100644 --- a/src/game/editor/editor.h +++ b/src/game/editor/editor.h @@ -475,6 +475,9 @@ public: m_Dialog = 0; m_pTooltip = 0; + m_GridActive = false; + m_GridFactor = 1; + m_aFileName[0] = 0; m_aFileSaveName[0] = 0; m_ValidSaveFilename = false; @@ -556,6 +559,9 @@ public: int m_Dialog; const char *m_pTooltip; + bool m_GridActive; + int m_GridFactor; + char m_aFileName[512]; char m_aFileSaveName[512]; bool m_ValidSaveFilename; @@ -674,6 +680,8 @@ public: void RenderBackground(CUIRect View, int Texture, float Size, float Brightness); + void RenderGrid(CLayerGroup *pGroup); + void UiInvokePopupMenu(void *pID, int Flags, float X, float Y, float W, float H, int (*pfnFunc)(CEditor *pEditor, CUIRect Rect), void *pExtra=0); void UiDoPopupMenu(); @@ -742,6 +750,8 @@ public: int Length = pEnd > pExtractedName ? min(BufferSize, (int)(pEnd-pExtractedName+1)) : BufferSize; str_copy(pName, pExtractedName, Length); } + + int GetLineDistance(); }; // make sure to inline this function |