{ "menu.button_quit.active", UNDEFINED_FILENAME },
{ "menu.button_quit.active.clone_from", "menu.button.active" },
+ { "menu.button_first_level", UNDEFINED_FILENAME },
+ { "menu.button_first_level.active", UNDEFINED_FILENAME },
+ { "menu.button_last_level", UNDEFINED_FILENAME },
+ { "menu.button_last_level.active", UNDEFINED_FILENAME },
+ { "menu.button_level_number", UNDEFINED_FILENAME },
+ { "menu.button_level_number.active", UNDEFINED_FILENAME },
+
{ "menu.scrollbar", "RocksDC.png" },
{ "menu.scrollbar.xpos", "8" },
{ "menu.scrollbar.ypos", "10" },
{ "main.button.quit.x", "0" },
{ "main.button.quit.y", "288" },
+ { "main.button.first_level.x", "-1" },
+ { "main.button.first_level.y", "-1" },
+ { "main.button.last_level.x", "-1" },
+ { "main.button.last_level.y", "-1" },
+ { "main.button.level_number.x", "-1" },
+ { "main.button.level_number.y", "-1" },
+
{ "main.button.prev_level.x", "320" },
{ "main.button.prev_level.y", "96" },
{ "main.button.next_level.x", "448" },
#endif
{
MAIN_CONTROL_FIRST_LEVEL,
- NULL, -1,
+ &menu.main.button.first_level, IMG_MENU_BUTTON_FIRST_LEVEL,
&menu.main.text.first_level, &main_text_first_level,
NULL, NULL,
},
{
MAIN_CONTROL_LAST_LEVEL,
- NULL, -1,
+ &menu.main.button.last_level, IMG_MENU_BUTTON_LAST_LEVEL,
&menu.main.text.last_level, &main_text_last_level,
NULL, NULL,
},
{
MAIN_CONTROL_LEVEL_NUMBER,
- NULL, -1,
+ &menu.main.button.level_number, IMG_MENU_BUTTON_LEVEL_NUMBER,
&menu.main.text.level_number, &main_text_level_number,
NULL, NULL,
},
if (pos_text != NULL) /* (x/y may be -1/-1 here) */
{
- /* calculate size for non-clickable text -- needed for text alignment */
- boolean calculate_text_size = (pos_button == NULL && text != NULL);
+ /* calculate text size -- needed for text alignment */
+ boolean calculate_text_size = (text != NULL);
if (pos_text->width == -1 || calculate_text_size)
pos_text->width = text_width;