ScummVM API documentation
animating_gui_button.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22// Description of a button animation; stored separately from the GUI button.
23//
24
25#ifndef AGS_ENGINE_GUI_ANIMATING_GUI_BUTTON_H
26#define AGS_ENGINE_GUI_ANIMATING_GUI_BUTTON_H
27
28#include "ags/shared/core/types.h"
29#include "ags/engine/ac/runtime_defines.h"
30
31namespace AGS3 {
32
33// Forward declaration
34namespace AGS {
35namespace Shared {
36class Stream;
37}
38}
39using namespace AGS; // FIXME later
40
42 // index into guibuts array, GUI, button
43 short buttonid = -1, ongui = -1, onguibut = -1;
44 // current animation status
45 uint16_t view = 0, loop = 0, frame = 0;
46 short speed = 0, repeat = 0, blocking = 0, direction = 0, wait = 0;
47 // relative volume of the frame sounds
48 int volume = -1;
49
50 void ReadFromSavegame(Shared::Stream *in, int cmp_ver);
51 void WriteToSavegame(Shared::Stream *out);
52};
53
54} // namespace AGS3
55
56#endif
Definition: stream.h:52
Definition: animating_gui_button.h:41