You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix minimap capturing events and improve its theme
Add an editor setting for minimap opacity in visual editors
This commit is contained in:
@@ -1282,6 +1282,9 @@ void VisualShaderEditor::_update_graph() {
|
||||
|
||||
graph->connect_node(itos(from), from_idx, itos(to), to_idx);
|
||||
}
|
||||
|
||||
float graph_minimap_opacity = EditorSettings::get_singleton()->get("editors/visual_editors/minimap_opacity");
|
||||
graph->set_minimap_opacity(graph_minimap_opacity);
|
||||
}
|
||||
|
||||
VisualShader::Type VisualShaderEditor::get_current_shader_type() const {
|
||||
@@ -3161,6 +3164,8 @@ VisualShaderEditor::VisualShaderEditor() {
|
||||
graph->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
add_child(graph);
|
||||
graph->set_drag_forwarding(this);
|
||||
float graph_minimap_opacity = EditorSettings::get_singleton()->get("editors/visual_editors/minimap_opacity");
|
||||
graph->set_minimap_opacity(graph_minimap_opacity);
|
||||
graph->add_valid_right_disconnect_type(VisualShaderNode::PORT_TYPE_SCALAR);
|
||||
graph->add_valid_right_disconnect_type(VisualShaderNode::PORT_TYPE_SCALAR_INT);
|
||||
graph->add_valid_right_disconnect_type(VisualShaderNode::PORT_TYPE_BOOLEAN);
|
||||
|
||||
Reference in New Issue
Block a user