+ case MN_DEACTIVE:
+ {
+ context.draw_text_center(deactive_font, pitem.text,
+ Vector(0, y_pos - int(deactive_font->get_height()/2)),
+ LAYER_GUI);
+ break;
+ }
+
+ case MN_HL:
+ {
+ // TODO
+ int x = pos_x - menu_width/2;
+ int y = y_pos - 12 - effect_offset;
+ /* Draw a horizontal line with a little 3d effect */
+ context.draw_filled_rect(Vector(x, y + 6),
+ Vector(menu_width, 4), Color(150,200,255,225), LAYER_GUI);
+ context.draw_filled_rect(Vector(x, y + 6),
+ Vector(menu_width, 2), Color(255,255,255,255), LAYER_GUI);
+ break;
+ }
+ case MN_LABEL:
+ {
+ context.draw_text_center(label_font,
+ pitem.text, Vector(0, y_pos - int(label_font->get_height()/2)),
+ LAYER_GUI);
+ break;
+ }
+ case MN_TEXTFIELD:
+ case MN_NUMFIELD:
+ case MN_CONTROLFIELD_KB:
+ case MN_CONTROLFIELD_JS:
+ {
+ int width = text_width + input_width + 5;
+ int text_pos = screen->w/2 - width/2;
+ int input_pos = text_pos + text_width + 10;