World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
GUIProgressBar.h
См. документацию.
1
#pragma once
2
3
#include <cstdint>
4
5
class
Image
;
6
7
class
GUIProgressBar
{
8
public
:
9
enum
Type
{
10
TYPE_None
= 0,
11
TYPE_Fullscreen
= 1,
12
TYPE_Box
= 2
13
};
14
15
public
:
16
GUIProgressBar
();
17
18
bool
Initialize
(
Type
type
);
19
void
Reset
(
uint8_t
uMaxProgress);
20
void
Progress
();
21
void
Release
();
22
void
Draw
();
23
24
protected
:
25
int
uX
;
26
int
uY
;
27
int
uWidth
;
28
int
uHeight
;
29
30
uint8_t
uProgressMax
;
31
uint8_t
uProgressCurrent
;
32
Type
uType
;
33
34
Image
*
progressbar_dungeon
;
// struct Texture_MM7 pBardata;
35
Image
*
progressbar_loading
;
// struct Texture_MM7 pLoadingProgress;
36
37
Image
*
loading_bg
;
38
};
39
40
extern
GUIProgressBar
*
pGameLoadingUI_ProgressBar
;
GUIProgressBar::progressbar_dungeon
Image * progressbar_dungeon
Definition:
GUIProgressBar.h:34
GUIProgressBar::TYPE_Fullscreen
@ TYPE_Fullscreen
Definition:
GUIProgressBar.h:11
GUIProgressBar::Type
Type
Definition:
GUIProgressBar.h:9
GUIProgressBar::uType
Type uType
Definition:
GUIProgressBar.h:32
GUIProgressBar::uHeight
int uHeight
Definition:
GUIProgressBar.h:28
GUIProgressBar::Initialize
bool Initialize(Type type)
Definition:
GUIProgressBar.cpp:22
Image
Definition:
Image.h:19
GUIProgressBar::TYPE_Box
@ TYPE_Box
Definition:
GUIProgressBar.h:12
GUIProgressBar::Reset
void Reset(uint8_t uMaxProgress)
Definition:
GUIProgressBar.cpp:78
GUIProgressBar::uY
int uY
Definition:
GUIProgressBar.h:26
GUIProgressBar::uX
int uX
Definition:
GUIProgressBar.h:25
type
EGLenum type
Definition:
SDL_egl.h:850
GUIProgressBar::Draw
void Draw()
Definition:
GUIProgressBar.cpp:105
GUIProgressBar::uProgressCurrent
uint8_t uProgressCurrent
Definition:
GUIProgressBar.h:31
GUIProgressBar::TYPE_None
@ TYPE_None
Definition:
GUIProgressBar.h:10
GUIProgressBar::uProgressMax
uint8_t uProgressMax
Definition:
GUIProgressBar.h:30
uint8_t
unsigned __int8 uint8_t
Definition:
SDL_config.h:35
GUIProgressBar::Release
void Release()
Definition:
GUIProgressBar.cpp:88
GUIProgressBar::GUIProgressBar
GUIProgressBar()
Definition:
GUIProgressBar.cpp:16
pGameLoadingUI_ProgressBar
GUIProgressBar * pGameLoadingUI_ProgressBar
Definition:
GUIProgressBar.cpp:14
GUIProgressBar
Definition:
GUIProgressBar.h:7
GUIProgressBar::uWidth
int uWidth
Definition:
GUIProgressBar.h:27
GUIProgressBar::Progress
void Progress()
Definition:
GUIProgressBar.cpp:83
GUIProgressBar::progressbar_loading
Image * progressbar_loading
Definition:
GUIProgressBar.h:35
GUIProgressBar::loading_bg
Image * loading_bg
Definition:
GUIProgressBar.h:37
GUI
GUIProgressBar.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:34. Создано системой
1.8.17