X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fconf_act.c;h=60c69b02b9db71e4bb3502bca3bc69e1f459f2a5;hb=e51177796149f37de339bda83558c3c49758be93;hp=e52851e4cc2ca71bc74d197694c70174b5c770cc;hpb=e77c26313b1a1e3ddd884cdda005cb6758c1a100;p=rocksndiamonds.git diff --git a/src/conf_act.c b/src/conf_act.c index e52851e4..60c69b02 100644 --- a/src/conf_act.c +++ b/src/conf_act.c @@ -308,6 +308,88 @@ element_with_active_state[] = }; +static struct +{ + int button; + int button_active; +} +button_with_active_state[] = +{ + { + IMG_MENU_BUTTON, + IMG_MENU_BUTTON_ACTIVE + }, + { + IMG_MENU_BUTTON_DOWN, + IMG_MENU_BUTTON_DOWN_ACTIVE + }, + { + IMG_MENU_BUTTON_EDITOR, + IMG_MENU_BUTTON_EDITOR_ACTIVE + }, + { + IMG_MENU_BUTTON_ENTER_MENU, + IMG_MENU_BUTTON_ENTER_MENU_ACTIVE + }, + { + IMG_MENU_BUTTON_GAME, + IMG_MENU_BUTTON_GAME_ACTIVE + }, + { + IMG_MENU_BUTTON_INFO, + IMG_MENU_BUTTON_INFO_ACTIVE + }, + { + IMG_MENU_BUTTON_LEAVE_MENU, + IMG_MENU_BUTTON_LEAVE_MENU_ACTIVE + }, + { + IMG_MENU_BUTTON_LEFT, + IMG_MENU_BUTTON_LEFT_ACTIVE + }, + { + IMG_MENU_BUTTON_LEVELS, + IMG_MENU_BUTTON_LEVELS_ACTIVE + }, + { + IMG_MENU_BUTTON_NAME, + IMG_MENU_BUTTON_NAME_ACTIVE + }, + { + IMG_MENU_BUTTON_NEXT_LEVEL, + IMG_MENU_BUTTON_NEXT_LEVEL_ACTIVE + }, + { + IMG_MENU_BUTTON_PREV_LEVEL, + IMG_MENU_BUTTON_PREV_LEVEL_ACTIVE + }, + { + IMG_MENU_BUTTON_QUIT, + IMG_MENU_BUTTON_QUIT_ACTIVE + }, + { + IMG_MENU_BUTTON_RIGHT, + IMG_MENU_BUTTON_RIGHT_ACTIVE + }, + { + IMG_MENU_BUTTON_SCORES, + IMG_MENU_BUTTON_SCORES_ACTIVE + }, + { + IMG_MENU_BUTTON_SETUP, + IMG_MENU_BUTTON_SETUP_ACTIVE + }, + { + IMG_MENU_BUTTON_UP, + IMG_MENU_BUTTON_UP_ACTIVE + }, + { + -1, + -1 + }, +}; + + static struct { int font_nr;