Filter:   InfoImg
download interfacegumps.h
Language: C++
LOC: 316
Project Info
Ultima Online Project(uop)
Server: SourceForge
Type: cvs
SourceForge\u\uop\uop\uop\
   acinclude.m4
   aclocal.m4
   action.cc
   action.h
   animation.cc
   animation.h
   artexport.cc
   artfactory.cc
   artfactory.h
   audio.cc
   audio.h
   btree.cc
   btree.h
   cache.h
   cliloc.cc
   cliloc.h
   config.h.in
   configure.in
   cvs2cl.pl
   entity.cc
   entity.h
   gumps.cc
   gumps.h
   interface.cc
   interface.h
   interfacegumps.cc
   interfacegumps.h
   interfacehandler.cc
   interfacehandler.h
   intrface.def
   Makefile.am
   Makefile.in
   message.cc
   message.h
   musicmap.def
   network.cc
   network.h
   patchhandler.cc
   patchhandler.h
   readable.pl
   serverhandler.cc
   serverhandler.h
   sprite.cc
   sprite.h
   stamp-h.in
   texthandler.cc
   texthandler.h
   tiledata.cc
   tiledata.h
   unreadable.pl
   uop.cc
   uop.cfg
   uop.dox
   uop.h
   uopconfig.cc
   uopconfig.h
   uosprite.h
   uostub.pl
   world.cc
   world.h

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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
#ifndef __INTERFACE_GUMPS__H_
#define __INTERFACE_GUMPS__H_

#include <string>
#include <SDL/SDL_types.h>
#include <list>
#include "gumps.h"
#include "action.h"

class InterfaceGump
{
public:
	InterfaceGump();
	virtual ~InterfaceGump();
	void add(InterfaceGump *gump);
	class InterfaceGump *getLast();
	void setText(string &text);

	virtual bool mouseDoubleClick(Uint8 button,Uint16 x,Uint16 y);
	virtual bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	virtual bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	virtual InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	virtual bool mouseMove(Uint16 x,Uint16 y);
	virtual void mouseExit();
	virtual void move(int x,int y,int w,int h);
	virtual void draw();
	int x,y,width,height; //calibrated locations
	Uint16 partial;
	Uint32 fontcolor;
	Uint16 fontNumber;
	bool emboss,engrave;
protected:
	list<InterfaceGump *>children;
};

class GumpMain : public InterfaceGump {
public:
	GumpMain(string &name);
	~GumpMain();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	string gumpName;
	void (Action::*close)();
	string sx,sy,sw,sh;
	bool hasRect;
};

class GumpRect : public InterfaceGump {
public:
	GumpRect(string &args);
	~GumpRect();
	string sx,sy,sw,sh;
};

class GumpBackground : public InterfaceGump {
public:
	GumpBackground(string &args);
	~GumpBackground();
	void move(int x,int y,int w,int h);
	void draw();
private:
	Gump gump;
	Uint16 gumpID;
	//int flag;
	bool flag;
	string sx,sy;
};

class GumpInterface : public InterfaceGump {
public:
	GumpInterface(string &args);
	~GumpInterface();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
private:
	string sx,sy,sw,sh;
	Uint16 id;
};

class GumpSizableBackground : public InterfaceGump {
public:
	GumpSizableBackground(string &args);
	~GumpSizableBackground();
	void move(int x,int y,int w,int h);
	void draw();
private:
	string sx,sy,sw,sh;
	Uint16 g[9],flag;
	Gump gump;
};

class GumpButton : public InterfaceGump {
public:
	GumpButton(string &args);
	~GumpButton();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	string sx,sy,sw,sh;
	Gump *gump,normal,over,down;
	bool mDown,mOver;
	Uint16 gumpID,overID,downID,flag1,flag2;
	Uint32 ID;
};

class GumpLayoutButton : public InterfaceGump {
public:
	GumpLayoutButton(string &args);
	~GumpLayoutButton();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	string sx,sy,sw,sh;
	InterfaceGump *normal,*gump,*over,*down;
	bool mDown,mOver;
	string text;
	Uint32 ID;
};

class GumpDecoration : public InterfaceGump {
public:
	GumpDecoration(string &args);
	~GumpDecoration();
	void move(int x,int y,int w,int h);
	void draw();
private:
	string sx,sy;
	Gump gump;
	Uint32 ID;
	Uint16 gumpID,flag;
};

class GumpText : public InterfaceGump {
public:
	GumpText(string &args);
	~GumpText();
	void move(int x,int y,int w,int h);
	void draw();
private:
	string sx,sy,sw,sh;
	string text;
	Uint16 unk;
};

class GumpInterfaceButton : public InterfaceGump {
public:
	GumpInterfaceButton(string &args);
	~GumpInterfaceButton();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	InterfaceGump *gump,*normal,*over,*down;
	string text,sx,sy,sw,sh;
	bool mDown,mOver;
	Uint32 ID;
};

class GumpInterfaceRadioButton : public InterfaceGump {
public:
	GumpInterfaceRadioButton(string &args);
	~GumpInterfaceRadioButton();
	void move(int x,int y,int w,int h);
	void draw();
private:
	Uint32 ID,ID2;
	Uint16 Choice;
	InterfaceGump *gump,*over,*down,*gump2,*over2,*down2;
	string text,text2,sx,sy,sw,sh;
};

class GumpTextArea : public InterfaceGump {
public:
	GumpTextArea(string &args);
	~GumpTextArea();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	Uint32 ID;
	string *textarea;
	bool password;
private:
	string sx,sy,sw,sh;
	Uint16 alignment;
};

class GumpFontColor : public InterfaceGump {
public:
	GumpFontColor(string &args);
	~GumpFontColor();
	void draw();
private:
};

class GumpFontNumber : public InterfaceGump {
public:
	GumpFontNumber(string &args);
	~GumpFontNumber();
private:
};

class GumpPartialHue : public InterfaceGump {
public:
	GumpPartialHue(string &args);
	~GumpPartialHue();
	void draw();
private:
};

class GumpLayoutToggle : public InterfaceGump {
public:
	GumpLayoutToggle(string &args);
	~GumpLayoutToggle();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	Uint32 ID;
	string sx,sy,sw,sh,text,text2;
	InterfaceGump *gump,*normal,*down,*over,*normal2,*down2,*over2;
	bool mDown,mOver,state;
};

class GumpToggle : public InterfaceGump {
public:
	GumpToggle(string &args);
	~GumpToggle();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	Uint32 ID;
	string sx,sy;
	Gump *gump,normal,over,down,normal2,over2,down2;
	bool mDown,mOver,state;
	Uint16 gumpID,overID,downID,gump2ID,over2ID,down2ID;
};

class GumpVList : public InterfaceGump {
public:
	GumpVList(string &args);
	~GumpVList();
	void move(int x,int y,int w,int h);
	void draw();
	Uint32 ID;
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void clear();
private:
	string sx,sy,sw,sh;
	Uint16 unk;
	InterfaceGump *vScrollGump,*hScrollGump;
};

class GumpVListChild : public InterfaceGump {
public:
	GumpVListChild(Uint32 ID,string sg,string sgd,string sgo,string entry);
	GumpVListChild(Uint32 ID,string sg,Uint16 prof);
	~GumpVListChild();
	virtual void move(int x,int y,int w,int h);
	virtual void draw();
	virtual bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	virtual bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	virtual InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	virtual void mouseExit();
private:
	InterfaceGump *normal,*gump,*over,*down;
	bool mDown,mOver;
	string text;
	Uint32 ID;
	Uint16 textID;
	bool adv;
};

class GumpColorPicker : public InterfaceGump {
public:
	GumpColorPicker(string &args);
	~GumpColorPicker();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
	Uint32 ID;
	Uint16 baseHue;
	bool visible;
private:
	string sx,sy,sw,sh;
	Uint16 unk,rows,cols,numWide,numTall;
	Sprite *picker;
	bool mDown,mOver;
};

class GumpHScrollBar : public InterfaceGump {
public:
	GumpHScrollBar(string &args);
	~GumpHScrollBar();
	void move(int x,int y,int w,int h);
	void draw();
	bool mouseDown(Uint8 button,Uint16 x,Uint16 y);
	bool mouseUp(Uint8 button,Uint16 x,Uint16 y);
	InterfaceGump *mouseEnter(Uint16 x,Uint16 y);
	void mouseExit();
private:
	Uint32 ID;
	string sx,sy,sw,sh;
	bool mDown,mOver;
	GumpMain *scroll;
};

class Scene : public InterfaceGump
{
 public:
	Scene();
	~Scene();
	void move(int x, int y, int w, int h);
	void draw();
};

#endif