Use an absolute directory under /usr/share/games/ for game data
[kraptor.git] / include / guiprocs.h
blob07dabfc561c27dac4f34300b0e387e653cee1014
1 /* guiprocs.c - Kraptor
2 Esto contiene dialogos tipo 3-D para el GUI de Allegro
3 Fueron tomados de Allegro Dialog Editor
4 y modificados para su uso en Kraptor
5 */
7 /* ORIGINAL:
8 * Allegro DIALOG Editor
9 * by Julien Cugniere
11 * guiprocs.h : Some thin 3d-looking GUI procs
14 #ifndef GUIPROCS_H
15 #define GUIPROCS_H
17 #include <allegro.h>
19 #define F_IN 1
20 #define F_LIGHT 2
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 /* colors */
27 extern int gui_text_color;
28 extern int gui_disabled_color;
29 extern int gui_white_color;
30 extern int gui_light_color;
31 extern int gui_back_color;
32 extern int gui_dark_color;
33 extern int gui_black_color;
34 void xset_gui_colors(void);
36 /* helpers */
37 void gui_rect(BITMAP *bmp, int x, int y, int w, int h, int flags);
38 void dotted_rect(BITMAP *bmp, int x1, int y1, int x2, int y2, int fg, int bg);
40 /* menus */
41 void xdraw_menu(int x, int y, int w, int h);
42 void xdraw_menu_item(MENU *m, int x, int y, int w, int h, int bar, int sel);
45 /* gui agregados por Kronoman: */
46 int xslider_proc(int msg, DIALOG* d, int c); /* slider tipo X11 */
47 int xbitmap_proc(int msg, DIALOG *d, int c); /* bitmap que se ajusta a w, h */
49 /* gui procs */
50 int xtext_proc (int, DIALOG*, int);
51 int xctext_proc (int, DIALOG*, int);
52 int xrtext_proc (int, DIALOG*, int);
53 int xlist_proc (int, DIALOG*, int);
54 int xtext_list_proc(int, DIALOG*, int);
55 int xtextbox_proc (int, DIALOG*, int);
56 int xbox_proc (int, DIALOG*, int);
57 int xcolorbox_proc (int, DIALOG*, int);
58 int xcheck_proc (int, DIALOG*, int);
59 int xbutton_proc (int, DIALOG*, int);
60 int xedit_proc (int, DIALOG*, int);
61 int xpalette_proc (int, DIALOG*, int);
63 void xset_gui_colors(void);
65 #ifdef __cplusplus
67 #endif
69 #endif /* GUIPROCS_H */