Files
GDevelop/Core/GDCore/Project/QuickCustomization.h
Clément Pasteau cc371273ce Improve Quick Customization flow (#6978)
* Simplify the number of objects suggested for replacing
* Simplify the number of behavior properties suggested for tweaking
* New section to update the in-game title
* Simplify publication at the end of the flow
2024-09-23 15:07:31 +02:00

37 lines
831 B
C++

#pragma once
#include "GDCore/String.h"
namespace gd {
class QuickCustomization {
public:
enum Visibility {
/** Visibility based on the parent or editor heuristics (probably visible).
*/
Default,
/** Visible in the quick customization editor. */
Visible,
/** Not visible in the quick customization editor. */
Hidden
};
static Visibility StringAsVisibility(const gd::String& str) {
if (str == "visible")
return Visibility::Visible;
else if (str == "hidden")
return Visibility::Hidden;
return Visibility::Default;
}
static gd::String VisibilityAsString(Visibility visibility) {
if (visibility == Visibility::Visible)
return "visible";
else if (visibility == Visibility::Hidden)
return "hidden";
return "default";
}
};
} // namespace gd