From a99a9fecfc970c836625993f54f3956273c3c77c Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 18 Jul 2016 08:55:35 +0200 Subject: [PATCH] Display tee position in editor proof --- src/game/editor/editor.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 07b3a16d1..1170ff671 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -2564,6 +2564,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar) Graphics()->TextureSet(-1); Graphics()->LinesBegin(); + // possible screen sizes (white border) float aLastPoints[4]; float Start = 1.0f; //9.0f/16.0f; float End = 16.0f/9.0f; @@ -2606,7 +2607,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar) mem_copy(aLastPoints, aPoints, sizeof(aPoints)); } - if(1) + // two screen sizes (green and red border) { Graphics()->SetColor(1,0,0,1); for(int i = 0; i < 2; i++) @@ -2634,8 +2635,16 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar) Graphics()->SetColor(0,1,0,1); } } - Graphics()->LinesEnd(); + + // tee position (blue circle) + { + Graphics()->TextureSet(-1); + Graphics()->QuadsBegin(); + Graphics()->SetColor(0,0,1,0.3f); + RenderTools()->DrawCircle(m_WorldOffsetX, m_WorldOffsetY, 20.0f, 32); + Graphics()->QuadsEnd(); + } } if (!m_ShowPicker && m_ShowTileInfo && m_ShowEnvelopePreview != 0 && GetSelectedLayer(0) && GetSelectedLayer(0)->m_Type == LAYERTYPE_QUADS)