From 7f3a0cbd0a36d84a8ca5c5f2afa622204343f9f1 Mon Sep 17 00:00:00 2001 From: Micky Date: Wed, 31 Aug 2022 11:34:43 +0200 Subject: [PATCH] Modify newlines in Editor Spin Slider tooltip Makes both key suggestions easier to read. (cherry picked from commit a2ba189fef5d7e8b0278c8de3802fb925097befa) --- editor/editor_spin_slider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 164510c23..b49371e1f 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -64,7 +64,7 @@ String EditorSpinSlider::get_tooltip(const Point2 &p_pos) const { #else const int key = KEY_CONTROL; #endif - return rtos(get_value()) + "\n\n" + vformat(TTR("Hold %s to round to integers. Hold Shift for more precise changes."), find_keycode_name(key)); + return rtos(get_value()) + "\n\n" + vformat(TTR("Hold %s to round to integers.\nHold Shift for more precise changes."), find_keycode_name(key)); } return rtos(get_value()); }