Atrinik Client  4.0
interface.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
30 #ifndef INTERFACE_H
31 #define INTERFACE_H
32 
36 typedef struct interface_struct {
38  char *message;
39 
41  char *title;
42 
44  char *icon;
45 
48 
51 
53  UT_array *links;
54 
56  uint8_t destroy;
57 
59  uint32_t scroll_offset;
60 
62  uint32_t num_lines;
63 
66 
68  uint8_t progressed;
69 
75  uint32_t progressed_ticks;
76 
78  uint8_t allow_tab;
79 
82 
85 
87  uint8_t text_input;
88 
94 
98  object *anim;
99 
103  object *objects;
104 
108  uint32_t last_anim;
110 
116 #define INTERFACE_ICON_STARTX 8
117 
118 #define INTERFACE_ICON_STARTY 8
119 
120 #define INTERFACE_ICON_WIDTH 55
121 
122 #define INTERFACE_ICON_HEIGHT 55
123 
130 #define INTERFACE_TEXT_STARTX 10
131 
132 #define INTERFACE_TEXT_STARTY 73
133 
134 #define INTERFACE_TEXT_WIDTH 412
135 
136 #define INTERFACE_TEXT_HEIGHT 430
137 
144 #define INTERFACE_TITLE_STARTX 80
145 
146 #define INTERFACE_TITLE_STARTY 38
147 
148 #define INTERFACE_TITLE_WIDTH 350
149 
150 #define INTERFACE_TITLE_HEIGHT 22
151 
158 #define INTERFACE_BUTTON_HELLO_STARTX 7
159 
160 #define INTERFACE_BUTTON_HELLO_STARTY 512
161 
163 #define INTERFACE_BUTTON_CLOSE_STARTX 337
164 
165 #define INTERFACE_BUTTON_CLOSE_STARTY 512
166 
172 #define INTERFACE_PROGRESSED_TICKS 125
173 
174 #endif
uint8_t text_input
Definition: interface.h:87
font_struct * font
Definition: interface.h:50
uint32_t num_lines
Definition: interface.h:62
UT_array * links
Definition: interface.h:53
scrollbar_struct scrollbar
Definition: interface.h:65
uint32_t scroll_offset
Definition: interface.h:59
object * objects
Definition: interface.h:103
uint8_t input_cleanup_disable
Definition: interface.h:81
uint8_t progressed
Definition: interface.h:68
uint32_t last_anim
Definition: interface.h:108
uint8_t input_allow_empty
Definition: interface.h:84
uint32_t progressed_ticks
Definition: interface.h:75
struct interface_struct interface_struct
uint8_t destroy
Definition: interface.h:56
char * message
Definition: interface.h:38
char * text_input_prepend
Definition: interface.h:47
char * text_autocomplete
Definition: interface.h:93
uint8_t allow_tab
Definition: interface.h:78
object * anim
Definition: interface.h:98