You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add feature hint string and "On" text for checkable groups
This commit is contained in:
@@ -1882,18 +1882,6 @@ void ParticleProcessMaterial::_validate_property(PropertyInfo &p_property) const
|
||||
p_property.usage = PROPERTY_USAGE_NONE;
|
||||
}
|
||||
|
||||
if (!turbulence_enabled) {
|
||||
if (p_property.name == "turbulence_noise_strength" ||
|
||||
p_property.name == "turbulence_noise_scale" ||
|
||||
p_property.name == "turbulence_noise_speed" ||
|
||||
p_property.name == "turbulence_noise_speed_random" ||
|
||||
p_property.name == "turbulence_influence_over_life" ||
|
||||
p_property.name == "turbulence_influence" ||
|
||||
p_property.name == "turbulence_initial_displacement") {
|
||||
p_property.usage &= ~PROPERTY_USAGE_EDITOR;
|
||||
}
|
||||
}
|
||||
|
||||
if (p_property.name == "collision_friction" && collision_mode != COLLISION_RIGID) {
|
||||
p_property.usage = PROPERTY_USAGE_NONE;
|
||||
}
|
||||
@@ -2263,7 +2251,7 @@ void ParticleProcessMaterial::_bind_methods() {
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::OBJECT, "anim_offset_curve", PROPERTY_HINT_RESOURCE_TYPE, "CurveTexture"), "set_param_texture", "get_param_texture", PARAM_ANIM_OFFSET);
|
||||
|
||||
ADD_GROUP("Turbulence", "turbulence_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "turbulence_enabled", PROPERTY_HINT_GROUP_ENABLE), "set_turbulence_enabled", "get_turbulence_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "turbulence_enabled", PROPERTY_HINT_GROUP_ENABLE, "feature"), "set_turbulence_enabled", "get_turbulence_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "turbulence_noise_strength", PROPERTY_HINT_RANGE, "0,20,0.01"), "set_turbulence_noise_strength", "get_turbulence_noise_strength");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "turbulence_noise_scale", PROPERTY_HINT_RANGE, "0,10,0.001,or_greater"), "set_turbulence_noise_scale", "get_turbulence_noise_scale");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "turbulence_noise_speed"), "set_turbulence_noise_speed", "get_turbulence_noise_speed");
|
||||
|
||||
Reference in New Issue
Block a user