You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Set auto translate mode for drag previews
- Controls
- `LineEdit`, `TextEdit`: Always disabled since it's dragging user input.
- `TabBar`: Use the same auto translate mode as the node.
- `RichTextLabel`: Always disable since auto translation is done
differently from other controls (selection text you get
programmatically is always after auto translation).
- Editor
- Disable drag preview auto translation if the text is user input,
filename, or class name.
- Also disabled unexpected auto translation for audio bus effect names.
This commit is contained in:
@@ -3241,6 +3241,7 @@ Variant AnimationTrackEdit::get_drag_data(const Point2 &p_point) {
|
||||
tb->set_flat(true);
|
||||
tb->set_text(path_cache);
|
||||
tb->set_icon(icon_cache);
|
||||
tb->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
tb->add_theme_constant_override("icon_max_width", get_theme_constant("class_icon_size", EditorStringName(Editor)));
|
||||
set_drag_preview(tb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user