- fillrect(x_pos - list_pos + text_pos - 1, y_pos - 10,
- list_pos_2 + 2, 20,
- 255,255,255,255);
- fillrect(x_pos - list_pos + text_pos, y_pos - 9,
- list_pos_2, 18,
- 0,0,0,128);
-
- gold_text->draw_align(string_list_active(pitem.list),
- x_pos + text_pos, y_pos,
- A_HMIDDLE, A_VMIDDLE,2);
-
- text_font->draw_align(pitem.text,
- x_pos - list_pos_2/2, y_pos,
- A_HMIDDLE, A_VMIDDLE, shadow_size);
+ context.draw_filled_rect(
+ Vector(x_pos - list_pos + text_pos - 1, y_pos - 10),
+ Vector(list_pos_2 + 2, 20),
+ Color(255,255,255,255), LAYER_FOREGROUND1 - 4);
+ context.draw_filled_rect(
+ Vector(x_pos - list_pos + text_pos, y_pos - 9),
+ Vector(list_pos_2, 18),
+ Color(0,0,0,128), LAYER_FOREGROUND1 - 5);
+
+ context.draw_text_center(text_font, string_list_active(pitem.list),
+ Vector(text_pos, y_pos - int(text_font->get_height()/2)),
+ LAYER_FOREGROUND1);
+ context.draw_text_center(text_font, pitem.text,
+ Vector(list_pos_2/2, y_pos - int(text_font->get_height()/2)),
+ LAYER_FOREGROUND1);