7 #ifndef GDCORE_LOADINGSCREEN_H
8 #define GDCORE_LOADINGSCREEN_H
9 #include "GDCore/String.h"
11 class SerializerElement;
38 showGDevelopLogoDuringLoadingScreen = show;
42 const gd::String& GetGDevelopLogoStyle()
const {
return gdevelopLogoStyle; };
44 LoadingScreen& SetGDevelopLogoStyle(
const gd::String& value) {
45 gdevelopLogoStyle = value;
49 const gd::String& GetBackgroundImageResourceName()
const {
50 return backgroundImageResourceName;
54 return backgroundImageResourceName;
57 LoadingScreen& SetBackgroundImageResourceName(
const gd::String& value) {
58 backgroundImageResourceName = value;
62 int GetBackgroundColor()
const {
return backgroundColor; };
64 LoadingScreen& SetBackgroundColor(
int value) {
65 backgroundColor = value;
69 double GetBackgroundFadeInDuration()
const {
70 return backgroundFadeInDuration;
73 LoadingScreen& SetBackgroundFadeInDuration(
double value) {
74 backgroundFadeInDuration = value;
78 double GetMinDuration()
const {
return minDuration; };
80 LoadingScreen& SetMinDuration(
double value) {
85 double GetLogoAndProgressFadeInDuration()
const {
86 return logoAndProgressFadeInDuration;
89 LoadingScreen& SetLogoAndProgressFadeInDuration(
double value) {
90 logoAndProgressFadeInDuration = value;
94 double GetLogoAndProgressLogoFadeInDelay()
const {
95 return logoAndProgressLogoFadeInDelay;
98 LoadingScreen& SetLogoAndProgressLogoFadeInDelay(
double value) {
99 logoAndProgressLogoFadeInDelay = value;
103 bool GetShowProgressBar()
const {
return showProgressBar; }
105 LoadingScreen& SetShowProgressBar(
bool value) {
106 showProgressBar = value;
110 double GetProgressBarMinWidth()
const {
return progressBarMinWidth; }
112 LoadingScreen& SetProgressBarMinWidth(
double value) {
113 progressBarMinWidth = value;
117 double GetProgressBarMaxWidth()
const {
return progressBarMaxWidth; }
119 LoadingScreen& SetProgressBarMaxWidth(
double value) {
120 progressBarMaxWidth = value;
124 double GetProgressBarWidthPercent()
const {
return progressBarWidthPercent; }
126 LoadingScreen& SetProgressBarWidthPercent(
double value) {
127 progressBarWidthPercent = value;
131 double GetProgressBarHeight()
const {
return progressBarHeight; }
133 LoadingScreen& SetProgressBarHeight(
double value) {
134 progressBarHeight = value;
138 int GetProgressBarColor()
const {
return progressBarColor; }
140 LoadingScreen& SetProgressBarColor(
int value) {
141 progressBarColor = value;
151 void SerializeTo(SerializerElement& element)
const;
156 void UnserializeFrom(
const SerializerElement& element);
160 bool showGDevelopLogoDuringLoadingScreen;
164 double backgroundFadeInDuration;
166 double logoAndProgressFadeInDuration;
167 double logoAndProgressLogoFadeInDelay;
168 bool showProgressBar;
169 double progressBarMinWidth;
170 double progressBarMaxWidth;
171 double progressBarWidthPercent;
172 double progressBarHeight;
173 int progressBarColor;
Describe the content and set up of the loading screen.
Definition: LoadingScreen.h:23
bool IsGDevelopLogoShownDuringLoadingScreen() const
Return true if the GDevelop logo should be shown while loading assets.
Definition: LoadingScreen.h:32
LoadingScreen & ShowGDevelopLogoDuringLoadingScreen(bool show)
Set if the GDevelop logo should be shown while loading assets.
Definition: LoadingScreen.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24