You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add const lvalue ref to editor/* container parameters
This commit is contained in:
@@ -127,7 +127,7 @@ public:
|
||||
void show_port_preview(VisualShader::Type p_type, int p_node_id, int p_port_id, bool p_is_valid);
|
||||
void set_node_position(VisualShader::Type p_type, int p_id, const Vector2 &p_position);
|
||||
void refresh_node_ports(VisualShader::Type p_type, int p_node);
|
||||
void set_input_port_default_value(VisualShader::Type p_type, int p_node_id, int p_port_id, Variant p_value);
|
||||
void set_input_port_default_value(VisualShader::Type p_type, int p_node_id, int p_port_id, const Variant &p_value);
|
||||
void update_parameter_refs();
|
||||
void set_parameter_name(VisualShader::Type p_type, int p_node_id, const String &p_name);
|
||||
void update_curve(int p_node_id);
|
||||
@@ -154,7 +154,7 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
void set_edited_property(Variant p_variant);
|
||||
void set_edited_property(const Variant &p_variant);
|
||||
Variant get_edited_property() const;
|
||||
|
||||
VisualShaderEditedProperty() {}
|
||||
@@ -360,7 +360,7 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
void _draw_color_over_button(Object *p_obj, Color p_color);
|
||||
|
||||
void _setup_node(VisualShaderNode *p_node, const Vector<Variant> &p_ops);
|
||||
void _add_node(int p_idx, const Vector<Variant> &p_ops, String p_resource_path = "", int p_node_idx = -1);
|
||||
void _add_node(int p_idx, const Vector<Variant> &p_ops, const String &p_resource_path = "", int p_node_idx = -1);
|
||||
void _add_varying(const String &p_name, VisualShader::VaryingMode p_mode, VisualShader::VaryingType p_type);
|
||||
void _remove_varying(const String &p_name);
|
||||
void _update_options_menu();
|
||||
@@ -416,8 +416,8 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
|
||||
void _convert_constants_to_parameters(bool p_vice_versa);
|
||||
void _replace_node(VisualShader::Type p_type_id, int p_node_id, const StringName &p_from, const StringName &p_to);
|
||||
void _update_constant(VisualShader::Type p_type_id, int p_node_id, Variant p_var, int p_preview_port);
|
||||
void _update_parameter(VisualShader::Type p_type_id, int p_node_id, Variant p_var, int p_preview_port);
|
||||
void _update_constant(VisualShader::Type p_type_id, int p_node_id, const Variant &p_var, int p_preview_port);
|
||||
void _update_parameter(VisualShader::Type p_type_id, int p_node_id, const Variant &p_var, int p_preview_port);
|
||||
|
||||
void _connection_to_empty(const String &p_from, int p_from_slot, const Vector2 &p_release_position);
|
||||
void _connection_from_empty(const String &p_to, int p_to_slot, const Vector2 &p_release_position);
|
||||
@@ -470,9 +470,9 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
void _mode_selected(int p_id);
|
||||
void _custom_mode_toggled(bool p_enabled);
|
||||
|
||||
void _input_select_item(Ref<VisualShaderNodeInput> p_input, String p_name);
|
||||
void _parameter_ref_select_item(Ref<VisualShaderNodeParameterRef> p_parameter_ref, String p_name);
|
||||
void _varying_select_item(Ref<VisualShaderNodeVarying> p_varying, String p_name);
|
||||
void _input_select_item(Ref<VisualShaderNodeInput> p_input, const String &p_name);
|
||||
void _parameter_ref_select_item(Ref<VisualShaderNodeParameterRef> p_parameter_ref, const String &p_name);
|
||||
void _varying_select_item(Ref<VisualShaderNodeVarying> p_varying, const String &p_name);
|
||||
|
||||
void _float_constant_selected(int p_which);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user