Merge pull request #10351 from neikeq/enums-are-for-the-weak

ClassDB: Provide the enum name of integer constants
This commit is contained in:
Juan Linietsky
2017-08-21 19:56:08 -03:00
committed by GitHub
107 changed files with 2059 additions and 1892 deletions

View File

@ -341,13 +341,13 @@ void VisibilityEnabler2D::_bind_methods() {
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "process_parent"), "set_enabler", "is_enabler_enabled", ENABLER_PARENT_PROCESS);
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "fixed_process_parent"), "set_enabler", "is_enabler_enabled", ENABLER_PARENT_FIXED_PROCESS);
BIND_CONSTANT(ENABLER_FREEZE_BODIES);
BIND_CONSTANT(ENABLER_PAUSE_ANIMATIONS);
BIND_CONSTANT(ENABLER_PAUSE_PARTICLES);
BIND_CONSTANT(ENABLER_PAUSE_ANIMATED_SPRITES);
BIND_CONSTANT(ENABLER_PARENT_PROCESS);
BIND_CONSTANT(ENABLER_PARENT_FIXED_PROCESS);
BIND_CONSTANT(ENABLER_MAX);
BIND_ENUM_CONSTANT(ENABLER_FREEZE_BODIES);
BIND_ENUM_CONSTANT(ENABLER_PAUSE_ANIMATIONS);
BIND_ENUM_CONSTANT(ENABLER_PAUSE_PARTICLES);
BIND_ENUM_CONSTANT(ENABLER_PAUSE_ANIMATED_SPRITES);
BIND_ENUM_CONSTANT(ENABLER_PARENT_PROCESS);
BIND_ENUM_CONSTANT(ENABLER_PARENT_FIXED_PROCESS);
BIND_ENUM_CONSTANT(ENABLER_MAX);
}
void VisibilityEnabler2D::set_enabler(Enabler p_enabler, bool p_enable) {