relocate some gem and Gnome files to outdated folder tree
This commit is contained in:
33
outdated/include/bitmfile.h
Normal file
33
outdated/include/bitmfile.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/****************************\
|
||||
* Bitmap mit Farbtabelle als *
|
||||
* Graphik-Datei speichern *
|
||||
* Autor: Gabriel Schmidt *
|
||||
* (c} 1992 by MAXON-Computer *
|
||||
* -> Header-Datei *
|
||||
\****************************/
|
||||
|
||||
#ifndef H_TO_FILE
|
||||
#define H_TO_FILE
|
||||
|
||||
/* #include <portab.h> */
|
||||
#define UWORD unsigned short
|
||||
#define ULONG unsigned long
|
||||
#define UBYTE unsigned char
|
||||
|
||||
#define XIMG_MAGIC 0x58494D47
|
||||
|
||||
typedef enum { IMG, XIMG } FILE_TYP;
|
||||
|
||||
const char *get_file_ext(FILE_TYP typ);
|
||||
|
||||
struct RGB {
|
||||
UWORD r, g, b;
|
||||
};
|
||||
|
||||
int bitmap_to_file(FILE_TYP typ, int ww, int wh, unsigned int pwx,
|
||||
unsigned int pwy, unsigned int planes, unsigned int colors,
|
||||
const char *filename,
|
||||
void (*get_color)(unsigned int colind, struct RGB *rgb),
|
||||
void (*get_pixel)(int x, int y, unsigned int *colind));
|
||||
|
||||
#endif
|
||||
64
outdated/include/gem_rsc.h
Normal file
64
outdated/include/gem_rsc.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/* resource set indices for GEM_RSC */
|
||||
|
||||
#define MENU 0 /* menu */
|
||||
#define DOABOUT 12 /* STRING in tree MENU */
|
||||
#define DOQUIT 30 /* STRING in tree MENU */
|
||||
|
||||
#define STATUSLINE 1 /* form/dialog */
|
||||
#define GRABSTATUS 1 /* BOX in tree STATUSLINE */
|
||||
|
||||
#define MAPWIN 2 /* form/dialog */
|
||||
#define MAPBOX 0 /* BOX in tree MAPWIN */
|
||||
#define MAPCURSOR 1 /* IBOX in tree MAPWIN */
|
||||
|
||||
#define ABOUT 3 /* form/dialog */
|
||||
#define FLYABOUT 0 /* BOX in tree ABOUT */
|
||||
#define OKABOUT 1 /* BUTTON in tree ABOUT */
|
||||
#define NETHACKIMG0 3 /* ICON in tree ABOUT */
|
||||
|
||||
#define LINES 4 /* form/dialog */
|
||||
#define FLYLINES 0 /* BOX in tree LINES */
|
||||
#define QLINE 1 /* BUTTON in tree LINES */
|
||||
#define LINESLIST 2 /* USERDEF in tree LINES */
|
||||
|
||||
#define YNCHOICE 5 /* form/dialog */
|
||||
#define FLYYNCHOICE 0 /* BOX in tree YNCHOICE */
|
||||
#define YNPROMPT 1 /* TEXT in tree YNCHOICE */
|
||||
#define SOMECHARS 2 /* BOX in tree YNCHOICE */
|
||||
#define YN1 3 /* BUTTON in tree YNCHOICE */
|
||||
#define YNN 53 /* BUTTON in tree YNCHOICE */
|
||||
#define ANYCHAR 55 /* BOX in tree YNCHOICE */
|
||||
#define CHOSENCH 56 /* FBOXTEXT in tree YNCHOICE */
|
||||
#define COUNT 58 /* FBOXTEXT in tree YNCHOICE */
|
||||
#define YNOK 59 /* BUTTON in tree YNCHOICE */
|
||||
|
||||
#define LINEGET 6 /* form/dialog */
|
||||
#define FLYLINEGET 0 /* BOX in tree LINEGET */
|
||||
#define LGPROMPT 1 /* TEXT in tree LINEGET */
|
||||
#define LGREPLY 2 /* FBOXTEXT in tree LINEGET */
|
||||
#define QLG 3 /* BUTTON in tree LINEGET */
|
||||
#define LGOK 4 /* BUTTON in tree LINEGET */
|
||||
|
||||
#define DIRECTION 7 /* form/dialog */
|
||||
#define FLYDIRECTION 0 /* BOX in tree DIRECTION */
|
||||
#define DIR1 5 /* BOXTEXT in tree DIRECTION */
|
||||
#define DIR9 21 /* BOXTEXT in tree DIRECTION */
|
||||
#define DIRDOWN 23 /* BOXTEXT in tree DIRECTION */
|
||||
#define DIRUP 25 /* BOXTEXT in tree DIRECTION */
|
||||
|
||||
#define MSGWIN 8 /* form/dialog */
|
||||
#define UPMSG 1 /* BOXCHAR in tree MSGWIN */
|
||||
#define GRABMSGWIN 2 /* BOX in tree MSGWIN */
|
||||
#define DNMSG 3 /* BOXCHAR in tree MSGWIN */
|
||||
#define MSGLINES 4 /* USERDEF in tree MSGWIN */
|
||||
|
||||
#define NAMEGET 9 /* form/dialog */
|
||||
#define FLYNAMEGET 0 /* BOX in tree NAMEGET */
|
||||
#define PLNAME 2 /* FBOXTEXT in tree NAMEGET */
|
||||
#define NETHACKPICTURE 4 /* BOXTEXT in tree NAMEGET */
|
||||
|
||||
#define PAGER 10 /* form/dialog */
|
||||
#define FLYPAGER 0 /* BOX in tree PAGER */
|
||||
#define QPAGER 1 /* BUTTON in tree PAGER */
|
||||
|
||||
#define NHICON 11 /* form/dialog */
|
||||
47
outdated/include/load_img.h
Normal file
47
outdated/include/load_img.h
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
/* ------------------------------------------- */
|
||||
#define XIMG 0x58494D47
|
||||
|
||||
/* Header of GEM Image Files */
|
||||
typedef struct IMG_HEADER {
|
||||
short version; /* Img file format version (1) */
|
||||
short length; /* Header length in words (8) */
|
||||
short planes; /* Number of bit-planes (1) */
|
||||
short pat_len; /* length of Patterns (2) */
|
||||
short pix_w; /* Pixel width in 1/1000 mmm (372) */
|
||||
short pix_h; /* Pixel height in 1/1000 mmm (372) */
|
||||
short img_w; /* Pixels per line (=(x+7)/8 Bytes) */
|
||||
short img_h; /* Total number of lines */
|
||||
long magic; /* Contains "XIMG" if standard color */
|
||||
short paltype; /* palette type (0=RGB (short each)) */
|
||||
short *palette; /* palette etc. */
|
||||
char *addr; /* Address for the depacked bit-planes */
|
||||
} IMG_header;
|
||||
|
||||
/* ------------------------------------------- */
|
||||
/* error codes */
|
||||
#define ERR_HEADER 1
|
||||
#define ERR_ALLOC 2
|
||||
#define ERR_FILE 3
|
||||
#define ERR_DEPACK 4
|
||||
#define ERR_COLOR 5
|
||||
|
||||
/* saves the current colorpalette with col colors in palette */
|
||||
void get_colors(int handle, short *palette, int col);
|
||||
|
||||
/* sets col colors from palette */
|
||||
void img_set_colors(int handle, short *palette, int col);
|
||||
|
||||
/* converts MFDB of size from standard to deviceformat (0 if succeded, else
|
||||
* error). */
|
||||
int convert(MFDB *, long);
|
||||
|
||||
/* transforms image in VDI-Device format */
|
||||
int transform_img(MFDB *);
|
||||
|
||||
/* Loads & depacks IMG (0 if succeded, else error). */
|
||||
/* Bitplanes are one after another in address IMG_HEADER.addr. */
|
||||
int depack_img(char *, IMG_header *);
|
||||
|
||||
/* Halves IMG in Device-format, dest memory has to be allocated*/
|
||||
int half_img(MFDB *, MFDB *);
|
||||
18
outdated/include/winGnome.h
Normal file
18
outdated/include/winGnome.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* NetHack 3.7 winGnome.h $NHDT-Date: 1596498571 2020/08/03 23:49:31 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.9 $ */
|
||||
/* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
|
||||
/* Copyright (C) 1998 by Anthony Taylor <tonyt@ptialaska.net> */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef WINGNOME_H
|
||||
#define WINGNOME_H
|
||||
|
||||
#define E extern
|
||||
|
||||
E struct window_procs Gnome_procs;
|
||||
|
||||
#undef E
|
||||
|
||||
#define NHW_WORN 6
|
||||
extern winid WIN_WORN;
|
||||
|
||||
#endif /* WINGNOME_H */
|
||||
111
outdated/include/wingem.h
Normal file
111
outdated/include/wingem.h
Normal file
@@ -0,0 +1,111 @@
|
||||
/* NetHack 3.7 wingem.h $NHDT-Date: 1596498570 2020/08/03 23:49:30 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.15 $ */
|
||||
/* Copyright (c) Christian Bressler, 1999 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
#ifndef WINGEM_H
|
||||
#define WINGEM_H
|
||||
|
||||
/* menu structure */
|
||||
typedef struct Gmi {
|
||||
struct Gmi *Gmi_next;
|
||||
int Gmi_glyph;
|
||||
long Gmi_identifier;
|
||||
char Gmi_accelerator, Gmi_groupacc;
|
||||
int Gmi_attr;
|
||||
char *Gmi_str;
|
||||
long Gmi_count;
|
||||
int Gmi_selected;
|
||||
} Gem_menu_item;
|
||||
|
||||
#define MAXWIN 20 /* maximum number of windows, cop-out */
|
||||
|
||||
extern struct window_procs Gem_procs;
|
||||
|
||||
/* ### wingem1.c ### */
|
||||
#ifdef CLIPPING
|
||||
extern void setclipped(void);
|
||||
#endif
|
||||
extern void docorner(int, int);
|
||||
extern void end_glyphout(void);
|
||||
extern void g_putch(int);
|
||||
extern void win_Gem_init(int);
|
||||
extern int mar_gem_init(void);
|
||||
extern char mar_ask_class(void);
|
||||
extern char *mar_ask_name(void);
|
||||
extern int mar_create_window(int);
|
||||
extern void mar_destroy_nhwindow(int);
|
||||
extern void mar_print_glyph(int, int, int, const glyph_info *,
|
||||
const glyph_info *);
|
||||
extern void mar_print_line(int, int, int, char *);
|
||||
extern void mar_set_message(char *, char *, char *);
|
||||
extern Gem_menu_item *mar_hol_inv(void);
|
||||
extern void mar_set_menu_type(int);
|
||||
extern void mar_reverse_menu(void);
|
||||
extern void mar_set_menu_title(const char *);
|
||||
extern void mar_set_accelerators(void);
|
||||
extern void mar_add_menu(winid, Gem_menu_item *);
|
||||
extern void mar_change_menu_2_text(winid);
|
||||
extern void mar_add_message(const char *);
|
||||
extern void mar_status_dirty(void);
|
||||
extern int mar_hol_win_type(int);
|
||||
extern void mar_clear_messagewin(void);
|
||||
extern void mar_set_no_glyph(int);
|
||||
extern void mar_map_curs_weiter(void);
|
||||
|
||||
/* external declarations */
|
||||
extern void Gem_init_nhwindows(int *, char **);
|
||||
extern void Gem_player_selection(void);
|
||||
extern void Gem_askname(void);
|
||||
extern void Gem_get_nh_event(void);
|
||||
extern void Gem_exit_nhwindows(const char *);
|
||||
extern void Gem_suspend_nhwindows(const char *);
|
||||
extern void Gem_resume_nhwindows(void);
|
||||
extern winid Gem_create_nhwindow(int);
|
||||
extern void Gem_clear_nhwindow(winid);
|
||||
extern void Gem_display_nhwindow(winid, boolean);
|
||||
extern void Gem_dismiss_nhwindow(winid);
|
||||
extern void Gem_destroy_nhwindow(winid);
|
||||
extern void Gem_curs(winid, int, int);
|
||||
extern void Gem_putstr(winid, int, const char *);
|
||||
extern void Gem_display_file(const char *, boolean);
|
||||
extern void Gem_start_menu(winid, unsigned long);
|
||||
extern void Gem_add_menu(winid, const glyph_info *, const ANY_P *, char, char,
|
||||
int, const char *, unsigned int);
|
||||
extern void Gem_end_menu(winid, const char *);
|
||||
extern int Gem_select_menu(winid, int, MENU_ITEM_P **);
|
||||
extern char Gem_message_menu(char, int, const char *);
|
||||
extern void Gem_update_inventory(void);
|
||||
extern void Gem_mark_synch(void);
|
||||
extern void Gem_wait_synch(void);
|
||||
#ifdef CLIPPING
|
||||
extern void Gem_cliparound(int, int);
|
||||
#endif
|
||||
#ifdef POSITIONBAR
|
||||
extern void Gem_update_positionbar(char *);
|
||||
#endif
|
||||
extern void Gem_print_glyph(winid, xchar, xchar, const glyph_info *,
|
||||
const glyph_info *);
|
||||
extern void Gem_raw_print(const char *);
|
||||
extern void Gem_raw_print_bold(const char *);
|
||||
extern int Gem_nhgetch(void);
|
||||
extern int Gem_nh_poskey(int *, int *, int *);
|
||||
extern void Gem_nhbell(void);
|
||||
extern int Gem_doprev_message(void);
|
||||
extern char Gem_yn_function(const char *, const char *, char);
|
||||
extern void Gem_getlin(const char *, char *);
|
||||
extern int Gem_get_ext_cmd(void);
|
||||
extern void Gem_number_pad(int);
|
||||
extern void Gem_delay_output(void);
|
||||
#ifdef CHANGE_COLOR
|
||||
extern void Gem_change_color(int color, long rgb, int reverse);
|
||||
extern char *Gem_get_color_string(void);
|
||||
#endif
|
||||
|
||||
/* other defs that really should go away (they're tty specific) */
|
||||
extern void Gem_start_screen(void);
|
||||
extern void Gem_end_screen(void);
|
||||
|
||||
extern void genl_outrip(winid, int, time_t);
|
||||
|
||||
|
||||
#endif /* WINGEM_H */
|
||||
Reference in New Issue
Block a user