You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Fixed #21527 (Show hint to right click when curve editor is empty)
This commit is contained in:
@@ -736,6 +736,9 @@ void CurveEditor::_draw() {
|
|||||||
if (_selected_point > 0 && _selected_point + 1 < curve.get_point_count()) {
|
if (_selected_point > 0 && _selected_point + 1 < curve.get_point_count()) {
|
||||||
text_color.a *= 0.4;
|
text_color.a *= 0.4;
|
||||||
draw_string(font, Vector2(50, font_height), TTR("Hold Shift to edit tangents individually"), text_color);
|
draw_string(font, Vector2(50, font_height), TTR("Hold Shift to edit tangents individually"), text_color);
|
||||||
|
} else if (curve.get_point_count() == 0) {
|
||||||
|
text_color.a *= 0.4;
|
||||||
|
draw_string(font, Vector2(50, font_height), TTR("Right click to add point"), text_color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user