Removing menus...

This commit is contained in:
Ognjen Milan Robovic 2023-12-30 05:56:10 -05:00
parent 2b9aa4adc6
commit f7eda61e32
2 changed files with 0 additions and 80 deletions

View File

@ -1,55 +0,0 @@
#include "menu.h"
int menu_count = 0;
int menu_items [MENU_LIMIT];
int menu_show [MENU_LIMIT];
int menu_alpha [MENU_LIMIT];
char * menu_text [MENU_LIMIT] [MINIMENU_LIMIT];
int menu_icon [MENU_LIMIT] [MINIMENU_LIMIT];
void (* menu_action [MENU_LIMIT] [MINIMENU_LIMIT]) (void);
static void define_minimenu (int menu, char * text, int icon, void (* action) (void)) {
menu_text [menu] [menu_items [menu]] = text;
menu_icon [menu] [menu_items [menu]] = icon;
menu_action [menu] [menu_items [menu]] = action;
menu_items [menu]++;
}
static void define_menu (int alpha) {
menu_items [menu_count] = 0;
menu_show [menu_count] = 0;
menu_alpha [menu_count] = alpha;
menu_count++;
}
void menu_configure (void) {
int index;
define_menu (0);
define_menu (0);
define_menu (0);
define_menu (0);
for (index = 0; index < trait_count; ++index) {
define_minimenu (menu_traits, trait_name [index], index, 0);
}
for (index = 0; index < skill_count; ++index) {
define_minimenu (menu_skills, skill_name [index], 3 + index, 0);
}
for (index = 0; index < value_count; ++index) {
define_minimenu (menu_values, value_name [index], 27 + index, 0);
}
define_minimenu (menu_resources, "This is some simple neon menu...", 1, 0);
define_minimenu (menu_resources, "And to test dimension computation...", 1, 0);
define_minimenu (menu_resources, "We have different line lengths.", 1, 0);
define_minimenu (menu_resources, "I really don't know what else to write here.", 1, 0);
define_minimenu (menu_resources, "Important thing is how it looks when done.", 1, 0);
define_minimenu (menu_resources, "And I want HoM&M4 look and feel.", 1, 0);
}

View File

@ -1,25 +0,0 @@
#ifndef UMORNA_MENU
#define UMORNA_MENU
#include "game.h"
#define MENU_LIMIT (24)
#define MINIMENU_LIMIT (24)
enum {
menu_traits, menu_skills, menu_values, menu_resources
};
extern int menu_count;
extern int menu_items [MENU_LIMIT];
extern int menu_show [MENU_LIMIT];
extern int menu_alpha [MENU_LIMIT];
extern char * menu_text [MENU_LIMIT] [MINIMENU_LIMIT];
extern int menu_icon [MENU_LIMIT] [MINIMENU_LIMIT];
extern void (* menu_action [MENU_LIMIT] [MINIMENU_LIMIT]) (void);
extern void menu_configure (void);
#endif