From 45a047ce478e31297eba35e2e3121b25cabeae12 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 21 Mar 2008 17:39:09 +0000 Subject: fixed bug in text rendering. added option for detail layers --- src/game/editor/ed_popups.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/editor/ed_popups.cpp') 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); } -- cgit 1.4.1