annotate GUI/GUIProgressBar.h @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents dd36326a9994
children
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;
2572
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
39 //RGBTexture pLoadingBg; // 18
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
40 //RGBTexture field_40;
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
41 //RGBTexture field_68;
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
42 //RGBTexture field_90;
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
43 //RGBTexture field_B8;
2574
dd36326a9994 More texture refactoring
a.parshin
parents: 2572
diff changeset
44 struct Texture_MM7 field_E0;
2575
a76d408c5132 DrawTranslucent -> DrawTextureGrayShade
a.parshin
parents: 2574
diff changeset
45 class Image *progressbar_dungeon;//struct Texture_MM7 pBardata;
a76d408c5132 DrawTranslucent -> DrawTextureGrayShade
a.parshin
parents: 2574
diff changeset
46 class Image *progressbar_loading;//struct Texture_MM7 pLoadingProgress;
2572
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
47
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
48
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
49 inline GUIProgressBar():
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
50 loading_bg(nullptr)
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
51 {}
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
52
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2502
diff changeset
53 struct Image *loading_bg;
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
54 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
55 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
56
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
57
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
58
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
59 extern struct GUIProgressBar *pGameLoadingUI_ProgressBar;