[go: up one dir, main page]

Menu

[r15]: / engine / gui / menusys.h  Maximize  Restore  History

Download this file

151 lines (119 with data), 4.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
Doom Editor Utility, by Brendon Wyber and RaphaČl Quinet.
You are allowed to use any parts of this code in another program, as
long as you give credits to the authors in the documentation and in
the program itself. Read the file README.1ST for more information.
This program comes with absolutely no warranty.
DEU.H - Main doom defines.
*/
/* the includes */
#include <allegro.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
//#include <graphics.h>
//#include <malloc.h>
#include "../console.h"
#ifdef __cplusplus
extern "C" {
#endif
extern BITMAP *swapscreen;
extern BITMAP *gamewin;
typedef int Bool; /* Boolean data: true or false */
/*
the macros and constants
*/
/*
the interfile global variables
*/
/* from deu.c */
//extern Bool SwapButtons; /* swap right and middle mouse buttons */
/* from gfx.c */
extern int GfxMode; /* current graphics mode, or 0 for text */
extern int Scale; /* scale to draw map 20 to 1 */
extern int OrigX; /* the X origin */
extern int OrigY; /* the Y origin */
extern int PointerX; /* X position of pointer */
extern int PointerY; /* Y position of pointer */
extern int ScrMaxX; /* maximum X screen coord */
extern int ScrMaxY; /* maximum Y screen coord */
extern int ScrCenterX; /* X coord of screen center */
extern int ScrCenterY; /* Y coord of screen center */
extern int CURCOL;
/* from mouse.c */
extern Bool UseMouse; /* is there a mouse driver? */
/*
the function prototypes
*/
/* from deu.c */
//int main( int, char *[]);
void *GetMemory( size_t);
void *ResizeMemory( void *, size_t);
void *GetFarMemory( unsigned long size);
void *ResizeFarMemory( void *old, unsigned long size);
/* from gfx.c */
void InitGfx( void);
void TermGfx( void);
void ClearScreen( void);
void SetColor( int);
void DrawScreenLine( int, int, int, int);
void DrawScreenBox( int, int, int, int);
void DrawScreenBox3D( int, int, int, int);
void DrawSunkBox3D( int, int, int, int);
void DrawScreenBoxHollow( int, int, int, int);
void DrawScreenMeter( int, int, int, int, float);
void DrawScreenText( int, int, char *, ...);
void DrawScreenChar( int Xstart, int Ystart, char msg);
void Box(int a,int b,int c,int d);
//void DrawPointer( void);
void InputNameFromListWithFunc( int, int, char *, int, char **, int, char *, int, int, void (*hookfunc)(int, int, char *));
void InputNameFromList( int, int, char *, int, char **, char *);
void InputNameFromList32( int x0, int y0, char *prompt, int listsize, char **list, char *name);
void InputNameFromListWithAdd( int x0, int y0, char *prompt, int listsize, char **list, char *name);
void GetThumbFromList( int x0, int y0, char *prompt, int listsize, char **list, char *name);
int InputInteger( int, int, int *, int, int);
int InputIntegerValue( int, int, int, int, int);
int InputIntegerValueP( int x0, int y0, int minv, int maxv, int defv, char *promptstr);
void InputFileName( int, int, char *, int, char *);
void InputString( int, int, char *, int, char *);
void InputIString( int, int, char *, int, char *);
Bool Confirm( int, int, char *, char *);
int Notify( int, int, char *, char *);
void System(int, int, char *,char *,void (*)());
void DisplayMessage( int, int, char *, ...);
void DrawScreenMeter( int Xstart, int Ystart, int Xend, int Yend, float value);
void DisplayMessage( int x0, int y0, char *msg, ...);
void setfillstyle(int a,int b);
void setcolor( int);
int getcolor(void);
#define fbox2(x,y,w,h,c,screen) rectfill(screen,x,y,x+w,y+h,c)
void ClipBox(int x,int y,int w,int h,int colour,BITMAP *screen);
// These colours value depends on the bpp level.
// They are defined indirectly because otherwise the compiler will argue
// with me and try to impose it's corrupted colours over the proper ones.
// (They are defined in conio.h)
extern int ITG_LIGHTGRAY;
extern int ITG_LIGHTGREEN;
extern int ITG_DARKGRAY;
extern int ITG_YELLOW;
extern int ITG_RED;
extern int ITG_DARKRED;
extern int ITG_BLACK;
extern int ITG_BLUE;
extern int ITG_WHITE;
#define KEY_DELETE KEY_DEL
#define INS 82
#define DEL 83
#define ENTER 0x0d
extern char __up[];
extern char __down[];
extern char __left[];
extern char __right[];
extern char __left2[]; // Double Left
extern char __right2[]; // Double Right
/* end of file */
#ifdef __cplusplus
}
#endif