main/newmenu.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include "clipboard.h"
#include "error.h"
#include "types.h"
#include "gr.h"
#include "mono.h"
#include "key.h"
#include "palette.h"
#include "game.h"
#include "text.h"
#include "newmenu.h"
#include "gamefont.h"
#include "network.h"
#include "iff.h"
#include "pcx.h"
#include "u_mem.h"
#include "mouse.h"
#include "joy.h"
#include "digi.h"
#include "multi.h"
#include "endlevel.h"
#include "screens.h"
#include "kconfig.h"
#include "player.h"
#include "d_glob.h"
#include "d_io.h"
#include "timer.h"
#include "vers_id.h"

Classes

struct  bkg

Defines

#define TITLE_FONT   (Gamefonts[GFONT_BIG_1])
#define SUBTITLE_FONT   (Gamefonts[GFONT_MEDIUM_3])
#define CURRENT_FONT   (Gamefonts[GFONT_MEDIUM_2])
#define NORMAL_FONT   (Gamefonts[GFONT_MEDIUM_1])
#define TEXT_FONT   (Gamefonts[GFONT_MEDIUM_3])
#define MESSAGEBOX_TEXT_SIZE   2176
#define MAX_TEXT_WIDTH   FONTSCALE_X(200)
#define MENSCALE_X   1
#define MENSCALE_Y   1
#define MAX_FILES   100
#define LB_ITEMS_ON_SCREEN   8

Functions

void gr_bm_bitblt (int w, int h, int dx, int dy, int sx, int sy, grs_bitmap *src, grs_bitmap *dest)
void newmenu_close ()
void nm_draw_background1 (char *filename)
void nm_draw_background (int x1, int y1, int x2, int y2)
void nm_restore_background (int x, int y, int w, int h)
void nm_string (bkg *b, int w1, int x, int y, char *_s)
void nm_string_slider (bkg *b, int w1, int x, int y, char *s)
void nm_string_black (bkg *b, int w1, int x, int y, char *s)
void nm_rstring (bkg *b, int w1, int x, int y, char *s)
void update_cursor (newmenu_item *item)
void nm_string_inputbox (bkg *b, int w, int x, int y, char *text, int current)
void draw_item (bkg *b, newmenu_item *item, int is_current)
int char_allowed (char c)
void strip_end_whitespace (char *text)
int newmenu_do (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem))
int newmenu_do1 (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int citem)
int newmenu_do2 (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int citem, char *filename)
int newmenu_do3_real (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int citem, char *filename, int width, int height, grs_font *title_font, grs_font *subtitle_font, grs_font *menu_font, grs_font *normal_font)
int newmenu_do_fixedfont (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int citem, char *filename, int width, int height)
int newmenu_do3 (char *title, char *subtitle, int nitems, newmenu_item *item, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int citem, char *filename, int width, int height)
int nm_messagebox1 (char *title, void(*subfunction)(int nitems, newmenu_item *items, int *last_key, int citem), int nchoices,...)
int nm_messagebox (char *title, int nchoices,...)
void newmenu_file_sort (int n, char *list)
void delete_player_saved_games (char *name)
int MakeNewPlayerFile (int allow_abort)
int newmenu_get_filename (char *title, char *filespec, char *filename, int allow_abort_flag)
int newmenu_listbox (char *title, int nitems, char *items[], int allow_abort_flag, int(*listbox_callback)(int *citem, int *nitems, char *items[], int *keypress))
int newmenu_listbox1 (char *title, int nitems, char *items[], int allow_abort_flag, int default_item, int(*listbox_callback)(int *citem, int *nitems, char *items[], int *keypress))
int newmenu_filelist (char *title, char *filespec, char *filename)
int nm_messagebox_fixedfont (char *title, int nchoices,...)

Variables

int Newmenu_first_time = 1
grs_bitmap nm_background
char * Newmenu_allowed_chars = NULL
int Menu_Special = 0

Define Documentation

#define CURRENT_FONT   (Gamefonts[GFONT_MEDIUM_2])
 

#define LB_ITEMS_ON_SCREEN   8
 

#define MAX_FILES   100
 

#define MAX_TEXT_WIDTH   FONTSCALE_X(200)
 

#define MENSCALE_X   1
 

#define MENSCALE_Y   1
 

#define MESSAGEBOX_TEXT_SIZE   2176
 

#define NORMAL_FONT   (Gamefonts[GFONT_MEDIUM_1])
 

#define SUBTITLE_FONT   (Gamefonts[GFONT_MEDIUM_3])
 

#define TEXT_FONT   (Gamefonts[GFONT_MEDIUM_3])
 

#define TITLE_FONT   (Gamefonts[GFONT_BIG_1])
 


Function Documentation

int char_allowed char  c  ) 
 

void delete_player_saved_games char *  name  ) 
 

void draw_item bkg b,
newmenu_item item,
int  is_current
 

void gr_bm_bitblt int  w,
int  h,
int  dx,
int  dy,
int  sx,
int  sy,
grs_bitmap src,
grs_bitmap dest
 

int MakeNewPlayerFile int  allow_abort  ) 
 

void newmenu_close  ) 
 

int newmenu_do char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction
 

int newmenu_do1 char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  citem
 

int newmenu_do2 char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  citem,
char *  filename
 

int newmenu_do3 char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  citem,
char *  filename,
int  width,
int  height
 

int newmenu_do3_real char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  citem,
char *  filename,
int  width,
int  height,
grs_font title_font,
grs_font subtitle_font,
grs_font menu_font,
grs_font normal_font
 

int newmenu_do_fixedfont char *  title,
char *  subtitle,
int  nitems,
newmenu_item item,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  citem,
char *  filename,
int  width,
int  height
 

void newmenu_file_sort int  n,
char *  list
 

int newmenu_filelist char *  title,
char *  filespec,
char *  filename
 

int newmenu_get_filename char *  title,
char *  filespec,
char *  filename,
int  allow_abort_flag
 

int newmenu_listbox char *  title,
int  nitems,
char *  items[],
int  allow_abort_flag,
int(*)(int *citem, int *nitems, char *items[], int *keypress)  listbox_callback
 

int newmenu_listbox1 char *  title,
int  nitems,
char *  items[],
int  allow_abort_flag,
int  default_item,
int(*)(int *citem, int *nitems, char *items[], int *keypress)  listbox_callback
 

void nm_draw_background int  x1,
int  y1,
int  x2,
int  y2
 

void nm_draw_background1 char *  filename  ) 
 

int nm_messagebox char *  title,
int  nchoices,
  ...
 

int nm_messagebox1 char *  title,
void(*)(int nitems, newmenu_item *items, int *last_key, int citem)  subfunction,
int  nchoices,
  ...
 

int nm_messagebox_fixedfont char *  title,
int  nchoices,
  ...
 

void nm_restore_background int  x,
int  y,
int  w,
int  h
 

void nm_rstring bkg b,
int  w1,
int  x,
int  y,
char *  s
 

void nm_string bkg b,
int  w1,
int  x,
int  y,
char *  _s
 

void nm_string_black bkg b,
int  w1,
int  x,
int  y,
char *  s
 

void nm_string_inputbox bkg b,
int  w,
int  x,
int  y,
char *  text,
int  current
 

void nm_string_slider bkg b,
int  w1,
int  x,
int  y,
char *  s
 

void strip_end_whitespace char *  text  ) 
 

void update_cursor newmenu_item item  ) 
 


Variable Documentation

int Menu_Special = 0
 

char* Newmenu_allowed_chars = NULL
 

int Newmenu_first_time = 1
 

grs_bitmap nm_background
 


Generated on Mon Aug 28 20:55:33 2006 for D1X-Rebirth by  doxygen 1.4.6