blob: 928f0099dc4b1a378b945dd152133ef7fc18970f (
plain) (
blame)
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
|
#ifdef USE_TILE_LOCAL
#ifndef TILEREG_DOLL_H
#define TILEREG_DOLL_H
#include "tilebuf.h"
#include "tiledoll.h"
#include "tilereg.h"
class DollEditRegion : public ControlRegion
{
public:
DollEditRegion(ImageManager *im, FontWrapper *font);
virtual void render();
virtual void clear();
virtual void run();
virtual int handle_mouse(MouseEvent &event);
protected:
virtual void on_resize() {}
// Currently edited doll index.
int m_doll_idx;
// Currently edited category of parts.
int m_cat_idx;
// Current part in current category.
int m_part_idx;
// Set of loaded dolls.
dolls_data m_dolls[NUM_MAX_DOLLS];
dolls_data m_player;
dolls_data m_job_default;
dolls_data m_doll_copy;
bool m_copy_valid;
tile_doll_mode m_mode;
FontWrapper *m_font;
ShapeBuffer m_shape_buf;
FontBuffer m_font_buf;
SubmergedTileBuffer m_tile_buf;
SubmergedTileBuffer m_cur_buf;
};
#endif
#endif
|