about summary refs log tree commit diff
path: root/src/game/editor/ed_popups.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-21 17:39:09 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-21 17:39:09 +0000
commit45a047ce478e31297eba35e2e3121b25cabeae12 (patch)
tree0cf3794fca8ec176b8b64604ac7f7104977c0e2a /src/game/editor/ed_popups.cpp
parentfaa13fe70371834c3e7e234875d32bb95d278c54 (diff)
downloadzcatch-45a047ce478e31297eba35e2e3121b25cabeae12.tar.gz
zcatch-45a047ce478e31297eba35e2e3121b25cabeae12.zip
fixed bug in text rendering. added option for detail layers
Diffstat (limited to 'src/game/editor/ed_popups.cpp')
-rw-r--r--src/game/editor/ed_popups.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/editor/ed_popups.cpp b/src/game/editor/ed_popups.cpp
index a03e4e9e..81192521 100644
--- a/src/game/editor/ed_popups.cpp
+++ b/src/game/editor/ed_popups.cpp
@@ -178,12 +178,14 @@ int popup_layer(RECT view)
 	{
 		PROP_GROUP=0,
 		PROP_ORDER,
+		PROP_HQ,
 		NUM_PROPS,
 	};
 	
 	PROPERTY props[] = {
 		{"Group", editor.selected_group, PROPTYPE_INT_STEP, 0, editor.map.groups.len()-1},
 		{"Order", editor.selected_layer, PROPTYPE_INT_STEP, 0, current_group->layers.len()},
+		{"Detail", current_layer->flags&LAYERFLAG_DETAIL, PROPTYPE_BOOL, 0, 1},
 		{0},
 	};
 	
@@ -203,6 +205,12 @@ int popup_layer(RECT view)
 			editor.selected_layer = editor.map.groups[new_val]->layers.len()-1;
 		}
 	}
+	else if(prop == PROP_HQ)
+	{
+		current_layer->flags &= ~LAYERFLAG_DETAIL;
+		if(new_val)
+			current_layer->flags |= LAYERFLAG_DETAIL;
+	}
 		
 	return current_layer->render_properties(&view);
 }