summaryrefslogtreecommitdiffstats
path: root/Renderer.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-12-14 23:03:00 +0100
committerneoraider <devnull@localhost>2007-12-14 23:03:00 +0100
commitd25becbaceab79809cb57fafaece151cecee3f69 (patch)
treea0d3973343ccd658e8d73f64dcb402b193c424c3 /Renderer.cpp
parent9a1bbf4b9ae00bfe6ef7c5c251bae0da9b624d9c (diff)
downloadzoomedit-d25becbaceab79809cb57fafaece151cecee3f69.tar
zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.zip
zoomedit: Generalized Tool objects.
Diffstat (limited to 'Renderer.cpp')
-rw-r--r--Renderer.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/Renderer.cpp b/Renderer.cpp
index 3f7d99b..1c3255b 100644
--- a/Renderer.cpp
+++ b/Renderer.cpp
@@ -139,11 +139,18 @@ void Renderer::renderRoom(const Room &room, bool selected, bool hovered, float s
}
void Renderer::renderPlayerStart(const PlayerStart &start, bool selected, bool hovered, float scale) {
- glLineWidth((hovered || selected) ? 2.0f : 1.0f);
- if(selected)
- glColor4f(1.0f, 1.7f, 1.0f, 1.9f);
- else
+ if(selected) {
+ glColor4f(1.0f, 1.0f, 1.0f, 0.9f);
+ glLineWidth(2.0f);
+ }
+ else if(hovered && editManager->getMode() == EditManager::VIEW) {
glColor4f(0.0f, 0.7f, 0.7f, 0.7f);
+ glLineWidth(2.0f);
+ }
+ else {
+ glColor4f(0.0f, 0.7f, 0.7f, 0.7f);
+ glLineWidth(1.0f);
+ }
drawCircle(Vertex(start.getX(), start.getZ()), 0.3f, 128);
glLineWidth(2.0f);