annotate GUI/GUIProgressBar.h @ 2563:65c97624c047

Saving & loading works from both main menu and game
author a.parshin
date Tue, 19 May 2015 22:00:56 +0200
parents a77c34acdbc9
children d87bfbd3bb3b
rev   line source
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1 #pragma once
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
2 #include "Engine/Graphics/Texture.h"
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
3
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
4
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
5 /* 278 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
6 #pragma pack(push, 1)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
7 struct GUIProgressBar
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
8 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
9 enum Type: unsigned __int32
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
10 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
11 TYPE_None = 0,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
12 TYPE_Fullscreen = 1,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
13 TYPE_Box = 2
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
14 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
15
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
16 bool Initialize(Type type);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
17 void Reset(unsigned __int8 uMaxProgress);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
18 void Progress();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
19 void Release();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
20 void Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
21
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
22 __int16 uX;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
23 __int16 uY;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
24 __int16 uWidth;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
25 __int16 uHeight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
26 char field_8;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
27 char field_9;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
28 char uProgressMax;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
29 char uProgressCurrent;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
30 Type uType;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
31 char field_10[8];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
32 //char field_11;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
33 //char field_12;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
34 //char field_13;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
35 //char field_14;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
36 //char field_15;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
37 //char field_16;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
38 //char field_17;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
39 RGBTexture pLoadingBg;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
40 RGBTexture field_40;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
41 RGBTexture field_68;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
42 RGBTexture field_90;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
43 RGBTexture field_B8;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
44 struct Texture field_E0;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
45 struct Texture pBardata;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
46 struct Texture pLoadingProgress;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
47 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
48 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
49
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
50
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
51
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
52 extern struct GUIProgressBar *pGameLoadingUI_ProgressBar;