mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 17:45:25 -04:00
cc371273ce
* 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
37 lines
831 B
C++
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
|