Merge pull request #64885 from Mickeon/rename-tooltip-hint
Rename `hint_tooltip` to `tooltip_text` & setter getter
This commit is contained in:
commit
f7f8af232c
|
@ -154,9 +154,9 @@
|
|||
<return type="Object" />
|
||||
<param index="0" name="for_text" type="String" />
|
||||
<description>
|
||||
Virtual method to be implemented by the user. Returns a [Control] node that should be used as a tooltip instead of the default one. The [param for_text] includes the contents of the [member hint_tooltip] property.
|
||||
Virtual method to be implemented by the user. Returns a [Control] node that should be used as a tooltip instead of the default one. The [param for_text] includes the contents of the [member tooltip_text] property.
|
||||
The returned node must be of type [Control] or Control-derived. It can have child nodes of any type. It is freed when the tooltip disappears, so make sure you always provide a new instance (if you want to use a pre-existing node from your scene tree, you can duplicate it and pass the duplicated instance). When [code]null[/code] or a non-Control node is returned, the default tooltip will be used instead.
|
||||
The returned node will be added as child to a [PopupPanel], so you should only provide the contents of that panel. That [PopupPanel] can be themed using [method Theme.set_stylebox] for the type [code]"TooltipPanel"[/code] (see [member hint_tooltip] for an example).
|
||||
The returned node will be added as child to a [PopupPanel], so you should only provide the contents of that panel. That [PopupPanel] can be themed using [method Theme.set_stylebox] for the type [code]"TooltipPanel"[/code] (see [member tooltip_text] for an example).
|
||||
[b]Note:[/b] The tooltip is shrunk to minimal size. If you want to ensure it's fully visible, you might want to set its [member custom_minimum_size] to some non-zero value.
|
||||
[b]Note:[/b] The node (and any relevant children) should be [member CanvasItem.visible] when returned, otherwise, the viewport that instantiates it will not be able to calculate its minimum size reliably.
|
||||
Example of usage with a custom-constructed node:
|
||||
|
@ -527,7 +527,8 @@
|
|||
<return type="String" />
|
||||
<param index="0" name="at_position" type="Vector2" default="Vector2(0, 0)" />
|
||||
<description>
|
||||
Returns the tooltip, which will appear when the cursor is resting over this control. See [member hint_tooltip].
|
||||
Returns the tooltip text [param at_position] in local coordinates, which will typically appear when the cursor is resting over this control. By default, it returns [member tooltip_text].
|
||||
[b]Note:[/b] This method can be overriden to customise its behaviour. If this method returns an empty [String], no tooltip is displayed.
|
||||
</description>
|
||||
</method>
|
||||
<method name="grab_click_focus">
|
||||
|
@ -1005,28 +1006,6 @@
|
|||
<member name="grow_vertical" type="int" setter="set_v_grow_direction" getter="get_v_grow_direction" enum="Control.GrowDirection" default="1">
|
||||
Controls the direction on the vertical axis in which the control should grow if its vertical minimum size is changed to be greater than its current size, as the control always has to be at least the minimum size.
|
||||
</member>
|
||||
<member name="hint_tooltip" type="String" setter="set_tooltip" getter="_get_tooltip" default="""">
|
||||
Changes the tooltip text. The tooltip appears when the user's mouse cursor stays idle over this control for a few moments, provided that the [member mouse_filter] property is not [constant MOUSE_FILTER_IGNORE]. You can change the time required for the tooltip to appear with [code]gui/timers/tooltip_delay_sec[/code] option in Project Settings.
|
||||
The tooltip popup will use either a default implementation, or a custom one that you can provide by overriding [method _make_custom_tooltip]. The default tooltip includes a [PopupPanel] and [Label] whose theme properties can be customized using [Theme] methods with the [code]"TooltipPanel"[/code] and [code]"TooltipLabel"[/code] respectively. For example:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
var style_box = StyleBoxFlat.new()
|
||||
style_box.set_bg_color(Color(1, 1, 0))
|
||||
style_box.set_border_width_all(2)
|
||||
# We assume here that the `theme` property has been assigned a custom Theme beforehand.
|
||||
theme.set_stylebox("panel", "TooltipPanel", style_box)
|
||||
theme.set_color("font_color", "TooltipLabel", Color(0, 1, 1))
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
var styleBox = new StyleBoxFlat();
|
||||
styleBox.SetBgColor(new Color(1, 1, 0));
|
||||
styleBox.SetBorderWidthAll(2);
|
||||
// We assume here that the `Theme` property has been assigned a custom Theme beforehand.
|
||||
Theme.SetStyleBox("panel", "TooltipPanel", styleBox);
|
||||
Theme.SetColor("font_color", "TooltipLabel", new Color(0, 1, 1));
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</member>
|
||||
<member name="layout_direction" type="int" setter="set_layout_direction" getter="get_layout_direction" enum="Control.LayoutDirection" default="0">
|
||||
Controls layout direction and text writing direction. Right-to-left layouts are necessary for certain languages (e.g. Arabic and Hebrew).
|
||||
</member>
|
||||
|
@ -1067,7 +1046,7 @@
|
|||
The node's rotation around its pivot, in radians. See [member pivot_offset] to change the pivot's position.
|
||||
</member>
|
||||
<member name="scale" type="Vector2" setter="set_scale" getter="get_scale" default="Vector2(1, 1)">
|
||||
The node's scale, relative to its [member size]. Change this property to scale the node around its [member pivot_offset]. The Control's [member hint_tooltip] will also scale according to this value.
|
||||
The node's scale, relative to its [member size]. Change this property to scale the node around its [member pivot_offset]. The Control's [member tooltip_text] will also scale according to this value.
|
||||
[b]Note:[/b] This property is mainly intended to be used for animation purposes. Text inside the Control will look pixelated or blurry when the Control is scaled. To support multiple resolutions in your project, use an appropriate viewport stretch mode as described in the [url=$DOCS_URL/tutorials/viewports/multiple_resolutions.html]documentation[/url] instead of scaling Controls individually.
|
||||
[b]Note:[/b] If the Control node is a child of a [Container] node, the scale will be reset to [code]Vector2(1, 1)[/code] when the scene is instantiated. To set the Control's scale when it's instantiated, wait for one frame using [code]await get_tree().process_frame[/code] then set its [member scale] property.
|
||||
</member>
|
||||
|
@ -1092,6 +1071,28 @@
|
|||
[b]Note:[/b] To look up [Control]'s own items use various [code]get_theme_*[/code] methods without specifying [code]theme_type[/code].
|
||||
[b]Note:[/b] Theme items are looked for in the tree order, from branch to root, where each [Control] node is checked for its [member theme] property. The earliest match against any type/class name is returned. The project-level Theme and the default Theme are checked last.
|
||||
</member>
|
||||
<member name="tooltip_text" type="String" setter="set_tooltip_text" getter="get_tooltip_text" default="""">
|
||||
The default tooltip text. The tooltip appears when the user's mouse cursor stays idle over this control for a few moments, provided that the [member mouse_filter] property is not [constant MOUSE_FILTER_IGNORE]. The time required for the tooltip to appear can be changed with the [code]gui/timers/tooltip_delay_sec[/code] option in Project Settings. See also [method get_tooltip].
|
||||
The tooltip popup will use either a default implementation, or a custom one that you can provide by overriding [method _make_custom_tooltip]. The default tooltip includes a [PopupPanel] and [Label] whose theme properties can be customized using [Theme] methods with the [code]"TooltipPanel"[/code] and [code]"TooltipLabel"[/code] respectively. For example:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
var style_box = StyleBoxFlat.new()
|
||||
style_box.set_bg_color(Color(1, 1, 0))
|
||||
style_box.set_border_width_all(2)
|
||||
# We assume here that the `theme` property has been assigned a custom Theme beforehand.
|
||||
theme.set_stylebox("panel", "TooltipPanel", style_box)
|
||||
theme.set_color("font_color", "TooltipLabel", Color(0, 1, 1))
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
var styleBox = new StyleBoxFlat();
|
||||
styleBox.SetBgColor(new Color(1, 1, 0));
|
||||
styleBox.SetBorderWidthAll(2);
|
||||
// We assume here that the `Theme` property has been assigned a custom Theme beforehand.
|
||||
Theme.SetStyleBox("panel", "TooltipPanel", styleBox);
|
||||
Theme.SetColor("font_color", "TooltipLabel", new Color(0, 1, 1));
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="focus_entered">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</brief_description>
|
||||
<description>
|
||||
Label displays plain text on the screen. It gives you control over the horizontal and vertical alignment and can wrap the text inside the node's bounding rectangle. It doesn't support bold, italics, or other formatting. For that, use [RichTextLabel] instead.
|
||||
[b]Note:[/b] Contrarily to most other [Control]s, Label's [member Control.mouse_filter] defaults to [constant Control.MOUSE_FILTER_IGNORE] (i.e. it doesn't react to mouse input events). This implies that a label won't display any configured [member Control.hint_tooltip], unless you change its mouse filter.
|
||||
[b]Note:[/b] Contrarily to most other [Control]s, Label's [member Control.mouse_filter] defaults to [constant Control.MOUSE_FILTER_IGNORE] (i.e. it doesn't react to mouse input events). This implies that a label won't display any configured [member Control.tooltip_text], unless you change its mouse filter.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link title="2D Dodge The Creeps Demo">https://godotengine.org/asset-library/asset/515</link>
|
||||
|
|
|
@ -731,9 +731,9 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
|
|||
store_command_checkbox->set_pressed(true);
|
||||
store_command_checkbox->set_text(TTR("Store Command"));
|
||||
#ifdef APPLE_STYLE_KEYS
|
||||
store_command_checkbox->set_tooltip(TTR("Toggles between serializing 'command' and 'meta'. Used for compatibility with Windows/Linux style keyboard."));
|
||||
store_command_checkbox->set_tooltip_text(TTR("Toggles between serializing 'command' and 'meta'. Used for compatibility with Windows/Linux style keyboard."));
|
||||
#else
|
||||
store_command_checkbox->set_tooltip(TTR("Toggles between serializing 'command' and 'control'. Used for compatibility with Apple Style keyboards."));
|
||||
store_command_checkbox->set_tooltip_text(TTR("Toggles between serializing 'command' and 'control'. Used for compatibility with Apple Style keyboards."));
|
||||
#endif
|
||||
mod_container->add_child(store_command_checkbox);
|
||||
|
||||
|
@ -744,7 +744,7 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
|
|||
|
||||
physical_key_checkbox = memnew(CheckBox);
|
||||
physical_key_checkbox->set_text(TTR("Use Physical Keycode"));
|
||||
physical_key_checkbox->set_tooltip(TTR("Stores the physical position of the key on the keyboard rather than the key's value. Used for compatibility with non-latin layouts.\nThis should generally be enabled for most game shortcuts, but not in non-game applications."));
|
||||
physical_key_checkbox->set_tooltip_text(TTR("Stores the physical position of the key on the keyboard rather than the key's value. Used for compatibility with non-latin layouts.\nThis should generally be enabled for most game shortcuts, but not in non-game applications."));
|
||||
physical_key_checkbox->connect("toggled", callable_mp(this, &InputEventConfigurationDialog::_physical_keycode_toggled));
|
||||
physical_key_checkbox->hide();
|
||||
additional_options_container->add_child(physical_key_checkbox);
|
||||
|
@ -804,7 +804,7 @@ String ActionMapEditor::_check_new_action_name(const String &p_name) {
|
|||
|
||||
void ActionMapEditor::_add_edit_text_changed(const String &p_name) {
|
||||
String error = _check_new_action_name(p_name);
|
||||
add_button->set_tooltip(error);
|
||||
add_button->set_tooltip_text(error);
|
||||
add_button->set_disabled(!error.is_empty());
|
||||
}
|
||||
|
||||
|
|
|
@ -1750,13 +1750,13 @@ void AnimationTimelineEdit::update_values() {
|
|||
if (use_fps && animation->get_step() > 0) {
|
||||
length->set_value(animation->get_length() / animation->get_step());
|
||||
length->set_step(1);
|
||||
length->set_tooltip(TTR("Animation length (frames)"));
|
||||
time_icon->set_tooltip(TTR("Animation length (frames)"));
|
||||
length->set_tooltip_text(TTR("Animation length (frames)"));
|
||||
time_icon->set_tooltip_text(TTR("Animation length (frames)"));
|
||||
} else {
|
||||
length->set_value(animation->get_length());
|
||||
length->set_step(0.001);
|
||||
length->set_tooltip(TTR("Animation length (seconds)"));
|
||||
time_icon->set_tooltip(TTR("Animation length (seconds)"));
|
||||
length->set_tooltip_text(TTR("Animation length (seconds)"));
|
||||
time_icon->set_tooltip_text(TTR("Animation length (seconds)"));
|
||||
}
|
||||
|
||||
switch (animation->get_loop_mode()) {
|
||||
|
@ -1941,7 +1941,7 @@ AnimationTimelineEdit::AnimationTimelineEdit() {
|
|||
len_hb->add_child(expander);
|
||||
time_icon = memnew(TextureRect);
|
||||
time_icon->set_v_size_flags(SIZE_SHRINK_CENTER);
|
||||
time_icon->set_tooltip(TTR("Animation length (seconds)"));
|
||||
time_icon->set_tooltip_text(TTR("Animation length (seconds)"));
|
||||
len_hb->add_child(time_icon);
|
||||
length = memnew(EditorSpinSlider);
|
||||
length->set_min(0.001);
|
||||
|
@ -1950,12 +1950,12 @@ AnimationTimelineEdit::AnimationTimelineEdit() {
|
|||
length->set_allow_greater(true);
|
||||
length->set_custom_minimum_size(Vector2(70 * EDSCALE, 0));
|
||||
length->set_hide_slider(true);
|
||||
length->set_tooltip(TTR("Animation length (seconds)"));
|
||||
length->set_tooltip_text(TTR("Animation length (seconds)"));
|
||||
length->connect("value_changed", callable_mp(this, &AnimationTimelineEdit::_anim_length_changed));
|
||||
len_hb->add_child(length);
|
||||
loop = memnew(Button);
|
||||
loop->set_flat(true);
|
||||
loop->set_tooltip(TTR("Animation Looping"));
|
||||
loop->set_tooltip_text(TTR("Animation Looping"));
|
||||
loop->connect("pressed", callable_mp(this, &AnimationTimelineEdit::_anim_loop_pressed));
|
||||
loop->set_toggle_mode(true);
|
||||
len_hb->add_child(loop);
|
||||
|
@ -4599,7 +4599,7 @@ void AnimationTrackEditor::_update_tracks() {
|
|||
|
||||
g->set_type_and_name(icon, name, animation->track_get_path(i));
|
||||
g->set_root(root);
|
||||
g->set_tooltip(tooltip);
|
||||
g->set_tooltip_text(tooltip);
|
||||
g->set_timeline(timeline);
|
||||
groups.push_back(g);
|
||||
VBoxContainer *vb = memnew(VBoxContainer);
|
||||
|
@ -6637,7 +6637,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
imported_anim_warning = memnew(Button);
|
||||
imported_anim_warning->hide();
|
||||
imported_anim_warning->set_text(TTR("Imported Scene"));
|
||||
imported_anim_warning->set_tooltip(TTR("Warning: Editing imported animation"));
|
||||
imported_anim_warning->set_tooltip_text(TTR("Warning: Editing imported animation"));
|
||||
imported_anim_warning->connect("pressed", callable_mp(this, &AnimationTrackEditor::_show_imported_anim_warning));
|
||||
bottom_hb->add_child(imported_anim_warning);
|
||||
|
||||
|
@ -6648,7 +6648,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
bezier_edit_icon->set_disabled(true);
|
||||
bezier_edit_icon->set_toggle_mode(true);
|
||||
bezier_edit_icon->connect("pressed", callable_mp(this, &AnimationTrackEditor::_toggle_bezier_edit));
|
||||
bezier_edit_icon->set_tooltip(TTR("Toggle between the bezier curve editor and track editor."));
|
||||
bezier_edit_icon->set_tooltip_text(TTR("Toggle between the bezier curve editor and track editor."));
|
||||
|
||||
bottom_hb->add_child(bezier_edit_icon);
|
||||
|
||||
|
@ -6656,7 +6656,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
selected_filter->set_flat(true);
|
||||
selected_filter->connect("pressed", callable_mp(this, &AnimationTrackEditor::_view_group_toggle)); // Same function works the same.
|
||||
selected_filter->set_toggle_mode(true);
|
||||
selected_filter->set_tooltip(TTR("Only show tracks from nodes selected in tree."));
|
||||
selected_filter->set_tooltip_text(TTR("Only show tracks from nodes selected in tree."));
|
||||
|
||||
bottom_hb->add_child(selected_filter);
|
||||
|
||||
|
@ -6664,7 +6664,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
view_group->set_flat(true);
|
||||
view_group->connect("pressed", callable_mp(this, &AnimationTrackEditor::_view_group_toggle));
|
||||
view_group->set_toggle_mode(true);
|
||||
view_group->set_tooltip(TTR("Group tracks by node or display them as plain list."));
|
||||
view_group->set_tooltip_text(TTR("Group tracks by node or display them as plain list."));
|
||||
|
||||
bottom_hb->add_child(view_group);
|
||||
bottom_hb->add_child(memnew(VSeparator));
|
||||
|
@ -6683,7 +6683,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
step->set_step(0.001);
|
||||
step->set_hide_slider(true);
|
||||
step->set_custom_minimum_size(Size2(100, 0) * EDSCALE);
|
||||
step->set_tooltip(TTR("Animation step value."));
|
||||
step->set_tooltip_text(TTR("Animation step value."));
|
||||
bottom_hb->add_child(step);
|
||||
step->connect("value_changed", callable_mp(this, &AnimationTrackEditor::_update_step));
|
||||
step->set_read_only(true);
|
||||
|
@ -6715,7 +6715,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
|
|||
edit->set_text(TTR("Edit"));
|
||||
edit->set_flat(false);
|
||||
edit->set_disabled(true);
|
||||
edit->set_tooltip(TTR("Animation properties."));
|
||||
edit->set_tooltip_text(TTR("Animation properties."));
|
||||
edit->get_popup()->add_item(TTR("Copy Tracks"), EDIT_COPY_TRACKS);
|
||||
edit->get_popup()->add_item(TTR("Paste Tracks"), EDIT_PASTE_TRACKS);
|
||||
edit->get_popup()->add_separator();
|
||||
|
|
|
@ -1858,7 +1858,7 @@ void CodeTextEditor::update_toggle_scripts_button() {
|
|||
} else {
|
||||
toggle_scripts_button->set_icon(get_theme_icon(ScriptEditor::get_singleton()->is_scripts_panel_toggled() ? SNAME("Back") : SNAME("Forward"), SNAME("EditorIcons")));
|
||||
}
|
||||
toggle_scripts_button->set_tooltip(vformat("%s (%s)", TTR("Toggle Scripts Panel"), ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text()));
|
||||
toggle_scripts_button->set_tooltip_text(vformat("%s (%s)", TTR("Toggle Scripts Panel"), ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text()));
|
||||
}
|
||||
|
||||
CodeTextEditor::CodeTextEditor() {
|
||||
|
@ -1951,7 +1951,7 @@ CodeTextEditor::CodeTextEditor() {
|
|||
error_button->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
||||
error_button->set_default_cursor_shape(CURSOR_POINTING_HAND);
|
||||
error_button->connect("pressed", callable_mp(this, &CodeTextEditor::_error_button_pressed));
|
||||
error_button->set_tooltip(TTR("Errors"));
|
||||
error_button->set_tooltip_text(TTR("Errors"));
|
||||
set_error_count(0);
|
||||
|
||||
// Warnings
|
||||
|
@ -1961,14 +1961,14 @@ CodeTextEditor::CodeTextEditor() {
|
|||
warning_button->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
||||
warning_button->set_default_cursor_shape(CURSOR_POINTING_HAND);
|
||||
warning_button->connect("pressed", callable_mp(this, &CodeTextEditor::_warning_button_pressed));
|
||||
warning_button->set_tooltip(TTR("Warnings"));
|
||||
warning_button->set_tooltip_text(TTR("Warnings"));
|
||||
set_warning_count(0);
|
||||
|
||||
// Line and column
|
||||
line_and_col_txt = memnew(Label);
|
||||
status_bar->add_child(line_and_col_txt);
|
||||
line_and_col_txt->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
||||
line_and_col_txt->set_tooltip(TTR("Line and column numbers."));
|
||||
line_and_col_txt->set_tooltip_text(TTR("Line and column numbers."));
|
||||
line_and_col_txt->set_mouse_filter(MOUSE_FILTER_STOP);
|
||||
|
||||
text_editor->connect("gui_input", callable_mp(this, &CodeTextEditor::_text_editor_gui_input));
|
||||
|
|
|
@ -459,7 +459,7 @@ ConnectDialog::ConnectDialog() {
|
|||
vbc_right->add_margin_child(TTR("Extra Call Arguments:"), bind_editor, true);
|
||||
|
||||
unbind_count = memnew(SpinBox);
|
||||
unbind_count->set_tooltip(TTR("Allows to drop arguments sent by signal emitter."));
|
||||
unbind_count->set_tooltip_text(TTR("Allows to drop arguments sent by signal emitter."));
|
||||
unbind_count->connect("value_changed", callable_mp(this, &ConnectDialog::_unbind_count_changed));
|
||||
|
||||
vbc_right->add_margin_child(TTR("Unbind Signal Arguments:"), unbind_count);
|
||||
|
@ -480,13 +480,13 @@ ConnectDialog::ConnectDialog() {
|
|||
deferred = memnew(CheckBox);
|
||||
deferred->set_h_size_flags(0);
|
||||
deferred->set_text(TTR("Deferred"));
|
||||
deferred->set_tooltip(TTR("Defers the signal, storing it in a queue and only firing it at idle time."));
|
||||
deferred->set_tooltip_text(TTR("Defers the signal, storing it in a queue and only firing it at idle time."));
|
||||
vbc_right->add_child(deferred);
|
||||
|
||||
oneshot = memnew(CheckBox);
|
||||
oneshot->set_h_size_flags(0);
|
||||
oneshot->set_text(TTR("Oneshot"));
|
||||
oneshot->set_tooltip(TTR("Disconnects the signal after its first emission."));
|
||||
oneshot->set_tooltip_text(TTR("Disconnects the signal after its first emission."));
|
||||
vbc_right->add_child(oneshot);
|
||||
|
||||
cdbinds = memnew(ConnectDialogBinds);
|
||||
|
|
|
@ -775,7 +775,7 @@ CreateDialog::CreateDialog() {
|
|||
|
||||
favorite = memnew(Button);
|
||||
favorite->set_toggle_mode(true);
|
||||
favorite->set_tooltip(TTR("(Un)favorite selected item."));
|
||||
favorite->set_tooltip_text(TTR("(Un)favorite selected item."));
|
||||
favorite->connect("pressed", callable_mp(this, &CreateDialog::_favorite_toggled));
|
||||
search_hb->add_child(favorite);
|
||||
vbc->add_margin_child(TTR("Search:"), search_hb);
|
||||
|
|
|
@ -606,7 +606,7 @@ EditorProfiler::EditorProfiler() {
|
|||
display_time = memnew(OptionButton);
|
||||
display_time->add_item(TTR("Inclusive"));
|
||||
display_time->add_item(TTR("Self"));
|
||||
display_time->set_tooltip(TTR("Inclusive: Includes time from other functions called by this function.\nUse this to spot bottlenecks.\n\nSelf: Only count the time spent in the function itself, not in other functions called by that function.\nUse this to find individual functions to optimize."));
|
||||
display_time->set_tooltip_text(TTR("Inclusive: Includes time from other functions called by this function.\nUse this to spot bottlenecks.\n\nSelf: Only count the time spent in the function itself, not in other functions called by that function.\nUse this to find individual functions to optimize."));
|
||||
display_time->connect("item_selected", callable_mp(this, &EditorProfiler::_combo_changed));
|
||||
|
||||
hb->add_child(display_time);
|
||||
|
|
|
@ -369,7 +369,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
}
|
||||
}
|
||||
|
||||
vmem_total->set_tooltip(TTR("Bytes:") + " " + itos(total));
|
||||
vmem_total->set_tooltip_text(TTR("Bytes:") + " " + itos(total));
|
||||
vmem_total->set_text(String::humanize_size(total));
|
||||
|
||||
} else if (p_msg == "stack_dump") {
|
||||
|
@ -776,7 +776,7 @@ void ScriptEditorDebugger::_set_reason_text(const String &p_reason, MessageType
|
|||
reason->add_theme_color_override("font_color", get_theme_color(SNAME("success_color"), SNAME("Editor")));
|
||||
}
|
||||
reason->set_text(p_reason);
|
||||
reason->set_tooltip(p_reason.word_wrap(80));
|
||||
reason->set_tooltip_text(p_reason.word_wrap(80));
|
||||
}
|
||||
|
||||
void ScriptEditorDebugger::_notification(int p_what) {
|
||||
|
@ -964,7 +964,7 @@ void ScriptEditorDebugger::stop() {
|
|||
peer->close();
|
||||
peer.unref();
|
||||
reason->set_text("");
|
||||
reason->set_tooltip("");
|
||||
reason->set_tooltip_text("");
|
||||
}
|
||||
|
||||
node_path_cache.clear();
|
||||
|
@ -1706,7 +1706,7 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
|
|||
skip_breakpoints = memnew(Button);
|
||||
skip_breakpoints->set_flat(true);
|
||||
hbc->add_child(skip_breakpoints);
|
||||
skip_breakpoints->set_tooltip(TTR("Skip Breakpoints"));
|
||||
skip_breakpoints->set_tooltip_text(TTR("Skip Breakpoints"));
|
||||
skip_breakpoints->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_skip_breakpoints));
|
||||
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
|
@ -1714,7 +1714,7 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
|
|||
copy = memnew(Button);
|
||||
copy->set_flat(true);
|
||||
hbc->add_child(copy);
|
||||
copy->set_tooltip(TTR("Copy Error"));
|
||||
copy->set_tooltip_text(TTR("Copy Error"));
|
||||
copy->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_copy));
|
||||
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
|
@ -1722,14 +1722,14 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
|
|||
step = memnew(Button);
|
||||
step->set_flat(true);
|
||||
hbc->add_child(step);
|
||||
step->set_tooltip(TTR("Step Into"));
|
||||
step->set_tooltip_text(TTR("Step Into"));
|
||||
step->set_shortcut(ED_GET_SHORTCUT("debugger/step_into"));
|
||||
step->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_step));
|
||||
|
||||
next = memnew(Button);
|
||||
next->set_flat(true);
|
||||
hbc->add_child(next);
|
||||
next->set_tooltip(TTR("Step Over"));
|
||||
next->set_tooltip_text(TTR("Step Over"));
|
||||
next->set_shortcut(ED_GET_SHORTCUT("debugger/step_over"));
|
||||
next->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_next));
|
||||
|
||||
|
@ -1738,14 +1738,14 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
|
|||
dobreak = memnew(Button);
|
||||
dobreak->set_flat(true);
|
||||
hbc->add_child(dobreak);
|
||||
dobreak->set_tooltip(TTR("Break"));
|
||||
dobreak->set_tooltip_text(TTR("Break"));
|
||||
dobreak->set_shortcut(ED_GET_SHORTCUT("debugger/break"));
|
||||
dobreak->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_break));
|
||||
|
||||
docontinue = memnew(Button);
|
||||
docontinue->set_flat(true);
|
||||
hbc->add_child(docontinue);
|
||||
docontinue->set_tooltip(TTR("Continue"));
|
||||
docontinue->set_tooltip_text(TTR("Continue"));
|
||||
docontinue->set_shortcut(ED_GET_SHORTCUT("debugger/continue"));
|
||||
docontinue->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_continue));
|
||||
|
||||
|
@ -1917,7 +1917,7 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
|
|||
vmem_hb->add_child(vmem_refresh);
|
||||
vmem_export = memnew(Button);
|
||||
vmem_export->set_flat(true);
|
||||
vmem_export->set_tooltip(TTR("Export list to a CSV file"));
|
||||
vmem_export->set_tooltip_text(TTR("Export list to a CSV file"));
|
||||
vmem_hb->add_child(vmem_export);
|
||||
vmem_vb->add_child(vmem_hb);
|
||||
vmem_refresh->connect("pressed", callable_mp(this, &ScriptEditorDebugger::_video_mem_request));
|
||||
|
|
|
@ -142,7 +142,7 @@ EditorAbout::EditorAbout() {
|
|||
// Set the text to copy in metadata as it slightly differs from the button's text.
|
||||
version_btn->set_meta(META_TEXT_TO_COPY, "v" VERSION_FULL_BUILD + hash);
|
||||
version_btn->set_underline_mode(LinkButton::UNDERLINE_MODE_ON_HOVER);
|
||||
version_btn->set_tooltip(TTR("Click to copy."));
|
||||
version_btn->set_tooltip_text(TTR("Click to copy."));
|
||||
version_btn->connect("pressed", callable_mp(this, &EditorAbout::_version_button_pressed));
|
||||
version_info_vbc->add_child(version_btn);
|
||||
|
||||
|
|
|
@ -394,7 +394,7 @@ void EditorAudioBus::_show_value(float slider_value) {
|
|||
|
||||
// Also set the preview text as a standard Control tooltip.
|
||||
// This way, it can be seen when the slider is merely hovered (instead of dragged).
|
||||
slider->set_tooltip(text);
|
||||
slider->set_tooltip_text(text);
|
||||
audio_value_preview_label->set_text(text);
|
||||
const Vector2 slider_size = slider->get_size();
|
||||
const Vector2 slider_position = slider->get_global_position();
|
||||
|
@ -778,7 +778,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
|
|||
buses = p_buses;
|
||||
is_master = p_is_master;
|
||||
|
||||
set_tooltip(TTR("Drag & drop to rearrange."));
|
||||
set_tooltip_text(TTR("Drag & drop to rearrange."));
|
||||
|
||||
VBoxContainer *vb = memnew(VBoxContainer);
|
||||
add_child(vb);
|
||||
|
@ -795,21 +795,21 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
|
|||
solo = memnew(Button);
|
||||
solo->set_flat(true);
|
||||
solo->set_toggle_mode(true);
|
||||
solo->set_tooltip(TTR("Solo"));
|
||||
solo->set_tooltip_text(TTR("Solo"));
|
||||
solo->set_focus_mode(FOCUS_NONE);
|
||||
solo->connect("pressed", callable_mp(this, &EditorAudioBus::_solo_toggled));
|
||||
hbc->add_child(solo);
|
||||
mute = memnew(Button);
|
||||
mute->set_flat(true);
|
||||
mute->set_toggle_mode(true);
|
||||
mute->set_tooltip(TTR("Mute"));
|
||||
mute->set_tooltip_text(TTR("Mute"));
|
||||
mute->set_focus_mode(FOCUS_NONE);
|
||||
mute->connect("pressed", callable_mp(this, &EditorAudioBus::_mute_toggled));
|
||||
hbc->add_child(mute);
|
||||
bypass = memnew(Button);
|
||||
bypass->set_flat(true);
|
||||
bypass->set_toggle_mode(true);
|
||||
bypass->set_tooltip(TTR("Bypass"));
|
||||
bypass->set_tooltip_text(TTR("Bypass"));
|
||||
bypass->set_focus_mode(FOCUS_NONE);
|
||||
bypass->connect("pressed", callable_mp(this, &EditorAudioBus::_bypass_toggled));
|
||||
hbc->add_child(bypass);
|
||||
|
@ -935,7 +935,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
|
|||
bus_options->set_shortcut_context(this);
|
||||
bus_options->set_h_size_flags(SIZE_SHRINK_END);
|
||||
bus_options->set_anchor(SIDE_RIGHT, 0.0);
|
||||
bus_options->set_tooltip(TTR("Bus Options"));
|
||||
bus_options->set_tooltip_text(TTR("Bus Options"));
|
||||
hbc->add_child(bus_options);
|
||||
|
||||
bus_popup = bus_options->get_popup();
|
||||
|
@ -1280,7 +1280,7 @@ EditorAudioBuses::EditorAudioBuses() {
|
|||
add = memnew(Button);
|
||||
top_hb->add_child(add);
|
||||
add->set_text(TTR("Add Bus"));
|
||||
add->set_tooltip(TTR("Add a new Audio Bus to this layout."));
|
||||
add->set_tooltip_text(TTR("Add a new Audio Bus to this layout."));
|
||||
add->connect("pressed", callable_mp(this, &EditorAudioBuses::_add_bus));
|
||||
|
||||
VSeparator *separator = memnew(VSeparator);
|
||||
|
@ -1288,25 +1288,25 @@ EditorAudioBuses::EditorAudioBuses() {
|
|||
|
||||
load = memnew(Button);
|
||||
load->set_text(TTR("Load"));
|
||||
load->set_tooltip(TTR("Load an existing Bus Layout."));
|
||||
load->set_tooltip_text(TTR("Load an existing Bus Layout."));
|
||||
top_hb->add_child(load);
|
||||
load->connect("pressed", callable_mp(this, &EditorAudioBuses::_load_layout));
|
||||
|
||||
save_as = memnew(Button);
|
||||
save_as->set_text(TTR("Save As"));
|
||||
save_as->set_tooltip(TTR("Save this Bus Layout to a file."));
|
||||
save_as->set_tooltip_text(TTR("Save this Bus Layout to a file."));
|
||||
top_hb->add_child(save_as);
|
||||
save_as->connect("pressed", callable_mp(this, &EditorAudioBuses::_save_as_layout));
|
||||
|
||||
_default = memnew(Button);
|
||||
_default->set_text(TTR("Load Default"));
|
||||
_default->set_tooltip(TTR("Load the default Bus Layout."));
|
||||
_default->set_tooltip_text(TTR("Load the default Bus Layout."));
|
||||
top_hb->add_child(_default);
|
||||
_default->connect("pressed", callable_mp(this, &EditorAudioBuses::_load_default_layout));
|
||||
|
||||
_new = memnew(Button);
|
||||
_new->set_text(TTR("Create"));
|
||||
_new->set_tooltip(TTR("Create a new Bus Layout."));
|
||||
_new->set_tooltip_text(TTR("Create a new Bus Layout."));
|
||||
top_hb->add_child(_new);
|
||||
_new->connect("pressed", callable_mp(this, &EditorAudioBuses::_new_layout));
|
||||
|
||||
|
|
|
@ -1624,13 +1624,13 @@ EditorFileDialog::EditorFileDialog() {
|
|||
|
||||
dir_prev = memnew(Button);
|
||||
dir_prev->set_flat(true);
|
||||
dir_prev->set_tooltip(TTR("Go to previous folder."));
|
||||
dir_prev->set_tooltip_text(TTR("Go to previous folder."));
|
||||
dir_next = memnew(Button);
|
||||
dir_next->set_flat(true);
|
||||
dir_next->set_tooltip(TTR("Go to next folder."));
|
||||
dir_next->set_tooltip_text(TTR("Go to next folder."));
|
||||
dir_up = memnew(Button);
|
||||
dir_up->set_flat(true);
|
||||
dir_up->set_tooltip(TTR("Go to parent folder."));
|
||||
dir_up->set_tooltip_text(TTR("Go to parent folder."));
|
||||
|
||||
pathhb->add_child(dir_prev);
|
||||
pathhb->add_child(dir_next);
|
||||
|
@ -1654,14 +1654,14 @@ EditorFileDialog::EditorFileDialog() {
|
|||
|
||||
refresh = memnew(Button);
|
||||
refresh->set_flat(true);
|
||||
refresh->set_tooltip(TTR("Refresh files."));
|
||||
refresh->set_tooltip_text(TTR("Refresh files."));
|
||||
refresh->connect("pressed", callable_mp(this, &EditorFileDialog::update_file_list));
|
||||
pathhb->add_child(refresh);
|
||||
|
||||
favorite = memnew(Button);
|
||||
favorite->set_flat(true);
|
||||
favorite->set_toggle_mode(true);
|
||||
favorite->set_tooltip(TTR("(Un)favorite current folder."));
|
||||
favorite->set_tooltip_text(TTR("(Un)favorite current folder."));
|
||||
favorite->connect("pressed", callable_mp(this, &EditorFileDialog::_favorite_pressed));
|
||||
pathhb->add_child(favorite);
|
||||
|
||||
|
@ -1669,7 +1669,7 @@ EditorFileDialog::EditorFileDialog() {
|
|||
show_hidden->set_flat(true);
|
||||
show_hidden->set_toggle_mode(true);
|
||||
show_hidden->set_pressed(is_showing_hidden_files());
|
||||
show_hidden->set_tooltip(TTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->set_tooltip_text(TTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->connect("toggled", callable_mp(this, &EditorFileDialog::set_show_hidden_files));
|
||||
pathhb->add_child(show_hidden);
|
||||
|
||||
|
@ -1684,7 +1684,7 @@ EditorFileDialog::EditorFileDialog() {
|
|||
mode_thumbnails->set_toggle_mode(true);
|
||||
mode_thumbnails->set_pressed(display_mode == DISPLAY_THUMBNAILS);
|
||||
mode_thumbnails->set_button_group(view_mode_group);
|
||||
mode_thumbnails->set_tooltip(TTR("View items as a grid of thumbnails."));
|
||||
mode_thumbnails->set_tooltip_text(TTR("View items as a grid of thumbnails."));
|
||||
pathhb->add_child(mode_thumbnails);
|
||||
|
||||
mode_list = memnew(Button);
|
||||
|
@ -1693,7 +1693,7 @@ EditorFileDialog::EditorFileDialog() {
|
|||
mode_list->set_toggle_mode(true);
|
||||
mode_list->set_pressed(display_mode == DISPLAY_LIST);
|
||||
mode_list->set_button_group(view_mode_group);
|
||||
mode_list->set_tooltip(TTR("View items as a list."));
|
||||
mode_list->set_tooltip_text(TTR("View items as a list."));
|
||||
pathhb->add_child(mode_list);
|
||||
|
||||
shortcuts_container = memnew(HBoxContainer);
|
||||
|
|
|
@ -2088,7 +2088,7 @@ void EditorHelp::update_toggle_scripts_button() {
|
|||
} else {
|
||||
toggle_scripts_button->set_icon(get_theme_icon(ScriptEditor::get_singleton()->is_scripts_panel_toggled() ? SNAME("Back") : SNAME("Forward"), SNAME("EditorIcons")));
|
||||
}
|
||||
toggle_scripts_button->set_tooltip(vformat("%s (%s)", TTR("Toggle Scripts Panel"), ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text()));
|
||||
toggle_scripts_button->set_tooltip_text(vformat("%s (%s)", TTR("Toggle Scripts Panel"), ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text()));
|
||||
}
|
||||
|
||||
void EditorHelp::_bind_methods() {
|
||||
|
|
|
@ -206,7 +206,7 @@ EditorHelpSearch::EditorHelpSearch() {
|
|||
|
||||
case_sensitive_button = memnew(Button);
|
||||
case_sensitive_button->set_flat(true);
|
||||
case_sensitive_button->set_tooltip(TTR("Case Sensitive"));
|
||||
case_sensitive_button->set_tooltip_text(TTR("Case Sensitive"));
|
||||
case_sensitive_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
|
||||
case_sensitive_button->set_toggle_mode(true);
|
||||
case_sensitive_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
|
@ -214,7 +214,7 @@ EditorHelpSearch::EditorHelpSearch() {
|
|||
|
||||
hierarchy_button = memnew(Button);
|
||||
hierarchy_button->set_flat(true);
|
||||
hierarchy_button->set_tooltip(TTR("Show Hierarchy"));
|
||||
hierarchy_button->set_tooltip_text(TTR("Show Hierarchy"));
|
||||
hierarchy_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
|
||||
hierarchy_button->set_toggle_mode(true);
|
||||
hierarchy_button->set_pressed(true);
|
||||
|
|
|
@ -2051,7 +2051,7 @@ void EditorInspectorArray::_setup() {
|
|||
ae.panel->set_mouse_filter(MOUSE_FILTER_PASS);
|
||||
ae.panel->set_drag_forwarding(this);
|
||||
ae.panel->set_meta("index", begin_array_index + i);
|
||||
ae.panel->set_tooltip(vformat(TTR("Element %d: %s%d*"), i, array_element_prefix, i));
|
||||
ae.panel->set_tooltip_text(vformat(TTR("Element %d: %s%d*"), i, array_element_prefix, i));
|
||||
ae.panel->connect("focus_entered", callable_mp((CanvasItem *)ae.panel, &PanelContainer::update));
|
||||
ae.panel->connect("focus_exited", callable_mp((CanvasItem *)ae.panel, &PanelContainer::update));
|
||||
ae.panel->connect("draw", callable_mp(this, &EditorInspectorArray::_panel_draw).bind(i));
|
||||
|
@ -2786,7 +2786,7 @@ void EditorInspector::update_tree() {
|
|||
class_descr_cache[doc_name] = descr;
|
||||
}
|
||||
|
||||
category->set_tooltip(p.name + "::" + (class_descr_cache[doc_name].is_empty() ? "" : class_descr_cache[doc_name]));
|
||||
category->set_tooltip_text(p.name + "::" + (class_descr_cache[doc_name].is_empty() ? "" : class_descr_cache[doc_name]));
|
||||
}
|
||||
|
||||
// Add editors at the start of a category.
|
||||
|
@ -2979,7 +2979,7 @@ void EditorInspector::update_tree() {
|
|||
Color c = sscolor;
|
||||
c.a /= level;
|
||||
section->setup(acc_path, label, object, c, use_folding, section_depth);
|
||||
section->set_tooltip(tooltip);
|
||||
section->set_tooltip_text(tooltip);
|
||||
|
||||
// Add editors at the start of a group.
|
||||
for (Ref<EditorInspectorPlugin> &ped : valid_plugins) {
|
||||
|
@ -3223,9 +3223,9 @@ void EditorInspector::update_tree() {
|
|||
ep->connect("resource_selected", callable_mp(this, &EditorInspector::_resource_selected), CONNECT_DEFERRED);
|
||||
ep->connect("object_id_selected", callable_mp(this, &EditorInspector::_object_id_selected), CONNECT_DEFERRED);
|
||||
if (!doc_info.description.is_empty()) {
|
||||
ep->set_tooltip(property_prefix + p.name + "::" + doc_info.description);
|
||||
ep->set_tooltip_text(property_prefix + p.name + "::" + doc_info.description);
|
||||
} else {
|
||||
ep->set_tooltip(property_prefix + p.name);
|
||||
ep->set_tooltip_text(property_prefix + p.name);
|
||||
}
|
||||
ep->set_doc_path(doc_info.path);
|
||||
ep->update_property();
|
||||
|
|
|
@ -493,7 +493,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
|
|||
{
|
||||
lang_code = memnew(LineEdit);
|
||||
lang_code->set_max_length(3);
|
||||
lang_code->set_tooltip("Language");
|
||||
lang_code->set_tooltip_text("Language");
|
||||
vb_language->add_child(lang_code);
|
||||
}
|
||||
hb_locale->add_child(vb_language);
|
||||
|
@ -509,7 +509,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
|
|||
{
|
||||
script_code = memnew(LineEdit);
|
||||
script_code->set_max_length(4);
|
||||
script_code->set_tooltip("Script");
|
||||
script_code->set_tooltip_text("Script");
|
||||
vb_script->add_child(script_code);
|
||||
}
|
||||
hb_locale->add_child(vb_script);
|
||||
|
@ -525,7 +525,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
|
|||
{
|
||||
country_code = memnew(LineEdit);
|
||||
country_code->set_max_length(2);
|
||||
country_code->set_tooltip("Country");
|
||||
country_code->set_tooltip_text("Country");
|
||||
vb_country->add_child(country_code);
|
||||
}
|
||||
hb_locale->add_child(vb_country);
|
||||
|
@ -542,7 +542,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
|
|||
variant_code = memnew(LineEdit);
|
||||
variant_code->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
variant_code->set_placeholder("Variant");
|
||||
variant_code->set_tooltip("Variant");
|
||||
variant_code->set_tooltip_text("Variant");
|
||||
vb_variant->add_child(variant_code);
|
||||
}
|
||||
hb_locale->add_child(vb_variant);
|
||||
|
|
|
@ -415,7 +415,7 @@ EditorLog::EditorLog() {
|
|||
collapse_button = memnew(Button);
|
||||
collapse_button->set_flat(true);
|
||||
collapse_button->set_focus_mode(FOCUS_NONE);
|
||||
collapse_button->set_tooltip(TTR("Collapse duplicate messages into one log entry. Shows number of occurrences."));
|
||||
collapse_button->set_tooltip_text(TTR("Collapse duplicate messages into one log entry. Shows number of occurrences."));
|
||||
collapse_button->set_toggle_mode(true);
|
||||
collapse_button->set_pressed(false);
|
||||
collapse_button->connect("toggled", callable_mp(this, &EditorLog::_set_collapse));
|
||||
|
|
|
@ -95,7 +95,7 @@ private:
|
|||
toggle_button->set_toggle_mode(true);
|
||||
toggle_button->set_pressed(true);
|
||||
toggle_button->set_text(itos(message_count));
|
||||
toggle_button->set_tooltip(TTR(p_tooltip));
|
||||
toggle_button->set_tooltip_text(TTR(p_tooltip));
|
||||
// Don't tint the icon even when in "pressed" state.
|
||||
toggle_button->add_theme_color_override("icon_color_pressed", Color(1, 1, 1, 1));
|
||||
toggle_button->set_focus_mode(FOCUS_NONE);
|
||||
|
|
|
@ -845,7 +845,7 @@ void EditorNode::_update_update_spinner() {
|
|||
update_popup->set_item_checked(update_popup->get_item_index(SETTINGS_UPDATE_WHEN_CHANGED), !update_continuously);
|
||||
|
||||
if (update_continuously) {
|
||||
update_spinner->set_tooltip(TTR("Spins when the editor window redraws.\nUpdate Continuously is enabled, which can increase power usage. Click to disable it."));
|
||||
update_spinner->set_tooltip_text(TTR("Spins when the editor window redraws.\nUpdate Continuously is enabled, which can increase power usage. Click to disable it."));
|
||||
|
||||
// Use a different color for the update spinner when Update Continuously is enabled,
|
||||
// as this feature should only be enabled for troubleshooting purposes.
|
||||
|
@ -855,7 +855,7 @@ void EditorNode::_update_update_spinner() {
|
|||
update_spinner->set_self_modulate(
|
||||
gui_base->get_theme_color(SNAME("error_color"), SNAME("Editor")) * (dark_theme ? Color(1.1, 1.1, 1.1) : Color(4.25, 4.25, 4.25)));
|
||||
} else {
|
||||
update_spinner->set_tooltip(TTR("Spins when the editor window redraws."));
|
||||
update_spinner->set_tooltip_text(TTR("Spins when the editor window redraws."));
|
||||
update_spinner->set_self_modulate(Color(1, 1, 1));
|
||||
}
|
||||
|
||||
|
@ -2497,16 +2497,16 @@ void EditorNode::_run(bool p_current, const String &p_custom) {
|
|||
run_current_filename = run_filename;
|
||||
play_scene_button->set_pressed(true);
|
||||
play_scene_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
|
||||
play_scene_button->set_tooltip(TTR("Reload the played scene."));
|
||||
play_scene_button->set_tooltip_text(TTR("Reload the played scene."));
|
||||
} else if (!p_custom.is_empty()) {
|
||||
run_custom_filename = p_custom;
|
||||
play_custom_scene_button->set_pressed(true);
|
||||
play_custom_scene_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
|
||||
play_custom_scene_button->set_tooltip(TTR("Reload the played scene."));
|
||||
play_custom_scene_button->set_tooltip_text(TTR("Reload the played scene."));
|
||||
} else {
|
||||
play_button->set_pressed(true);
|
||||
play_button->set_icon(gui_base->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
|
||||
play_button->set_tooltip(TTR("Reload the played scene."));
|
||||
play_button->set_tooltip_text(TTR("Reload the played scene."));
|
||||
}
|
||||
stop_button->set_disabled(false);
|
||||
|
||||
|
@ -2534,13 +2534,13 @@ void EditorNode::_run_native(const Ref<EditorExportPreset> &p_preset) {
|
|||
void EditorNode::_reset_play_buttons() {
|
||||
play_button->set_pressed(false);
|
||||
play_button->set_icon(gui_base->get_theme_icon(SNAME("MainPlay"), SNAME("EditorIcons")));
|
||||
play_button->set_tooltip(TTR("Play the project."));
|
||||
play_button->set_tooltip_text(TTR("Play the project."));
|
||||
play_scene_button->set_pressed(false);
|
||||
play_scene_button->set_icon(gui_base->get_theme_icon(SNAME("PlayScene"), SNAME("EditorIcons")));
|
||||
play_scene_button->set_tooltip(TTR("Play the edited scene."));
|
||||
play_scene_button->set_tooltip_text(TTR("Play the edited scene."));
|
||||
play_custom_scene_button->set_pressed(false);
|
||||
play_custom_scene_button->set_icon(gui_base->get_theme_icon(SNAME("PlayCustom"), SNAME("EditorIcons")));
|
||||
play_custom_scene_button->set_tooltip(TTR("Play a custom scene."));
|
||||
play_custom_scene_button->set_tooltip_text(TTR("Play a custom scene."));
|
||||
}
|
||||
|
||||
void EditorNode::_android_build_source_selected(const String &p_file) {
|
||||
|
@ -6503,7 +6503,7 @@ EditorNode::EditorNode() {
|
|||
|
||||
scene_tab_add = memnew(Button);
|
||||
scene_tab_add->set_flat(true);
|
||||
scene_tab_add->set_tooltip(TTR("Add a new scene."));
|
||||
scene_tab_add->set_tooltip_text(TTR("Add a new scene."));
|
||||
scene_tab_add->set_icon(gui_base->get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
scene_tab_add->add_theme_color_override("icon_normal_color", Color(0.6f, 0.6f, 0.6f, 0.8f));
|
||||
scene_tabs->add_child(scene_tab_add);
|
||||
|
@ -6519,7 +6519,7 @@ EditorNode::EditorNode() {
|
|||
ED_SHORTCUT_AND_COMMAND("editor/distraction_free_mode", TTR("Distraction Free Mode"), KeyModifierMask::CMD | KeyModifierMask::SHIFT | Key::F11);
|
||||
ED_SHORTCUT_OVERRIDE("editor/distraction_free_mode", "macos", KeyModifierMask::CMD | KeyModifierMask::CTRL | Key::D);
|
||||
distraction_free->set_shortcut(ED_GET_SHORTCUT("editor/distraction_free_mode"));
|
||||
distraction_free->set_tooltip(TTR("Toggle distraction-free mode."));
|
||||
distraction_free->set_tooltip_text(TTR("Toggle distraction-free mode."));
|
||||
distraction_free->connect("pressed", callable_mp(this, &EditorNode::_toggle_distraction_free_mode));
|
||||
distraction_free->set_icon(gui_base->get_theme_icon(SNAME("DistractionFree"), SNAME("EditorIcons")));
|
||||
distraction_free->set_toggle_mode(true);
|
||||
|
@ -6571,7 +6571,7 @@ EditorNode::EditorNode() {
|
|||
prev_scene = memnew(Button);
|
||||
prev_scene->set_flat(true);
|
||||
prev_scene->set_icon(gui_base->get_theme_icon(SNAME("PrevScene"), SNAME("EditorIcons")));
|
||||
prev_scene->set_tooltip(TTR("Go to previously opened scene."));
|
||||
prev_scene->set_tooltip_text(TTR("Go to previously opened scene."));
|
||||
prev_scene->set_disabled(true);
|
||||
prev_scene->connect("pressed", callable_mp(this, &EditorNode::_menu_option).bind(FILE_OPEN_PREV));
|
||||
gui_base->add_child(prev_scene);
|
||||
|
@ -6829,7 +6829,7 @@ EditorNode::EditorNode() {
|
|||
pause_button->set_toggle_mode(true);
|
||||
pause_button->set_icon(gui_base->get_theme_icon(SNAME("Pause"), SNAME("EditorIcons")));
|
||||
pause_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
pause_button->set_tooltip(TTR("Pause the scene execution for debugging."));
|
||||
pause_button->set_tooltip_text(TTR("Pause the scene execution for debugging."));
|
||||
pause_button->set_disabled(true);
|
||||
play_hb->add_child(pause_button);
|
||||
|
||||
|
@ -6843,7 +6843,7 @@ EditorNode::EditorNode() {
|
|||
stop_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
stop_button->set_icon(gui_base->get_theme_icon(SNAME("Stop"), SNAME("EditorIcons")));
|
||||
stop_button->connect("pressed", callable_mp(this, &EditorNode::_menu_option).bind(RUN_STOP));
|
||||
stop_button->set_tooltip(TTR("Stop the scene."));
|
||||
stop_button->set_tooltip_text(TTR("Stop the scene."));
|
||||
stop_button->set_disabled(true);
|
||||
|
||||
ED_SHORTCUT("editor/stop", TTR("Stop"), Key::F8);
|
||||
|
@ -6885,7 +6885,7 @@ EditorNode::EditorNode() {
|
|||
write_movie_button->set_pressed(false);
|
||||
write_movie_button->set_icon(gui_base->get_theme_icon(SNAME("MainMovieWrite"), SNAME("EditorIcons")));
|
||||
write_movie_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
write_movie_button->set_tooltip(TTR("Enable Movie Maker mode.\nThe project will run at stable FPS and the visual and audio output will be recorded to a video file."));
|
||||
write_movie_button->set_tooltip_text(TTR("Enable Movie Maker mode.\nThe project will run at stable FPS and the visual and audio output will be recorded to a video file."));
|
||||
|
||||
// This button behaves differently, so color it as such.
|
||||
write_movie_button->add_theme_color_override("icon_normal_color", Color(1, 1, 1, 0.7));
|
||||
|
@ -7072,7 +7072,7 @@ EditorNode::EditorNode() {
|
|||
// Fade out the version label to be less prominent, but still readable.
|
||||
version_btn->set_self_modulate(Color(1, 1, 1, 0.65));
|
||||
version_btn->set_underline_mode(LinkButton::UNDERLINE_MODE_ON_HOVER);
|
||||
version_btn->set_tooltip(TTR("Click to copy."));
|
||||
version_btn->set_tooltip_text(TTR("Click to copy."));
|
||||
version_btn->connect("pressed", callable_mp(this, &EditorNode::_version_button_pressed));
|
||||
version_info_vbc->add_child(version_btn);
|
||||
|
||||
|
|
|
@ -150,14 +150,14 @@ void EditorPath::update_path() {
|
|||
}
|
||||
|
||||
current_object_label->set_text(" " + name); // An extra space so the text is not too close of the icon.
|
||||
set_tooltip(obj->get_class());
|
||||
set_tooltip_text(obj->get_class());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void EditorPath::clear_path() {
|
||||
set_disabled(true);
|
||||
set_tooltip("");
|
||||
set_tooltip_text("");
|
||||
|
||||
current_object_label->set_text("");
|
||||
current_object_icon->set_texture(nullptr);
|
||||
|
@ -230,5 +230,5 @@ EditorPath::EditorPath(EditorSelectionHistory *p_history) {
|
|||
sub_objects_menu->connect("about_to_popup", callable_mp(this, &EditorPath::_about_to_show));
|
||||
sub_objects_menu->connect("id_pressed", callable_mp(this, &EditorPath::_id_pressed));
|
||||
|
||||
set_tooltip(TTR("Open a list of sub-resources."));
|
||||
set_tooltip_text(TTR("Open a list of sub-resources."));
|
||||
}
|
||||
|
|
|
@ -394,7 +394,7 @@ void EditorPropertyLocale::_locale_pressed() {
|
|||
void EditorPropertyLocale::update_property() {
|
||||
String locale_code = get_edited_object()->get(get_edited_property());
|
||||
locale->set_text(locale_code);
|
||||
locale->set_tooltip(locale_code);
|
||||
locale->set_tooltip_text(locale_code);
|
||||
}
|
||||
|
||||
void EditorPropertyLocale::setup(const String &p_hint_text) {
|
||||
|
@ -482,7 +482,7 @@ void EditorPropertyPath::_path_pressed() {
|
|||
void EditorPropertyPath::update_property() {
|
||||
String full_path = get_edited_object()->get(get_edited_property());
|
||||
path->set_text(full_path);
|
||||
path->set_tooltip(full_path);
|
||||
path->set_tooltip_text(full_path);
|
||||
}
|
||||
|
||||
void EditorPropertyPath::setup(const Vector<String> &p_extensions, bool p_folder, bool p_global) {
|
||||
|
@ -3493,14 +3493,14 @@ void EditorPropertyColor::update_property() {
|
|||
|
||||
// Add a tooltip to display each channel's values without having to click the ColorPickerButton
|
||||
if (picker->is_editing_alpha()) {
|
||||
picker->set_tooltip(vformat(
|
||||
picker->set_tooltip_text(vformat(
|
||||
"R: %s\nG: %s\nB: %s\nA: %s",
|
||||
rtos(color.r).pad_decimals(2),
|
||||
rtos(color.g).pad_decimals(2),
|
||||
rtos(color.b).pad_decimals(2),
|
||||
rtos(color.a).pad_decimals(2)));
|
||||
} else {
|
||||
picker->set_tooltip(vformat(
|
||||
picker->set_tooltip_text(vformat(
|
||||
"R: %s\nG: %s\nB: %s",
|
||||
rtos(color.r).pad_decimals(2),
|
||||
rtos(color.g).pad_decimals(2),
|
||||
|
@ -3658,7 +3658,7 @@ void EditorPropertyNodePath::update_property() {
|
|||
p = get_edited_object()->get(get_edited_property());
|
||||
}
|
||||
|
||||
assign->set_tooltip(p);
|
||||
assign->set_tooltip_text(p);
|
||||
if (p == NodePath()) {
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_text(TTR("Assign..."));
|
||||
|
|
|
@ -1110,7 +1110,7 @@ void EditorPropertyDictionary::update_property() {
|
|||
if (i < amount) {
|
||||
String cs = key.get_construct_string();
|
||||
prop->set_label(key.get_construct_string());
|
||||
prop->set_tooltip(cs);
|
||||
prop->set_tooltip_text(cs);
|
||||
change_index = i + offset;
|
||||
} else if (i == amount) {
|
||||
prop->set_label(TTR("New Key:"));
|
||||
|
@ -1359,7 +1359,7 @@ void EditorPropertyLocalizableString::update_property() {
|
|||
|
||||
String cs = key.get_construct_string();
|
||||
prop->set_label(cs);
|
||||
prop->set_tooltip(cs);
|
||||
prop->set_tooltip_text(cs);
|
||||
remove_index = i + offset;
|
||||
|
||||
prop->set_selectable(false);
|
||||
|
|
|
@ -62,7 +62,7 @@ void EditorResourcePicker::_update_resource() {
|
|||
if (edited_resource == Ref<Resource>()) {
|
||||
assign_button->set_icon(Ref<Texture2D>());
|
||||
assign_button->set_text(TTR("[empty]"));
|
||||
assign_button->set_tooltip("");
|
||||
assign_button->set_tooltip_text("");
|
||||
} else {
|
||||
assign_button->set_icon(EditorNode::get_singleton()->get_object_icon(edited_resource.operator->(), "Object"));
|
||||
|
||||
|
@ -73,13 +73,13 @@ void EditorResourcePicker::_update_resource() {
|
|||
} else {
|
||||
assign_button->set_text(edited_resource->get_class());
|
||||
}
|
||||
assign_button->set_tooltip(resource_path + TTR("Type:") + " " + edited_resource->get_class());
|
||||
assign_button->set_tooltip_text(resource_path + TTR("Type:") + " " + edited_resource->get_class());
|
||||
|
||||
// Preview will override the above, so called at the end.
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(edited_resource, this, "_update_resource_preview", edited_resource->get_instance_id());
|
||||
}
|
||||
} else if (edited_resource.is_valid()) {
|
||||
assign_button->set_tooltip(resource_path + TTR("Type:") + " " + edited_resource->get_class());
|
||||
assign_button->set_tooltip_text(resource_path + TTR("Type:") + " " + edited_resource->get_class());
|
||||
}
|
||||
|
||||
assign_button->set_disabled(!editable && !edited_resource.is_valid());
|
||||
|
|
|
@ -77,9 +77,9 @@ void EditorRunNative::_notification(int p_what) {
|
|||
mb->get_popup()->clear();
|
||||
mb->show();
|
||||
if (dc == 1) {
|
||||
mb->set_tooltip(eep->get_option_tooltip(0));
|
||||
mb->set_tooltip_text(eep->get_option_tooltip(0));
|
||||
} else {
|
||||
mb->set_tooltip(eep->get_options_tooltip());
|
||||
mb->set_tooltip_text(eep->get_options_tooltip());
|
||||
for (int i = 0; i < dc; i++) {
|
||||
mb->get_popup()->add_icon_item(eep->get_option_icon(i), eep->get_option_label(i));
|
||||
mb->get_popup()->set_item_tooltip(-1, eep->get_option_tooltip(i));
|
||||
|
|
|
@ -235,11 +235,11 @@ void EditorToaster::_auto_hide_or_free_toasts() {
|
|||
}
|
||||
|
||||
if (toasts.is_empty()) {
|
||||
main_button->set_tooltip(TTR("No notifications."));
|
||||
main_button->set_tooltip_text(TTR("No notifications."));
|
||||
main_button->set_modulate(Color(0.5, 0.5, 0.5));
|
||||
main_button->set_disabled(true);
|
||||
} else {
|
||||
main_button->set_tooltip(TTR("Show notifications."));
|
||||
main_button->set_tooltip_text(TTR("Show notifications."));
|
||||
main_button->set_modulate(Color(1, 1, 1));
|
||||
main_button->set_disabled(false);
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ void EditorToaster::_repop_old() {
|
|||
Control *EditorToaster::popup(Control *p_control, Severity p_severity, double p_time, String p_tooltip) {
|
||||
// Create the panel according to the severity.
|
||||
PanelContainer *panel = memnew(PanelContainer);
|
||||
panel->set_tooltip(p_tooltip);
|
||||
panel->set_tooltip_text(p_tooltip);
|
||||
switch (p_severity) {
|
||||
case SEVERITY_INFO:
|
||||
panel->add_theme_style_override("panel", info_panel_style_background);
|
||||
|
@ -517,7 +517,7 @@ EditorToaster::EditorToaster() {
|
|||
|
||||
// Main button.
|
||||
main_button = memnew(Button);
|
||||
main_button->set_tooltip(TTR("No notifications."));
|
||||
main_button->set_tooltip_text(TTR("No notifications."));
|
||||
main_button->set_modulate(Color(0.5, 0.5, 0.5));
|
||||
main_button->set_disabled(true);
|
||||
main_button->set_flat(true);
|
||||
|
@ -533,7 +533,7 @@ EditorToaster::EditorToaster() {
|
|||
add_child(disable_notifications_panel);
|
||||
|
||||
disable_notifications_button = memnew(Button);
|
||||
disable_notifications_button->set_tooltip(TTR("Silence the notifications."));
|
||||
disable_notifications_button->set_tooltip_text(TTR("Silence the notifications."));
|
||||
disable_notifications_button->set_flat(true);
|
||||
disable_notifications_button->connect("pressed", callable_mp(this, &EditorToaster::_set_notifications_enabled).bind(false));
|
||||
disable_notifications_panel->add_child(disable_notifications_button);
|
||||
|
|
|
@ -867,13 +867,13 @@ ExportTemplateManager::ExportTemplateManager() {
|
|||
|
||||
current_open_button = memnew(Button);
|
||||
current_open_button->set_text(TTR("Open Folder"));
|
||||
current_open_button->set_tooltip(TTR("Open the folder containing installed templates for the current version."));
|
||||
current_open_button->set_tooltip_text(TTR("Open the folder containing installed templates for the current version."));
|
||||
current_installed_hb->add_child(current_open_button);
|
||||
current_open_button->connect("pressed", callable_mp(this, &ExportTemplateManager::_open_template_folder).bind(VERSION_FULL_CONFIG));
|
||||
|
||||
current_uninstall_button = memnew(Button);
|
||||
current_uninstall_button->set_text(TTR("Uninstall"));
|
||||
current_uninstall_button->set_tooltip(TTR("Uninstall templates for the current version."));
|
||||
current_uninstall_button->set_tooltip_text(TTR("Uninstall templates for the current version."));
|
||||
current_installed_hb->add_child(current_uninstall_button);
|
||||
current_uninstall_button->connect("pressed", callable_mp(this, &ExportTemplateManager::_uninstall_template).bind(VERSION_FULL_CONFIG));
|
||||
|
||||
|
@ -914,14 +914,14 @@ ExportTemplateManager::ExportTemplateManager() {
|
|||
|
||||
Button *download_current_button = memnew(Button);
|
||||
download_current_button->set_text(TTR("Download and Install"));
|
||||
download_current_button->set_tooltip(TTR("Download and install templates for the current version from the best possible mirror."));
|
||||
download_current_button->set_tooltip_text(TTR("Download and install templates for the current version from the best possible mirror."));
|
||||
download_install_hb->add_child(download_current_button);
|
||||
download_current_button->connect("pressed", callable_mp(this, &ExportTemplateManager::_download_current));
|
||||
|
||||
// Update downloads buttons to prevent unsupported downloads.
|
||||
if (!downloads_available) {
|
||||
download_current_button->set_disabled(true);
|
||||
download_current_button->set_tooltip(TTR("Official export templates aren't available for development builds."));
|
||||
download_current_button->set_tooltip_text(TTR("Official export templates aren't available for development builds."));
|
||||
}
|
||||
|
||||
HBoxContainer *install_file_hb = memnew(HBoxContainer);
|
||||
|
@ -930,7 +930,7 @@ ExportTemplateManager::ExportTemplateManager() {
|
|||
|
||||
install_file_button = memnew(Button);
|
||||
install_file_button->set_text(TTR("Install from File"));
|
||||
install_file_button->set_tooltip(TTR("Install templates from a local file."));
|
||||
install_file_button->set_tooltip_text(TTR("Install templates from a local file."));
|
||||
install_file_hb->add_child(install_file_button);
|
||||
install_file_button->connect("pressed", callable_mp(this, &ExportTemplateManager::_install_file));
|
||||
|
||||
|
@ -955,7 +955,7 @@ ExportTemplateManager::ExportTemplateManager() {
|
|||
|
||||
Button *download_cancel_button = memnew(Button);
|
||||
download_cancel_button->set_text(TTR("Cancel"));
|
||||
download_cancel_button->set_tooltip(TTR("Cancel the download of the templates."));
|
||||
download_cancel_button->set_tooltip_text(TTR("Cancel the download of the templates."));
|
||||
download_progress_hb->add_child(download_cancel_button);
|
||||
download_cancel_button->connect("pressed", callable_mp(this, &ExportTemplateManager::_cancel_template_download));
|
||||
|
||||
|
|
|
@ -185,9 +185,9 @@ void ProjectExportDialog::_update_export_all() {
|
|||
export_all_button->set_disabled(!can_export);
|
||||
|
||||
if (can_export) {
|
||||
export_all_button->set_tooltip(TTR("Export the project for all the presets defined."));
|
||||
export_all_button->set_tooltip_text(TTR("Export the project for all the presets defined."));
|
||||
} else {
|
||||
export_all_button->set_tooltip(TTR("All presets must have an export path defined for Export All to work."));
|
||||
export_all_button->set_tooltip_text(TTR("All presets must have an export path defined for Export All to work."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1020,12 +1020,12 @@ ProjectExportDialog::ProjectExportDialog() {
|
|||
mc->add_child(presets);
|
||||
presets->connect("item_selected", callable_mp(this, &ProjectExportDialog::_edit_preset));
|
||||
duplicate_preset = memnew(Button);
|
||||
duplicate_preset->set_tooltip(TTR("Duplicate"));
|
||||
duplicate_preset->set_tooltip_text(TTR("Duplicate"));
|
||||
duplicate_preset->set_flat(true);
|
||||
preset_hb->add_child(duplicate_preset);
|
||||
duplicate_preset->connect("pressed", callable_mp(this, &ProjectExportDialog::_duplicate_preset));
|
||||
delete_preset = memnew(Button);
|
||||
delete_preset->set_tooltip(TTR("Delete"));
|
||||
delete_preset->set_tooltip_text(TTR("Delete"));
|
||||
delete_preset->set_flat(true);
|
||||
preset_hb->add_child(delete_preset);
|
||||
delete_preset->connect("pressed", callable_mp(this, &ProjectExportDialog::_delete_preset));
|
||||
|
@ -1041,7 +1041,7 @@ ProjectExportDialog::ProjectExportDialog() {
|
|||
name->connect("text_changed", callable_mp(this, &ProjectExportDialog::_name_changed));
|
||||
runnable = memnew(CheckButton);
|
||||
runnable->set_text(TTR("Runnable"));
|
||||
runnable->set_tooltip(TTR("If checked, the preset will be available for use in one-click deploy.\nOnly one preset per platform may be marked as runnable."));
|
||||
runnable->set_tooltip_text(TTR("If checked, the preset will be available for use in one-click deploy.\nOnly one preset per platform may be marked as runnable."));
|
||||
runnable->connect("pressed", callable_mp(this, &ProjectExportDialog::_runnable_pressed));
|
||||
settings_vb->add_child(runnable);
|
||||
|
||||
|
|
|
@ -614,11 +614,11 @@ void FileSystemDock::_set_file_display(bool p_active) {
|
|||
if (p_active) {
|
||||
file_list_display_mode = FILE_LIST_DISPLAY_LIST;
|
||||
button_file_list_display_mode->set_icon(get_theme_icon(SNAME("FileThumbnail"), SNAME("EditorIcons")));
|
||||
button_file_list_display_mode->set_tooltip(TTR("View items as a grid of thumbnails."));
|
||||
button_file_list_display_mode->set_tooltip_text(TTR("View items as a grid of thumbnails."));
|
||||
} else {
|
||||
file_list_display_mode = FILE_LIST_DISPLAY_THUMBNAILS;
|
||||
button_file_list_display_mode->set_icon(get_theme_icon(SNAME("FileList"), SNAME("EditorIcons")));
|
||||
button_file_list_display_mode->set_tooltip(TTR("View items as a list."));
|
||||
button_file_list_display_mode->set_tooltip_text(TTR("View items as a list."));
|
||||
}
|
||||
|
||||
_update_file_list(true);
|
||||
|
@ -2977,7 +2977,7 @@ void FileSystemDock::_file_sort_popup(int p_id) {
|
|||
MenuButton *FileSystemDock::_create_file_menu_button() {
|
||||
MenuButton *button = memnew(MenuButton);
|
||||
button->set_flat(true);
|
||||
button->set_tooltip(TTR("Sort files"));
|
||||
button->set_tooltip_text(TTR("Sort files"));
|
||||
|
||||
PopupMenu *p = button->get_popup();
|
||||
p->connect("id_pressed", callable_mp(this, &FileSystemDock::_file_sort_popup));
|
||||
|
@ -3040,14 +3040,14 @@ FileSystemDock::FileSystemDock() {
|
|||
button_hist_prev->set_flat(true);
|
||||
button_hist_prev->set_disabled(true);
|
||||
button_hist_prev->set_focus_mode(FOCUS_NONE);
|
||||
button_hist_prev->set_tooltip(TTR("Previous Folder/File"));
|
||||
button_hist_prev->set_tooltip_text(TTR("Previous Folder/File"));
|
||||
toolbar_hbc->add_child(button_hist_prev);
|
||||
|
||||
button_hist_next = memnew(Button);
|
||||
button_hist_next->set_flat(true);
|
||||
button_hist_next->set_disabled(true);
|
||||
button_hist_next->set_focus_mode(FOCUS_NONE);
|
||||
button_hist_next->set_tooltip(TTR("Next Folder/File"));
|
||||
button_hist_next->set_tooltip_text(TTR("Next Folder/File"));
|
||||
toolbar_hbc->add_child(button_hist_next);
|
||||
|
||||
current_path = memnew(LineEdit);
|
||||
|
@ -3059,7 +3059,7 @@ FileSystemDock::FileSystemDock() {
|
|||
button_reload = memnew(Button);
|
||||
button_reload->connect("pressed", callable_mp(this, &FileSystemDock::_rescan));
|
||||
button_reload->set_focus_mode(FOCUS_NONE);
|
||||
button_reload->set_tooltip(TTR("Re-Scan Filesystem"));
|
||||
button_reload->set_tooltip_text(TTR("Re-Scan Filesystem"));
|
||||
button_reload->hide();
|
||||
toolbar_hbc->add_child(button_reload);
|
||||
|
||||
|
@ -3067,7 +3067,7 @@ FileSystemDock::FileSystemDock() {
|
|||
button_toggle_display_mode->set_toggle_mode(true);
|
||||
button_toggle_display_mode->connect("toggled", callable_mp(this, &FileSystemDock::_toggle_split_mode));
|
||||
button_toggle_display_mode->set_focus_mode(FOCUS_NONE);
|
||||
button_toggle_display_mode->set_tooltip(TTR("Toggle Split Mode"));
|
||||
button_toggle_display_mode->set_tooltip_text(TTR("Toggle Split Mode"));
|
||||
button_toggle_display_mode->set_flat(true);
|
||||
toolbar_hbc->add_child(button_toggle_display_mode);
|
||||
|
||||
|
|
|
@ -373,7 +373,7 @@ FindInFilesDialog::FindInFilesDialog() {
|
|||
|
||||
Label *filter_label = memnew(Label);
|
||||
filter_label->set_text(TTR("Filters:"));
|
||||
filter_label->set_tooltip(TTR("Include the files with the following extensions. Add or remove them in ProjectSettings."));
|
||||
filter_label->set_tooltip_text(TTR("Include the files with the following extensions. Add or remove them in ProjectSettings."));
|
||||
gc->add_child(filter_label);
|
||||
|
||||
_filters_container = memnew(HBoxContainer);
|
||||
|
|
|
@ -525,7 +525,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
loop_hb->add_theme_constant_override("separation", 4 * EDSCALE);
|
||||
loop = memnew(CheckBox);
|
||||
loop->set_text(TTR("Enable"));
|
||||
loop->set_tooltip(TTR("Enable looping."));
|
||||
loop->set_tooltip_text(TTR("Enable looping."));
|
||||
loop->connect("toggled", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
loop_hb->add_child(loop);
|
||||
loop_hb->add_spacer();
|
||||
|
@ -534,7 +534,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
loop_offset->set_max(10000);
|
||||
loop_offset->set_step(0.001);
|
||||
loop_offset->set_suffix("sec");
|
||||
loop_offset->set_tooltip(TTR("Loop offset (from beginning). Note that if BPM is set, this setting will be ignored."));
|
||||
loop_offset->set_tooltip_text(TTR("Loop offset (from beginning). Note that if BPM is set, this setting will be ignored."));
|
||||
loop_offset->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
loop_hb->add_child(loop_offset);
|
||||
main_vbox->add_margin_child(TTR("Loop:"), loop_hb);
|
||||
|
@ -548,14 +548,14 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
bpm_edit = memnew(SpinBox);
|
||||
bpm_edit->set_max(400);
|
||||
bpm_edit->set_step(0.01);
|
||||
bpm_edit->set_tooltip(TTR("Configure the Beats Per Measure (tempo) used for the interactive streams.\nThis is required in order to configure beat information."));
|
||||
bpm_edit->set_tooltip_text(TTR("Configure the Beats Per Measure (tempo) used for the interactive streams.\nThis is required in order to configure beat information."));
|
||||
bpm_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(bpm_edit);
|
||||
interactive_hb->add_spacer();
|
||||
bar_beats_label = memnew(Label(TTR("Beats/Bar:")));
|
||||
interactive_hb->add_child(bar_beats_label);
|
||||
bar_beats_edit = memnew(SpinBox);
|
||||
bar_beats_edit->set_tooltip(TTR("Configure the Beats Per Bar. This used for music-aware transitions between AudioStreams."));
|
||||
bar_beats_edit->set_tooltip_text(TTR("Configure the Beats Per Bar. This used for music-aware transitions between AudioStreams."));
|
||||
bar_beats_edit->set_min(2);
|
||||
bar_beats_edit->set_max(32);
|
||||
bar_beats_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
|
@ -566,7 +566,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
beats_enabled->connect("toggled", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(beats_enabled);
|
||||
beats_edit = memnew(SpinBox);
|
||||
beats_edit->set_tooltip(TTR("Configure the amount of Beats used for music-aware looping. If zero, it will be autodetected from the length.\nIt is recommended to set this value (either manually or by clicking on a beat number in the preview) to ensure looping works properly."));
|
||||
beats_edit->set_tooltip_text(TTR("Configure the amount of Beats used for music-aware looping. If zero, it will be autodetected from the length.\nIt is recommended to set this value (either manually or by clicking on a beat number in the preview) to ensure looping works properly."));
|
||||
beats_edit->set_max(99999);
|
||||
beats_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(beats_edit);
|
||||
|
|
|
@ -1238,7 +1238,7 @@ DynamicFontImportSettings::DynamicFontImportSettings() {
|
|||
|
||||
add_var = memnew(Button);
|
||||
page2_hb_vars->add_child(add_var);
|
||||
add_var->set_tooltip(TTR("Add configuration"));
|
||||
add_var->set_tooltip_text(TTR("Add configuration"));
|
||||
add_var->set_icon(add_var->get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
add_var->connect("pressed", callable_mp(this, &DynamicFontImportSettings::_variation_add));
|
||||
|
||||
|
|
|
@ -584,12 +584,12 @@ void ImportDock::_set_dirty(bool p_dirty) {
|
|||
// Add a dirty marker to notify the user that they should reimport the selected resource to see changes.
|
||||
import->set_text(TTR("Reimport") + " (*)");
|
||||
import->add_theme_color_override("font_color", get_theme_color(SNAME("warning_color"), SNAME("Editor")));
|
||||
import->set_tooltip(TTR("You have pending changes that haven't been applied yet. Click Reimport to apply changes made to the import options.\nSelecting another resource in the FileSystem dock without clicking Reimport first will discard changes made in the Import dock."));
|
||||
import->set_tooltip_text(TTR("You have pending changes that haven't been applied yet. Click Reimport to apply changes made to the import options.\nSelecting another resource in the FileSystem dock without clicking Reimport first will discard changes made in the Import dock."));
|
||||
} else {
|
||||
// Remove the dirty marker on the Reimport button.
|
||||
import->set_text(TTR("Reimport"));
|
||||
import->remove_theme_color_override("font_color");
|
||||
import->set_tooltip("");
|
||||
import->set_tooltip_text("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -633,20 +633,20 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
|
||||
resource_new_button = memnew(Button);
|
||||
resource_new_button->set_flat(true);
|
||||
resource_new_button->set_tooltip(TTR("Create a new resource in memory and edit it."));
|
||||
resource_new_button->set_tooltip_text(TTR("Create a new resource in memory and edit it."));
|
||||
general_options_hb->add_child(resource_new_button);
|
||||
resource_new_button->connect("pressed", callable_mp(this, &InspectorDock::_new_resource));
|
||||
resource_new_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
|
||||
resource_load_button = memnew(Button);
|
||||
resource_load_button->set_flat(true);
|
||||
resource_load_button->set_tooltip(TTR("Load an existing resource from disk and edit it."));
|
||||
resource_load_button->set_tooltip_text(TTR("Load an existing resource from disk and edit it."));
|
||||
general_options_hb->add_child(resource_load_button);
|
||||
resource_load_button->connect("pressed", callable_mp(this, &InspectorDock::_open_resource_selector));
|
||||
resource_load_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
|
||||
resource_save_button = memnew(MenuButton);
|
||||
resource_save_button->set_tooltip(TTR("Save the currently edited resource."));
|
||||
resource_save_button->set_tooltip_text(TTR("Save the currently edited resource."));
|
||||
general_options_hb->add_child(resource_save_button);
|
||||
resource_save_button->get_popup()->add_item(TTR("Save"), RESOURCE_SAVE);
|
||||
resource_save_button->get_popup()->add_item(TTR("Save As..."), RESOURCE_SAVE_AS);
|
||||
|
@ -655,7 +655,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
resource_save_button->set_disabled(true);
|
||||
|
||||
resource_extra_button = memnew(MenuButton);
|
||||
resource_extra_button->set_tooltip(TTR("Extra resource options."));
|
||||
resource_extra_button->set_tooltip_text(TTR("Extra resource options."));
|
||||
general_options_hb->add_child(resource_extra_button);
|
||||
resource_extra_button->connect("about_to_popup", callable_mp(this, &InspectorDock::_prepare_resource_extra_popup));
|
||||
resource_extra_button->get_popup()->add_icon_shortcut(get_theme_icon(SNAME("ActionPaste"), SNAME("EditorIcons")), ED_SHORTCUT("property_editor/paste_resource", TTR("Edit Resource from Clipboard")), RESOURCE_EDIT_CLIPBOARD);
|
||||
|
@ -671,19 +671,19 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
backward_button = memnew(Button);
|
||||
backward_button->set_flat(true);
|
||||
general_options_hb->add_child(backward_button);
|
||||
backward_button->set_tooltip(TTR("Go to the previous edited object in history."));
|
||||
backward_button->set_tooltip_text(TTR("Go to the previous edited object in history."));
|
||||
backward_button->set_disabled(true);
|
||||
backward_button->connect("pressed", callable_mp(this, &InspectorDock::_edit_back));
|
||||
|
||||
forward_button = memnew(Button);
|
||||
forward_button->set_flat(true);
|
||||
general_options_hb->add_child(forward_button);
|
||||
forward_button->set_tooltip(TTR("Go to the next edited object in history."));
|
||||
forward_button->set_tooltip_text(TTR("Go to the next edited object in history."));
|
||||
forward_button->set_disabled(true);
|
||||
forward_button->connect("pressed", callable_mp(this, &InspectorDock::_edit_forward));
|
||||
|
||||
history_menu = memnew(MenuButton);
|
||||
history_menu->set_tooltip(TTR("History of recently edited objects."));
|
||||
history_menu->set_tooltip_text(TTR("History of recently edited objects."));
|
||||
general_options_hb->add_child(history_menu);
|
||||
history_menu->connect("about_to_popup", callable_mp(this, &InspectorDock::_prepare_history));
|
||||
history_menu->get_popup()->connect("id_pressed", callable_mp(this, &InspectorDock::_select_history));
|
||||
|
@ -697,7 +697,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
open_docs_button = memnew(Button);
|
||||
open_docs_button->set_flat(true);
|
||||
open_docs_button->set_disabled(true);
|
||||
open_docs_button->set_tooltip(TTR("Open documentation for this object."));
|
||||
open_docs_button->set_tooltip_text(TTR("Open documentation for this object."));
|
||||
open_docs_button->set_shortcut(ED_SHORTCUT("property_editor/open_help", TTR("Open Documentation")));
|
||||
subresource_hb->add_child(open_docs_button);
|
||||
open_docs_button->connect("pressed", callable_mp(this, &InspectorDock::_menu_option).bind(OBJECT_REQUEST_HELP));
|
||||
|
@ -719,7 +719,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
object_menu = memnew(MenuButton);
|
||||
object_menu->set_shortcut_context(this);
|
||||
property_tools_hb->add_child(object_menu);
|
||||
object_menu->set_tooltip(TTR("Manage object properties."));
|
||||
object_menu->set_tooltip_text(TTR("Manage object properties."));
|
||||
object_menu->get_popup()->connect("about_to_popup", callable_mp(this, &InspectorDock::_prepare_menu));
|
||||
object_menu->get_popup()->connect("id_pressed", callable_mp(this, &InspectorDock::_menu_option));
|
||||
|
||||
|
|
|
@ -111,32 +111,32 @@ void PluginConfigDialog::_on_required_text_changed(const String &) {
|
|||
name_validation->set_texture(valid_icon);
|
||||
subfolder_validation->set_texture(valid_icon);
|
||||
script_validation->set_texture(valid_icon);
|
||||
name_validation->set_tooltip("");
|
||||
subfolder_validation->set_tooltip("");
|
||||
script_validation->set_tooltip("");
|
||||
name_validation->set_tooltip_text("");
|
||||
subfolder_validation->set_tooltip_text("");
|
||||
script_validation->set_tooltip_text("");
|
||||
|
||||
// Change valid status to invalid depending on conditions.
|
||||
Vector<String> errors;
|
||||
if (name_edit->get_text().is_empty()) {
|
||||
is_valid = false;
|
||||
name_validation->set_texture(invalid_icon);
|
||||
name_validation->set_tooltip(TTR("Plugin name cannot be blank."));
|
||||
name_validation->set_tooltip_text(TTR("Plugin name cannot be blank."));
|
||||
}
|
||||
if ((!script_edit->get_text().get_extension().is_empty() && script_edit->get_text().get_extension() != ext) || script_edit->get_text().ends_with(".")) {
|
||||
is_valid = false;
|
||||
script_validation->set_texture(invalid_icon);
|
||||
script_validation->set_tooltip(vformat(TTR("Script extension must match chosen language extension (.%s)."), ext));
|
||||
script_validation->set_tooltip_text(vformat(TTR("Script extension must match chosen language extension (.%s)."), ext));
|
||||
}
|
||||
if (!subfolder_edit->get_text().is_empty() && !subfolder_edit->get_text().is_valid_filename()) {
|
||||
is_valid = false;
|
||||
subfolder_validation->set_texture(invalid_icon);
|
||||
subfolder_validation->set_tooltip(TTR("Subfolder name is not a valid folder name."));
|
||||
subfolder_validation->set_tooltip_text(TTR("Subfolder name is not a valid folder name."));
|
||||
} else {
|
||||
String path = "res://addons/" + _get_subfolder();
|
||||
if (!_edit_mode && DirAccess::exists(path)) { // Only show this error if in "create" mode.
|
||||
is_valid = false;
|
||||
subfolder_validation->set_texture(invalid_icon);
|
||||
subfolder_validation->set_tooltip(TTR("Subfolder cannot be one which already exists."));
|
||||
subfolder_validation->set_tooltip_text(TTR("Subfolder cannot be one which already exists."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -234,13 +234,13 @@ void AbstractPolygon2DEditor::disable_polygon_editing(bool p_disable, String p_r
|
|||
button_delete->set_disabled(p_disable);
|
||||
|
||||
if (p_disable) {
|
||||
button_create->set_tooltip(p_reason);
|
||||
button_edit->set_tooltip(p_reason);
|
||||
button_delete->set_tooltip(p_reason);
|
||||
button_create->set_tooltip_text(p_reason);
|
||||
button_edit->set_tooltip_text(p_reason);
|
||||
button_delete->set_tooltip_text(p_reason);
|
||||
} else {
|
||||
button_create->set_tooltip(TTR("Create points."));
|
||||
button_edit->set_tooltip(TTR("Edit points.\nLMB: Move Point\nRMB: Erase Point"));
|
||||
button_delete->set_tooltip(TTR("Erase points."));
|
||||
button_create->set_tooltip_text(TTR("Create points."));
|
||||
button_edit->set_tooltip_text(TTR("Edit points.\nLMB: Move Point\nRMB: Erase Point"));
|
||||
button_delete->set_tooltip_text(TTR("Erase points."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -634,7 +634,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||
tool_blend->set_button_group(bg);
|
||||
top_hb->add_child(tool_blend);
|
||||
tool_blend->set_pressed(true);
|
||||
tool_blend->set_tooltip(TTR("Set the blending position within the space"));
|
||||
tool_blend->set_tooltip_text(TTR("Set the blending position within the space"));
|
||||
tool_blend->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_tool_switch).bind(3));
|
||||
|
||||
tool_select = memnew(Button);
|
||||
|
@ -642,7 +642,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||
tool_select->set_toggle_mode(true);
|
||||
tool_select->set_button_group(bg);
|
||||
top_hb->add_child(tool_select);
|
||||
tool_select->set_tooltip(TTR("Select and move points, create points with RMB."));
|
||||
tool_select->set_tooltip_text(TTR("Select and move points, create points with RMB."));
|
||||
tool_select->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_tool_switch).bind(0));
|
||||
|
||||
tool_create = memnew(Button);
|
||||
|
@ -650,7 +650,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||
tool_create->set_toggle_mode(true);
|
||||
tool_create->set_button_group(bg);
|
||||
top_hb->add_child(tool_create);
|
||||
tool_create->set_tooltip(TTR("Create points."));
|
||||
tool_create->set_tooltip_text(TTR("Create points."));
|
||||
tool_create->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_tool_switch).bind(1));
|
||||
|
||||
tool_erase_sep = memnew(VSeparator);
|
||||
|
@ -658,7 +658,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||
tool_erase = memnew(Button);
|
||||
tool_erase->set_flat(true);
|
||||
top_hb->add_child(tool_erase);
|
||||
tool_erase->set_tooltip(TTR("Erase points."));
|
||||
tool_erase->set_tooltip_text(TTR("Erase points."));
|
||||
tool_erase->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_erase_selected));
|
||||
|
||||
top_hb->add_child(memnew(VSeparator));
|
||||
|
@ -668,7 +668,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||
snap->set_toggle_mode(true);
|
||||
top_hb->add_child(snap);
|
||||
snap->set_pressed(true);
|
||||
snap->set_tooltip(TTR("Enable snap and show grid."));
|
||||
snap->set_tooltip_text(TTR("Enable snap and show grid."));
|
||||
snap->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_snap_toggled));
|
||||
|
||||
snap_value = memnew(SpinBox);
|
||||
|
|
|
@ -867,7 +867,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
tool_blend->set_button_group(bg);
|
||||
top_hb->add_child(tool_blend);
|
||||
tool_blend->set_pressed(true);
|
||||
tool_blend->set_tooltip(TTR("Set the blending position within the space"));
|
||||
tool_blend->set_tooltip_text(TTR("Set the blending position within the space"));
|
||||
tool_blend->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_tool_switch).bind(3));
|
||||
|
||||
tool_select = memnew(Button);
|
||||
|
@ -875,7 +875,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
tool_select->set_toggle_mode(true);
|
||||
tool_select->set_button_group(bg);
|
||||
top_hb->add_child(tool_select);
|
||||
tool_select->set_tooltip(TTR("Select and move points, create points with RMB."));
|
||||
tool_select->set_tooltip_text(TTR("Select and move points, create points with RMB."));
|
||||
tool_select->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_tool_switch).bind(0));
|
||||
|
||||
tool_create = memnew(Button);
|
||||
|
@ -883,7 +883,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
tool_create->set_toggle_mode(true);
|
||||
tool_create->set_button_group(bg);
|
||||
top_hb->add_child(tool_create);
|
||||
tool_create->set_tooltip(TTR("Create points."));
|
||||
tool_create->set_tooltip_text(TTR("Create points."));
|
||||
tool_create->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_tool_switch).bind(1));
|
||||
|
||||
tool_triangle = memnew(Button);
|
||||
|
@ -891,7 +891,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
tool_triangle->set_toggle_mode(true);
|
||||
tool_triangle->set_button_group(bg);
|
||||
top_hb->add_child(tool_triangle);
|
||||
tool_triangle->set_tooltip(TTR("Create triangles by connecting points."));
|
||||
tool_triangle->set_tooltip_text(TTR("Create triangles by connecting points."));
|
||||
tool_triangle->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_tool_switch).bind(2));
|
||||
|
||||
tool_erase_sep = memnew(VSeparator);
|
||||
|
@ -899,7 +899,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
tool_erase = memnew(Button);
|
||||
tool_erase->set_flat(true);
|
||||
top_hb->add_child(tool_erase);
|
||||
tool_erase->set_tooltip(TTR("Erase points and triangles."));
|
||||
tool_erase->set_tooltip_text(TTR("Erase points and triangles."));
|
||||
tool_erase->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_erase_selected));
|
||||
tool_erase->set_disabled(true);
|
||||
|
||||
|
@ -910,7 +910,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
top_hb->add_child(auto_triangles);
|
||||
auto_triangles->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_auto_triangles_toggled));
|
||||
auto_triangles->set_toggle_mode(true);
|
||||
auto_triangles->set_tooltip(TTR("Generate blend triangles automatically (instead of manually)"));
|
||||
auto_triangles->set_tooltip_text(TTR("Generate blend triangles automatically (instead of manually)"));
|
||||
|
||||
top_hb->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -919,7 +919,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||
snap->set_toggle_mode(true);
|
||||
top_hb->add_child(snap);
|
||||
snap->set_pressed(true);
|
||||
snap->set_tooltip(TTR("Enable snap and show grid."));
|
||||
snap->set_tooltip_text(TTR("Enable snap and show grid."));
|
||||
snap->connect("pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_snap_toggled));
|
||||
|
||||
snap_x = memnew(SpinBox);
|
||||
|
|
|
@ -1646,28 +1646,28 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
|
||||
play_bw_from = memnew(Button);
|
||||
play_bw_from->set_flat(true);
|
||||
play_bw_from->set_tooltip(TTR("Play selected animation backwards from current pos. (A)"));
|
||||
play_bw_from->set_tooltip_text(TTR("Play selected animation backwards from current pos. (A)"));
|
||||
hb->add_child(play_bw_from);
|
||||
|
||||
play_bw = memnew(Button);
|
||||
play_bw->set_flat(true);
|
||||
play_bw->set_tooltip(TTR("Play selected animation backwards from end. (Shift+A)"));
|
||||
play_bw->set_tooltip_text(TTR("Play selected animation backwards from end. (Shift+A)"));
|
||||
hb->add_child(play_bw);
|
||||
|
||||
stop = memnew(Button);
|
||||
stop->set_flat(true);
|
||||
stop->set_toggle_mode(true);
|
||||
hb->add_child(stop);
|
||||
stop->set_tooltip(TTR("Stop animation playback. (S)"));
|
||||
stop->set_tooltip_text(TTR("Stop animation playback. (S)"));
|
||||
|
||||
play = memnew(Button);
|
||||
play->set_flat(true);
|
||||
play->set_tooltip(TTR("Play selected animation from start. (Shift+D)"));
|
||||
play->set_tooltip_text(TTR("Play selected animation from start. (Shift+D)"));
|
||||
hb->add_child(play);
|
||||
|
||||
play_from = memnew(Button);
|
||||
play_from->set_flat(true);
|
||||
play_from->set_tooltip(TTR("Play selected animation from current pos. (D)"));
|
||||
play_from->set_tooltip_text(TTR("Play selected animation from current pos. (D)"));
|
||||
hb->add_child(play_from);
|
||||
|
||||
frame = memnew(SpinBox);
|
||||
|
@ -1675,7 +1675,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
frame->set_custom_minimum_size(Size2(80, 0) * EDSCALE);
|
||||
frame->set_stretch_ratio(2);
|
||||
frame->set_step(0.0001);
|
||||
frame->set_tooltip(TTR("Animation position (in seconds)."));
|
||||
frame->set_tooltip_text(TTR("Animation position (in seconds)."));
|
||||
|
||||
hb->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -1683,7 +1683,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
hb->add_child(scale);
|
||||
scale->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
scale->set_stretch_ratio(1);
|
||||
scale->set_tooltip(TTR("Scale animation playback globally for the node."));
|
||||
scale->set_tooltip_text(TTR("Scale animation playback globally for the node."));
|
||||
scale->hide();
|
||||
|
||||
delete_dialog = memnew(ConfirmationDialog);
|
||||
|
@ -1693,7 +1693,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
tool_anim = memnew(MenuButton);
|
||||
tool_anim->set_shortcut_context(this);
|
||||
tool_anim->set_flat(false);
|
||||
tool_anim->set_tooltip(TTR("Animation Tools"));
|
||||
tool_anim->set_tooltip_text(TTR("Animation Tools"));
|
||||
tool_anim->set_text(TTR("Animation"));
|
||||
tool_anim->get_popup()->add_shortcut(ED_SHORTCUT("animation_player_editor/new_animation", TTR("New")), TOOL_NEW_ANIM);
|
||||
tool_anim->get_popup()->add_separator();
|
||||
|
@ -1712,13 +1712,13 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
animation = memnew(OptionButton);
|
||||
hb->add_child(animation);
|
||||
animation->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
animation->set_tooltip(TTR("Display list of animations in player."));
|
||||
animation->set_tooltip_text(TTR("Display list of animations in player."));
|
||||
animation->set_clip_text(true);
|
||||
|
||||
autoplay = memnew(Button);
|
||||
autoplay->set_flat(true);
|
||||
hb->add_child(autoplay);
|
||||
autoplay->set_tooltip(TTR("Autoplay on Load"));
|
||||
autoplay->set_tooltip_text(TTR("Autoplay on Load"));
|
||||
|
||||
hb->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -1731,12 +1731,12 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
onion_toggle = memnew(Button);
|
||||
onion_toggle->set_flat(true);
|
||||
onion_toggle->set_toggle_mode(true);
|
||||
onion_toggle->set_tooltip(TTR("Enable Onion Skinning"));
|
||||
onion_toggle->set_tooltip_text(TTR("Enable Onion Skinning"));
|
||||
onion_toggle->connect("pressed", callable_mp(this, &AnimationPlayerEditor::_onion_skinning_menu).bind(ONION_SKINNING_ENABLE));
|
||||
hb->add_child(onion_toggle);
|
||||
|
||||
onion_skinning = memnew(MenuButton);
|
||||
onion_skinning->set_tooltip(TTR("Onion Skinning Options"));
|
||||
onion_skinning->set_tooltip_text(TTR("Onion Skinning Options"));
|
||||
onion_skinning->get_popup()->add_separator(TTR("Directions"));
|
||||
// TRANSLATORS: Opposite of "Future", refers to a direction in animation onion skinning.
|
||||
onion_skinning->get_popup()->add_check_item(TTR("Past"), ONION_SKINNING_PAST);
|
||||
|
@ -1759,7 +1759,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||
pin = memnew(Button);
|
||||
pin->set_flat(true);
|
||||
pin->set_toggle_mode(true);
|
||||
pin->set_tooltip(TTR("Pin AnimationPlayer"));
|
||||
pin->set_tooltip_text(TTR("Pin AnimationPlayer"));
|
||||
hb->add_child(pin);
|
||||
pin->connect("pressed", callable_mp(this, &AnimationPlayerEditor::_pin_pressed));
|
||||
|
||||
|
|
|
@ -476,9 +476,9 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
|
|||
to = String(transition_lines[closest].multi_transitions[i].to_node);
|
||||
tooltip += "\n" + from + " -> " + to;
|
||||
}
|
||||
state_machine_draw->set_tooltip(tooltip);
|
||||
state_machine_draw->set_tooltip_text(tooltip);
|
||||
} else {
|
||||
state_machine_draw->set_tooltip("");
|
||||
state_machine_draw->set_tooltip_text("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1916,7 +1916,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
|||
tool_select->set_toggle_mode(true);
|
||||
tool_select->set_button_group(bg);
|
||||
tool_select->set_pressed(true);
|
||||
tool_select->set_tooltip(TTR("Select and move nodes.\nRMB: Add node at position clicked.\nShift+LMB+Drag: Connects the selected node with another node or creates a new node if you select an area without nodes."));
|
||||
tool_select->set_tooltip_text(TTR("Select and move nodes.\nRMB: Add node at position clicked.\nShift+LMB+Drag: Connects the selected node with another node or creates a new node if you select an area without nodes."));
|
||||
tool_select->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_update_mode), CONNECT_DEFERRED);
|
||||
|
||||
tool_create = memnew(Button);
|
||||
|
@ -1924,7 +1924,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
|||
top_hb->add_child(tool_create);
|
||||
tool_create->set_toggle_mode(true);
|
||||
tool_create->set_button_group(bg);
|
||||
tool_create->set_tooltip(TTR("Create new nodes."));
|
||||
tool_create->set_tooltip_text(TTR("Create new nodes."));
|
||||
tool_create->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_update_mode), CONNECT_DEFERRED);
|
||||
|
||||
tool_connect = memnew(Button);
|
||||
|
@ -1932,7 +1932,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
|||
top_hb->add_child(tool_connect);
|
||||
tool_connect->set_toggle_mode(true);
|
||||
tool_connect->set_button_group(bg);
|
||||
tool_connect->set_tooltip(TTR("Connect nodes."));
|
||||
tool_connect->set_tooltip_text(TTR("Connect nodes."));
|
||||
tool_connect->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_update_mode), CONNECT_DEFERRED);
|
||||
|
||||
tool_erase_hb = memnew(HBoxContainer);
|
||||
|
@ -1941,21 +1941,21 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
|||
|
||||
tool_group = memnew(Button);
|
||||
tool_group->set_flat(true);
|
||||
tool_group->set_tooltip(TTR("Group Selected Node(s)") + " (Ctrl+G)");
|
||||
tool_group->set_tooltip_text(TTR("Group Selected Node(s)") + " (Ctrl+G)");
|
||||
tool_group->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_group_selected_nodes));
|
||||
tool_group->set_disabled(true);
|
||||
tool_erase_hb->add_child(tool_group);
|
||||
|
||||
tool_ungroup = memnew(Button);
|
||||
tool_ungroup->set_flat(true);
|
||||
tool_ungroup->set_tooltip(TTR("Ungroup Selected Node") + " (Ctrl+Shift+G)");
|
||||
tool_ungroup->set_tooltip_text(TTR("Ungroup Selected Node") + " (Ctrl+Shift+G)");
|
||||
tool_ungroup->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_ungroup_selected_nodes));
|
||||
tool_ungroup->set_visible(false);
|
||||
tool_erase_hb->add_child(tool_ungroup);
|
||||
|
||||
tool_erase = memnew(Button);
|
||||
tool_erase->set_flat(true);
|
||||
tool_erase->set_tooltip(TTR("Remove selected node or transition."));
|
||||
tool_erase->set_tooltip_text(TTR("Remove selected node or transition."));
|
||||
tool_erase->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_erase_selected).bind(false));
|
||||
tool_erase->set_disabled(true);
|
||||
tool_erase_hb->add_child(tool_erase);
|
||||
|
|
|
@ -294,7 +294,7 @@ void BoneMapper::create_editor() {
|
|||
|
||||
clear_mapping_button = memnew(Button);
|
||||
clear_mapping_button->set_icon(get_theme_icon(SNAME("Clear"), SNAME("EditorIcons")));
|
||||
clear_mapping_button->set_tooltip(TTR("Clear mappings in current group."));
|
||||
clear_mapping_button->set_tooltip_text(TTR("Clear mappings in current group."));
|
||||
clear_mapping_button->connect("pressed", callable_mp(this, &BoneMapper::_clear_mapping_current_group));
|
||||
group_hbox->add_child(clear_mapping_button);
|
||||
|
||||
|
|
|
@ -4261,11 +4261,11 @@ void CanvasItemEditor::_insert_animation_keys(bool p_location, bool p_rotation,
|
|||
void CanvasItemEditor::_update_override_camera_button(bool p_game_running) {
|
||||
if (p_game_running) {
|
||||
override_camera_button->set_disabled(false);
|
||||
override_camera_button->set_tooltip(TTR("Project Camera Override\nOverrides the running project's camera with the editor viewport camera."));
|
||||
override_camera_button->set_tooltip_text(TTR("Project Camera Override\nOverrides the running project's camera with the editor viewport camera."));
|
||||
} else {
|
||||
override_camera_button->set_disabled(true);
|
||||
override_camera_button->set_pressed(false);
|
||||
override_camera_button->set_tooltip(TTR("Project Camera Override\nNo project instance running. Run the project from the editor to use this feature."));
|
||||
override_camera_button->set_tooltip_text(TTR("Project Camera Override\nNo project instance running. Run the project from the editor to use this feature."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5104,7 +5104,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
select_button->set_pressed(true);
|
||||
select_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/select_mode", TTR("Select Mode"), Key::Q));
|
||||
select_button->set_shortcut_context(this);
|
||||
select_button->set_tooltip(keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Drag: Rotate selected node around pivot.") + "\n" + TTR("Alt+Drag: Move selected node.") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Alt+Drag: Scale selected node.") + "\n" + TTR("V: Set selected node's pivot position.") + "\n" + TTR("Alt+RMB: Show list of all nodes at position clicked, including locked.") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("RMB: Add node at position clicked."));
|
||||
select_button->set_tooltip_text(keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Drag: Rotate selected node around pivot.") + "\n" + TTR("Alt+Drag: Move selected node.") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Alt+Drag: Scale selected node.") + "\n" + TTR("V: Set selected node's pivot position.") + "\n" + TTR("Alt+RMB: Show list of all nodes at position clicked, including locked.") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("RMB: Add node at position clicked."));
|
||||
|
||||
main_menu_hbox->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -5115,7 +5115,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
move_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_MOVE));
|
||||
move_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/move_mode", TTR("Move Mode"), Key::W));
|
||||
move_button->set_shortcut_context(this);
|
||||
move_button->set_tooltip(TTR("Move Mode"));
|
||||
move_button->set_tooltip_text(TTR("Move Mode"));
|
||||
|
||||
rotate_button = memnew(Button);
|
||||
rotate_button->set_flat(true);
|
||||
|
@ -5124,7 +5124,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
rotate_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_ROTATE));
|
||||
rotate_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/rotate_mode", TTR("Rotate Mode"), Key::E));
|
||||
rotate_button->set_shortcut_context(this);
|
||||
rotate_button->set_tooltip(TTR("Rotate Mode"));
|
||||
rotate_button->set_tooltip_text(TTR("Rotate Mode"));
|
||||
|
||||
scale_button = memnew(Button);
|
||||
scale_button->set_flat(true);
|
||||
|
@ -5133,7 +5133,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
scale_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_SCALE));
|
||||
scale_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/scale_mode", TTR("Scale Mode"), Key::S));
|
||||
scale_button->set_shortcut_context(this);
|
||||
scale_button->set_tooltip(TTR("Shift: Scale proportionally."));
|
||||
scale_button->set_tooltip_text(TTR("Shift: Scale proportionally."));
|
||||
|
||||
main_menu_hbox->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -5142,14 +5142,14 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
main_menu_hbox->add_child(list_select_button);
|
||||
list_select_button->set_toggle_mode(true);
|
||||
list_select_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_LIST_SELECT));
|
||||
list_select_button->set_tooltip(TTR("Show list of selectable nodes at position clicked."));
|
||||
list_select_button->set_tooltip_text(TTR("Show list of selectable nodes at position clicked."));
|
||||
|
||||
pivot_button = memnew(Button);
|
||||
pivot_button->set_flat(true);
|
||||
main_menu_hbox->add_child(pivot_button);
|
||||
pivot_button->set_toggle_mode(true);
|
||||
pivot_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_EDIT_PIVOT));
|
||||
pivot_button->set_tooltip(TTR("Click to change object's rotation pivot."));
|
||||
pivot_button->set_tooltip_text(TTR("Click to change object's rotation pivot."));
|
||||
|
||||
pan_button = memnew(Button);
|
||||
pan_button->set_flat(true);
|
||||
|
@ -5158,7 +5158,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
pan_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_PAN));
|
||||
pan_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/pan_mode", TTR("Pan Mode"), Key::G));
|
||||
pan_button->set_shortcut_context(this);
|
||||
pan_button->set_tooltip(TTR("You can also use Pan View shortcut (Space by default) to pan in any mode."));
|
||||
pan_button->set_tooltip_text(TTR("You can also use Pan View shortcut (Space by default) to pan in any mode."));
|
||||
|
||||
ruler_button = memnew(Button);
|
||||
ruler_button->set_flat(true);
|
||||
|
@ -5167,7 +5167,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
ruler_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_RULER));
|
||||
ruler_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/ruler_mode", TTR("Ruler Mode"), Key::R));
|
||||
ruler_button->set_shortcut_context(this);
|
||||
ruler_button->set_tooltip(TTR("Ruler Mode"));
|
||||
ruler_button->set_tooltip_text(TTR("Ruler Mode"));
|
||||
|
||||
main_menu_hbox->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -5176,7 +5176,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
main_menu_hbox->add_child(smart_snap_button);
|
||||
smart_snap_button->set_toggle_mode(true);
|
||||
smart_snap_button->connect("toggled", callable_mp(this, &CanvasItemEditor::_button_toggle_smart_snap));
|
||||
smart_snap_button->set_tooltip(TTR("Toggle smart snapping."));
|
||||
smart_snap_button->set_tooltip_text(TTR("Toggle smart snapping."));
|
||||
smart_snap_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/use_smart_snap", TTR("Use Smart Snap"), KeyModifierMask::SHIFT | Key::S));
|
||||
smart_snap_button->set_shortcut_context(this);
|
||||
|
||||
|
@ -5185,7 +5185,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
main_menu_hbox->add_child(grid_snap_button);
|
||||
grid_snap_button->set_toggle_mode(true);
|
||||
grid_snap_button->connect("toggled", callable_mp(this, &CanvasItemEditor::_button_toggle_grid_snap));
|
||||
grid_snap_button->set_tooltip(TTR("Toggle grid snapping."));
|
||||
grid_snap_button->set_tooltip_text(TTR("Toggle grid snapping."));
|
||||
grid_snap_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/use_grid_snap", TTR("Use Grid Snap"), KeyModifierMask::SHIFT | Key::G));
|
||||
grid_snap_button->set_shortcut_context(this);
|
||||
|
||||
|
@ -5193,7 +5193,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
snap_config_menu->set_shortcut_context(this);
|
||||
main_menu_hbox->add_child(snap_config_menu);
|
||||
snap_config_menu->set_h_size_flags(SIZE_SHRINK_END);
|
||||
snap_config_menu->set_tooltip(TTR("Snapping Options"));
|
||||
snap_config_menu->set_tooltip_text(TTR("Snapping Options"));
|
||||
snap_config_menu->set_switch_on_hover(true);
|
||||
|
||||
PopupMenu *p = snap_config_menu->get_popup();
|
||||
|
@ -5227,7 +5227,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
main_menu_hbox->add_child(lock_button);
|
||||
|
||||
lock_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(LOCK_SELECTED));
|
||||
lock_button->set_tooltip(TTR("Lock selected node, preventing selection and movement."));
|
||||
lock_button->set_tooltip_text(TTR("Lock selected node, preventing selection and movement."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
lock_button->set_shortcut(ED_SHORTCUT("editor/lock_selected_nodes", TTR("Lock Selected Node(s)"), KeyModifierMask::CMD | Key::L));
|
||||
|
||||
|
@ -5235,7 +5235,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
unlock_button->set_flat(true);
|
||||
main_menu_hbox->add_child(unlock_button);
|
||||
unlock_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(UNLOCK_SELECTED));
|
||||
unlock_button->set_tooltip(TTR("Unlock selected node, allowing selection and movement."));
|
||||
unlock_button->set_tooltip_text(TTR("Unlock selected node, allowing selection and movement."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
unlock_button->set_shortcut(ED_SHORTCUT("editor/unlock_selected_nodes", TTR("Unlock Selected Node(s)"), KeyModifierMask::CMD | KeyModifierMask::SHIFT | Key::L));
|
||||
|
||||
|
@ -5243,7 +5243,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
group_button->set_flat(true);
|
||||
main_menu_hbox->add_child(group_button);
|
||||
group_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(GROUP_SELECTED));
|
||||
group_button->set_tooltip(TTR("Make selected node's children not selectable."));
|
||||
group_button->set_tooltip_text(TTR("Make selected node's children not selectable."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
group_button->set_shortcut(ED_SHORTCUT("editor/group_selected_nodes", TTR("Group Selected Node(s)"), KeyModifierMask::CMD | Key::G));
|
||||
|
||||
|
@ -5251,7 +5251,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
ungroup_button->set_flat(true);
|
||||
main_menu_hbox->add_child(ungroup_button);
|
||||
ungroup_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(UNGROUP_SELECTED));
|
||||
ungroup_button->set_tooltip(TTR("Make selected node's children selectable."));
|
||||
ungroup_button->set_tooltip_text(TTR("Make selected node's children selectable."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
ungroup_button->set_shortcut(ED_SHORTCUT("editor/ungroup_selected_nodes", TTR("Ungroup Selected Node(s)"), KeyModifierMask::CMD | KeyModifierMask::SHIFT | Key::G));
|
||||
|
||||
|
@ -5260,7 +5260,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
skeleton_menu = memnew(MenuButton);
|
||||
skeleton_menu->set_shortcut_context(this);
|
||||
main_menu_hbox->add_child(skeleton_menu);
|
||||
skeleton_menu->set_tooltip(TTR("Skeleton Options"));
|
||||
skeleton_menu->set_tooltip_text(TTR("Skeleton Options"));
|
||||
skeleton_menu->set_switch_on_hover(true);
|
||||
|
||||
p = skeleton_menu->get_popup();
|
||||
|
@ -5340,7 +5340,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
key_loc_button->set_pressed(true);
|
||||
key_loc_button->set_focus_mode(FOCUS_NONE);
|
||||
key_loc_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(ANIM_INSERT_POS));
|
||||
key_loc_button->set_tooltip(TTR("Translation mask for inserting keys."));
|
||||
key_loc_button->set_tooltip_text(TTR("Translation mask for inserting keys."));
|
||||
animation_hb->add_child(key_loc_button);
|
||||
|
||||
key_rot_button = memnew(Button);
|
||||
|
@ -5349,7 +5349,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
key_rot_button->set_pressed(true);
|
||||
key_rot_button->set_focus_mode(FOCUS_NONE);
|
||||
key_rot_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(ANIM_INSERT_ROT));
|
||||
key_rot_button->set_tooltip(TTR("Rotation mask for inserting keys."));
|
||||
key_rot_button->set_tooltip_text(TTR("Rotation mask for inserting keys."));
|
||||
animation_hb->add_child(key_rot_button);
|
||||
|
||||
key_scale_button = memnew(Button);
|
||||
|
@ -5357,14 +5357,14 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
key_scale_button->set_toggle_mode(true);
|
||||
key_scale_button->set_focus_mode(FOCUS_NONE);
|
||||
key_scale_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(ANIM_INSERT_SCALE));
|
||||
key_scale_button->set_tooltip(TTR("Scale mask for inserting keys."));
|
||||
key_scale_button->set_tooltip_text(TTR("Scale mask for inserting keys."));
|
||||
animation_hb->add_child(key_scale_button);
|
||||
|
||||
key_insert_button = memnew(Button);
|
||||
key_insert_button->set_flat(true);
|
||||
key_insert_button->set_focus_mode(FOCUS_NONE);
|
||||
key_insert_button->connect("pressed", callable_mp(this, &CanvasItemEditor::_popup_callback).bind(ANIM_INSERT_KEY));
|
||||
key_insert_button->set_tooltip(TTR("Insert keys (based on mask)."));
|
||||
key_insert_button->set_tooltip_text(TTR("Insert keys (based on mask)."));
|
||||
key_insert_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/anim_insert_key", TTR("Insert Key"), Key::INSERT));
|
||||
key_insert_button->set_shortcut_context(this);
|
||||
animation_hb->add_child(key_insert_button);
|
||||
|
@ -5373,14 +5373,14 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
key_auto_insert_button->set_flat(true);
|
||||
key_auto_insert_button->set_toggle_mode(true);
|
||||
key_auto_insert_button->set_focus_mode(FOCUS_NONE);
|
||||
key_auto_insert_button->set_tooltip(TTR("Auto insert keys when objects are translated, rotated or scaled (based on mask).\nKeys are only added to existing tracks, no new tracks will be created.\nKeys must be inserted manually for the first time."));
|
||||
key_auto_insert_button->set_tooltip_text(TTR("Auto insert keys when objects are translated, rotated or scaled (based on mask).\nKeys are only added to existing tracks, no new tracks will be created.\nKeys must be inserted manually for the first time."));
|
||||
key_auto_insert_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/anim_auto_insert_key", TTR("Auto Insert Key")));
|
||||
key_auto_insert_button->set_shortcut_context(this);
|
||||
animation_hb->add_child(key_auto_insert_button);
|
||||
|
||||
animation_menu = memnew(MenuButton);
|
||||
animation_menu->set_shortcut_context(this);
|
||||
animation_menu->set_tooltip(TTR("Animation Key and Pose Options"));
|
||||
animation_menu->set_tooltip_text(TTR("Animation Key and Pose Options"));
|
||||
animation_hb->add_child(animation_menu);
|
||||
animation_menu->get_popup()->connect("id_pressed", callable_mp(this, &CanvasItemEditor::_popup_callback));
|
||||
animation_menu->set_switch_on_hover(true);
|
||||
|
|
|
@ -69,14 +69,14 @@ void ControlPositioningWarning::_update_toggler() {
|
|||
Ref<Texture2D> arrow;
|
||||
if (hint_label->is_visible()) {
|
||||
arrow = get_theme_icon(SNAME("arrow"), SNAME("Tree"));
|
||||
set_tooltip(TTR("Collapse positioning hint."));
|
||||
set_tooltip_text(TTR("Collapse positioning hint."));
|
||||
} else {
|
||||
if (is_layout_rtl()) {
|
||||
arrow = get_theme_icon(SNAME("arrow_collapsed"), SNAME("Tree"));
|
||||
} else {
|
||||
arrow = get_theme_icon(SNAME("arrow_collapsed_mirrored"), SNAME("Tree"));
|
||||
}
|
||||
set_tooltip(TTR("Expand positioning hint."));
|
||||
set_tooltip_text(TTR("Expand positioning hint."));
|
||||
}
|
||||
|
||||
hint_icon->set_texture(arrow);
|
||||
|
@ -536,7 +536,7 @@ void ControlEditorPresetPicker::_add_row_button(HBoxContainer *p_row, const int
|
|||
Button *b = memnew(Button);
|
||||
b->set_custom_minimum_size(Size2i(36, 36) * EDSCALE);
|
||||
b->set_icon_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
b->set_tooltip(p_name);
|
||||
b->set_tooltip_text(p_name);
|
||||
b->set_flat(true);
|
||||
p_row->add_child(b);
|
||||
b->connect("pressed", callable_mp(this, &ControlEditorPresetPicker::_preset_button_pressed).bind(p_preset));
|
||||
|
@ -655,10 +655,10 @@ void SizeFlagPresetPicker::set_allowed_flags(Vector<SizeFlags> &p_flags) {
|
|||
|
||||
expand_button->set_disabled(!p_flags.has(SIZE_EXPAND));
|
||||
if (p_flags.has(SIZE_EXPAND)) {
|
||||
expand_button->set_tooltip(TTR("Enable to also set the Expand flag.\nDisable to only set Shrink/Fill flags."));
|
||||
expand_button->set_tooltip_text(TTR("Enable to also set the Expand flag.\nDisable to only set Shrink/Fill flags."));
|
||||
} else {
|
||||
expand_button->set_pressed(false);
|
||||
expand_button->set_tooltip(TTR("Some parents of the selected nodes do not support the Expand flag."));
|
||||
expand_button->set_tooltip_text(TTR("Some parents of the selected nodes do not support the Expand flag."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -706,7 +706,7 @@ SizeFlagPresetPicker::SizeFlagPresetPicker(bool p_vertical) {
|
|||
expand_button = memnew(CheckBox);
|
||||
expand_button->set_flat(true);
|
||||
expand_button->set_text(TTR("Align with Expand"));
|
||||
expand_button->set_tooltip(TTR("Enable to also set the Expand flag.\nDisable to only set Shrink/Fill flags."));
|
||||
expand_button->set_tooltip_text(TTR("Enable to also set the Expand flag.\nDisable to only set Shrink/Fill flags."));
|
||||
main_vb->add_child(expand_button);
|
||||
}
|
||||
|
||||
|
@ -983,7 +983,7 @@ ControlEditorToolbar::ControlEditorToolbar() {
|
|||
|
||||
// Anchor and offset tools.
|
||||
anchors_button = memnew(ControlEditorPopupButton);
|
||||
anchors_button->set_tooltip(TTR("Presets for the anchor and offset values of a Control node."));
|
||||
anchors_button->set_tooltip_text(TTR("Presets for the anchor and offset values of a Control node."));
|
||||
add_child(anchors_button);
|
||||
|
||||
Label *anchors_label = memnew(Label);
|
||||
|
@ -999,20 +999,20 @@ ControlEditorToolbar::ControlEditorToolbar() {
|
|||
Button *keep_ratio_button = memnew(Button);
|
||||
keep_ratio_button->set_text_alignment(HORIZONTAL_ALIGNMENT_LEFT);
|
||||
keep_ratio_button->set_text(TTR("Set to Current Ratio"));
|
||||
keep_ratio_button->set_tooltip(TTR("Adjust anchors and offsets to match the current rect size."));
|
||||
keep_ratio_button->set_tooltip_text(TTR("Adjust anchors and offsets to match the current rect size."));
|
||||
anchors_button->get_popup_hbox()->add_child(keep_ratio_button);
|
||||
keep_ratio_button->connect("pressed", callable_mp(this, &ControlEditorToolbar::_anchors_to_current_ratio));
|
||||
|
||||
anchor_mode_button = memnew(Button);
|
||||
anchor_mode_button->set_flat(true);
|
||||
anchor_mode_button->set_toggle_mode(true);
|
||||
anchor_mode_button->set_tooltip(TTR("When active, moving Control nodes changes their anchors instead of their offsets."));
|
||||
anchor_mode_button->set_tooltip_text(TTR("When active, moving Control nodes changes their anchors instead of their offsets."));
|
||||
add_child(anchor_mode_button);
|
||||
anchor_mode_button->connect("toggled", callable_mp(this, &ControlEditorToolbar::_anchor_mode_toggled));
|
||||
|
||||
// Container tools.
|
||||
containers_button = memnew(ControlEditorPopupButton);
|
||||
containers_button->set_tooltip(TTR("Sizing settings for children of a Container node."));
|
||||
containers_button->set_tooltip_text(TTR("Sizing settings for children of a Container node."));
|
||||
add_child(containers_button);
|
||||
|
||||
Label *container_h_label = memnew(Label);
|
||||
|
|
|
@ -289,7 +289,7 @@ void EditorPropertyFontMetaOverride::update_property() {
|
|||
} else {
|
||||
prop->set_label(TranslationServer::get_singleton()->get_locale_name(name));
|
||||
}
|
||||
prop->set_tooltip(name);
|
||||
prop->set_tooltip_text(name);
|
||||
prop->set_selectable(false);
|
||||
|
||||
prop->connect("property_changed", callable_mp(this, &EditorPropertyFontMetaOverride::_property_changed));
|
||||
|
@ -478,7 +478,7 @@ void EditorPropertyOTVariation::update_property() {
|
|||
|
||||
String name = TS->tag_to_name(name_tag);
|
||||
prop->set_label(name.capitalize());
|
||||
prop->set_tooltip(name);
|
||||
prop->set_tooltip_text(name);
|
||||
prop->set_selectable(false);
|
||||
|
||||
prop->connect("property_changed", callable_mp(this, &EditorPropertyOTVariation::_property_changed));
|
||||
|
@ -756,7 +756,7 @@ void EditorPropertyOTFeatures::update_property() {
|
|||
disp_name = vformat("%s (%s)", disp_name, info["label"].operator String());
|
||||
}
|
||||
prop->set_label(disp_name);
|
||||
prop->set_tooltip(name);
|
||||
prop->set_tooltip_text(name);
|
||||
prop->set_selectable(false);
|
||||
|
||||
prop->connect("property_changed", callable_mp(this, &EditorPropertyOTFeatures::_property_changed));
|
||||
|
|
|
@ -101,7 +101,7 @@ void GPUParticlesCollisionSDF3DEditorPlugin::_notification(int p_what) {
|
|||
return;
|
||||
}
|
||||
|
||||
bake->set_tooltip(text);
|
||||
bake->set_tooltip_text(text);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ void EditorInspectorPluginGradient::parse_begin(Object *p_object) {
|
|||
add_custom_control(gradient_tools_hbox);
|
||||
|
||||
reverse_btn->connect("pressed", callable_mp(this, &EditorInspectorPluginGradient::_reverse_button_pressed));
|
||||
reverse_btn->set_tooltip(TTR("Reverse/mirror gradient."));
|
||||
reverse_btn->set_tooltip_text(TTR("Reverse/mirror gradient."));
|
||||
}
|
||||
|
||||
void EditorInspectorPluginGradient::_reverse_button_pressed() {
|
||||
|
|
|
@ -227,14 +227,14 @@ GradientTexture2DEditor::GradientTexture2DEditor() {
|
|||
add_child(toolbar);
|
||||
|
||||
reverse_button = memnew(Button);
|
||||
reverse_button->set_tooltip(TTR("Swap Gradient Fill Points"));
|
||||
reverse_button->set_tooltip_text(TTR("Swap Gradient Fill Points"));
|
||||
toolbar->add_child(reverse_button);
|
||||
reverse_button->connect("pressed", callable_mp(this, &GradientTexture2DEditor::_reverse_button_pressed));
|
||||
|
||||
toolbar->add_child(memnew(VSeparator));
|
||||
|
||||
snap_button = memnew(Button);
|
||||
snap_button->set_tooltip(TTR("Toggle Grid Snap"));
|
||||
snap_button->set_tooltip_text(TTR("Toggle Grid Snap"));
|
||||
snap_button->set_toggle_mode(true);
|
||||
toolbar->add_child(snap_button);
|
||||
snap_button->connect("toggled", callable_mp(this, &GradientTexture2DEditor::_set_snap_enabled));
|
||||
|
|
|
@ -5818,11 +5818,11 @@ void Node3DEditor::_update_camera_override_button(bool p_game_running) {
|
|||
|
||||
if (p_game_running) {
|
||||
button->set_disabled(false);
|
||||
button->set_tooltip(TTR("Project Camera Override\nOverrides the running project's camera with the editor viewport camera."));
|
||||
button->set_tooltip_text(TTR("Project Camera Override\nOverrides the running project's camera with the editor viewport camera."));
|
||||
} else {
|
||||
button->set_disabled(true);
|
||||
button->set_pressed(false);
|
||||
button->set_tooltip(TTR("Project Camera Override\nNo project instance running. Run the project from the editor to use this feature."));
|
||||
button->set_tooltip_text(TTR("Project Camera Override\nNo project instance running. Run the project from the editor to use this feature."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7743,7 +7743,7 @@ Node3DEditor::Node3DEditor() {
|
|||
tool_button[TOOL_MODE_SELECT]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_TOOL_SELECT));
|
||||
tool_button[TOOL_MODE_SELECT]->set_shortcut(ED_SHORTCUT("spatial_editor/tool_select", TTR("Select Mode"), Key::Q));
|
||||
tool_button[TOOL_MODE_SELECT]->set_shortcut_context(this);
|
||||
tool_button[TOOL_MODE_SELECT]->set_tooltip(keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Drag: Rotate selected node around pivot.") + "\n" + TTR("Alt+RMB: Show list of all nodes at position clicked, including locked."));
|
||||
tool_button[TOOL_MODE_SELECT]->set_tooltip_text(keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Drag: Rotate selected node around pivot.") + "\n" + TTR("Alt+RMB: Show list of all nodes at position clicked, including locked."));
|
||||
main_menu_hbox->add_child(memnew(VSeparator));
|
||||
|
||||
tool_button[TOOL_MODE_MOVE] = memnew(Button);
|
||||
|
@ -7778,13 +7778,13 @@ Node3DEditor::Node3DEditor() {
|
|||
tool_button[TOOL_MODE_LIST_SELECT]->set_toggle_mode(true);
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->set_flat(true);
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_TOOL_LIST_SELECT));
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->set_tooltip(TTR("Show list of selectable nodes at position clicked."));
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->set_tooltip_text(TTR("Show list of selectable nodes at position clicked."));
|
||||
|
||||
tool_button[TOOL_LOCK_SELECTED] = memnew(Button);
|
||||
main_menu_hbox->add_child(tool_button[TOOL_LOCK_SELECTED]);
|
||||
tool_button[TOOL_LOCK_SELECTED]->set_flat(true);
|
||||
tool_button[TOOL_LOCK_SELECTED]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_LOCK_SELECTED));
|
||||
tool_button[TOOL_LOCK_SELECTED]->set_tooltip(TTR("Lock selected node, preventing selection and movement."));
|
||||
tool_button[TOOL_LOCK_SELECTED]->set_tooltip_text(TTR("Lock selected node, preventing selection and movement."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
tool_button[TOOL_LOCK_SELECTED]->set_shortcut(ED_SHORTCUT("editor/lock_selected_nodes", TTR("Lock Selected Node(s)"), KeyModifierMask::CMD | Key::L));
|
||||
|
||||
|
@ -7792,7 +7792,7 @@ Node3DEditor::Node3DEditor() {
|
|||
main_menu_hbox->add_child(tool_button[TOOL_UNLOCK_SELECTED]);
|
||||
tool_button[TOOL_UNLOCK_SELECTED]->set_flat(true);
|
||||
tool_button[TOOL_UNLOCK_SELECTED]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_UNLOCK_SELECTED));
|
||||
tool_button[TOOL_UNLOCK_SELECTED]->set_tooltip(TTR("Unlock selected node, allowing selection and movement."));
|
||||
tool_button[TOOL_UNLOCK_SELECTED]->set_tooltip_text(TTR("Unlock selected node, allowing selection and movement."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
tool_button[TOOL_UNLOCK_SELECTED]->set_shortcut(ED_SHORTCUT("editor/unlock_selected_nodes", TTR("Unlock Selected Node(s)"), KeyModifierMask::CMD | KeyModifierMask::SHIFT | Key::L));
|
||||
|
||||
|
@ -7800,7 +7800,7 @@ Node3DEditor::Node3DEditor() {
|
|||
main_menu_hbox->add_child(tool_button[TOOL_GROUP_SELECTED]);
|
||||
tool_button[TOOL_GROUP_SELECTED]->set_flat(true);
|
||||
tool_button[TOOL_GROUP_SELECTED]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_GROUP_SELECTED));
|
||||
tool_button[TOOL_GROUP_SELECTED]->set_tooltip(TTR("Make selected node's children not selectable."));
|
||||
tool_button[TOOL_GROUP_SELECTED]->set_tooltip_text(TTR("Make selected node's children not selectable."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
tool_button[TOOL_GROUP_SELECTED]->set_shortcut(ED_SHORTCUT("editor/group_selected_nodes", TTR("Group Selected Node(s)"), KeyModifierMask::CMD | Key::G));
|
||||
|
||||
|
@ -7808,7 +7808,7 @@ Node3DEditor::Node3DEditor() {
|
|||
main_menu_hbox->add_child(tool_button[TOOL_UNGROUP_SELECTED]);
|
||||
tool_button[TOOL_UNGROUP_SELECTED]->set_flat(true);
|
||||
tool_button[TOOL_UNGROUP_SELECTED]->connect("pressed", callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_UNGROUP_SELECTED));
|
||||
tool_button[TOOL_UNGROUP_SELECTED]->set_tooltip(TTR("Make selected node's children selectable."));
|
||||
tool_button[TOOL_UNGROUP_SELECTED]->set_tooltip_text(TTR("Make selected node's children selectable."));
|
||||
// Define the shortcut globally (without a context) so that it works if the Scene tree dock is currently focused.
|
||||
tool_button[TOOL_UNGROUP_SELECTED]->set_shortcut(ED_SHORTCUT("editor/ungroup_selected_nodes", TTR("Ungroup Selected Node(s)"), KeyModifierMask::CMD | KeyModifierMask::SHIFT | Key::G));
|
||||
|
||||
|
@ -7842,7 +7842,7 @@ Node3DEditor::Node3DEditor() {
|
|||
|
||||
main_menu_hbox->add_child(memnew(VSeparator));
|
||||
sun_button = memnew(Button);
|
||||
sun_button->set_tooltip(TTR("Toggle preview sunlight.\nIf a DirectionalLight3D node is added to the scene, preview sunlight is disabled."));
|
||||
sun_button->set_tooltip_text(TTR("Toggle preview sunlight.\nIf a DirectionalLight3D node is added to the scene, preview sunlight is disabled."));
|
||||
sun_button->set_toggle_mode(true);
|
||||
sun_button->set_flat(true);
|
||||
sun_button->connect("pressed", callable_mp(this, &Node3DEditor::_update_preview_environment), CONNECT_DEFERRED);
|
||||
|
@ -7851,7 +7851,7 @@ Node3DEditor::Node3DEditor() {
|
|||
main_menu_hbox->add_child(sun_button);
|
||||
|
||||
environ_button = memnew(Button);
|
||||
environ_button->set_tooltip(TTR("Toggle preview environment.\nIf a WorldEnvironment node is added to the scene, preview environment is disabled."));
|
||||
environ_button->set_tooltip_text(TTR("Toggle preview environment.\nIf a WorldEnvironment node is added to the scene, preview environment is disabled."));
|
||||
environ_button->set_toggle_mode(true);
|
||||
environ_button->set_flat(true);
|
||||
environ_button->connect("pressed", callable_mp(this, &Node3DEditor::_update_preview_environment), CONNECT_DEFERRED);
|
||||
|
@ -7860,7 +7860,7 @@ Node3DEditor::Node3DEditor() {
|
|||
main_menu_hbox->add_child(environ_button);
|
||||
|
||||
sun_environ_settings = memnew(Button);
|
||||
sun_environ_settings->set_tooltip(TTR("Edit Sun and Environment settings."));
|
||||
sun_environ_settings->set_tooltip_text(TTR("Edit Sun and Environment settings."));
|
||||
sun_environ_settings->set_flat(true);
|
||||
sun_environ_settings->connect("pressed", callable_mp(this, &Node3DEditor::_sun_environ_settings_pressed));
|
||||
|
||||
|
@ -8218,7 +8218,7 @@ void fragment() {
|
|||
|
||||
sun_add_to_scene = memnew(Button);
|
||||
sun_add_to_scene->set_text(TTR("Add Sun to Scene"));
|
||||
sun_add_to_scene->set_tooltip(TTR("Adds a DirectionalLight3D node matching the preview sun settings to the current scene.\nHold Shift while clicking to also add the preview environment to the current scene."));
|
||||
sun_add_to_scene->set_tooltip_text(TTR("Adds a DirectionalLight3D node matching the preview sun settings to the current scene.\nHold Shift while clicking to also add the preview environment to the current scene."));
|
||||
sun_add_to_scene->connect("pressed", callable_mp(this, &Node3DEditor::_add_sun_to_scene).bind(false));
|
||||
sun_vb->add_spacer();
|
||||
sun_vb->add_child(sun_add_to_scene);
|
||||
|
@ -8287,7 +8287,7 @@ void fragment() {
|
|||
|
||||
environ_add_to_scene = memnew(Button);
|
||||
environ_add_to_scene->set_text(TTR("Add Environment to Scene"));
|
||||
environ_add_to_scene->set_tooltip(TTR("Adds a WorldEnvironment node matching the preview environment settings to the current scene.\nHold Shift while clicking to also add the preview sun to the current scene."));
|
||||
environ_add_to_scene->set_tooltip_text(TTR("Adds a WorldEnvironment node matching the preview environment settings to the current scene.\nHold Shift while clicking to also add the preview sun to the current scene."));
|
||||
environ_add_to_scene->connect("pressed", callable_mp(this, &Node3DEditor::_add_environment_to_scene).bind(false));
|
||||
environ_vb->add_spacer();
|
||||
environ_vb->add_child(environ_add_to_scene);
|
||||
|
|
|
@ -123,7 +123,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
|
|||
PackedSceneEditorTranslationParserPlugin::PackedSceneEditorTranslationParserPlugin() {
|
||||
// Scene Node's properties containing strings that will be fetched for translation.
|
||||
lookup_properties.insert("text");
|
||||
lookup_properties.insert("hint_tooltip");
|
||||
lookup_properties.insert("tooltip_text");
|
||||
lookup_properties.insert("placeholder_text");
|
||||
lookup_properties.insert("items");
|
||||
lookup_properties.insert("title");
|
||||
|
|
|
@ -536,7 +536,7 @@ Path2DEditor::Path2DEditor() {
|
|||
curve_edit->set_flat(true);
|
||||
curve_edit->set_toggle_mode(true);
|
||||
curve_edit->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_edit->set_tooltip(TTR("Select Points") + "\n" + TTR("Shift+Drag: Select Control Points") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Click: Add Point") + "\n" + TTR("Left Click: Split Segment (in curve)") + "\n" + TTR("Right Click: Delete Point"));
|
||||
curve_edit->set_tooltip_text(TTR("Select Points") + "\n" + TTR("Shift+Drag: Select Control Points") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Click: Add Point") + "\n" + TTR("Left Click: Split Segment (in curve)") + "\n" + TTR("Right Click: Delete Point"));
|
||||
curve_edit->connect("pressed", callable_mp(this, &Path2DEditor::_mode_selected).bind(MODE_EDIT));
|
||||
base_hb->add_child(curve_edit);
|
||||
|
||||
|
@ -544,7 +544,7 @@ Path2DEditor::Path2DEditor() {
|
|||
curve_edit_curve->set_flat(true);
|
||||
curve_edit_curve->set_toggle_mode(true);
|
||||
curve_edit_curve->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_edit_curve->set_tooltip(TTR("Select Control Points (Shift+Drag)"));
|
||||
curve_edit_curve->set_tooltip_text(TTR("Select Control Points (Shift+Drag)"));
|
||||
curve_edit_curve->connect("pressed", callable_mp(this, &Path2DEditor::_mode_selected).bind(MODE_EDIT_CURVE));
|
||||
base_hb->add_child(curve_edit_curve);
|
||||
|
||||
|
@ -552,7 +552,7 @@ Path2DEditor::Path2DEditor() {
|
|||
curve_create->set_flat(true);
|
||||
curve_create->set_toggle_mode(true);
|
||||
curve_create->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_create->set_tooltip(TTR("Add Point (in empty space)"));
|
||||
curve_create->set_tooltip_text(TTR("Add Point (in empty space)"));
|
||||
curve_create->connect("pressed", callable_mp(this, &Path2DEditor::_mode_selected).bind(MODE_CREATE));
|
||||
base_hb->add_child(curve_create);
|
||||
|
||||
|
@ -560,14 +560,14 @@ Path2DEditor::Path2DEditor() {
|
|||
curve_del->set_flat(true);
|
||||
curve_del->set_toggle_mode(true);
|
||||
curve_del->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_del->set_tooltip(TTR("Delete Point"));
|
||||
curve_del->set_tooltip_text(TTR("Delete Point"));
|
||||
curve_del->connect("pressed", callable_mp(this, &Path2DEditor::_mode_selected).bind(MODE_DELETE));
|
||||
base_hb->add_child(curve_del);
|
||||
|
||||
curve_close = memnew(Button);
|
||||
curve_close->set_flat(true);
|
||||
curve_close->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_close->set_tooltip(TTR("Close Curve"));
|
||||
curve_close->set_tooltip_text(TTR("Close Curve"));
|
||||
curve_close->connect("pressed", callable_mp(this, &Path2DEditor::_mode_selected).bind(ACTION_CLOSE));
|
||||
base_hb->add_child(curve_close);
|
||||
|
||||
|
|
|
@ -595,7 +595,7 @@ Path3DEditorPlugin::Path3DEditorPlugin() {
|
|||
curve_edit->set_toggle_mode(true);
|
||||
curve_edit->hide();
|
||||
curve_edit->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_edit->set_tooltip(TTR("Select Points") + "\n" + TTR("Shift+Drag: Select Control Points") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Click: Add Point") + "\n" + TTR("Right Click: Delete Point"));
|
||||
curve_edit->set_tooltip_text(TTR("Select Points") + "\n" + TTR("Shift+Drag: Select Control Points") + "\n" + keycode_get_string((Key)KeyModifierMask::CMD) + TTR("Click: Add Point") + "\n" + TTR("Right Click: Delete Point"));
|
||||
Node3DEditor::get_singleton()->add_control_to_menu_panel(curve_edit);
|
||||
|
||||
curve_create = memnew(Button);
|
||||
|
@ -603,7 +603,7 @@ Path3DEditorPlugin::Path3DEditorPlugin() {
|
|||
curve_create->set_toggle_mode(true);
|
||||
curve_create->hide();
|
||||
curve_create->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_create->set_tooltip(TTR("Add Point (in empty space)") + "\n" + TTR("Split Segment (in curve)"));
|
||||
curve_create->set_tooltip_text(TTR("Add Point (in empty space)") + "\n" + TTR("Split Segment (in curve)"));
|
||||
Node3DEditor::get_singleton()->add_control_to_menu_panel(curve_create);
|
||||
|
||||
curve_del = memnew(Button);
|
||||
|
@ -611,14 +611,14 @@ Path3DEditorPlugin::Path3DEditorPlugin() {
|
|||
curve_del->set_toggle_mode(true);
|
||||
curve_del->hide();
|
||||
curve_del->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_del->set_tooltip(TTR("Delete Point"));
|
||||
curve_del->set_tooltip_text(TTR("Delete Point"));
|
||||
Node3DEditor::get_singleton()->add_control_to_menu_panel(curve_del);
|
||||
|
||||
curve_close = memnew(Button);
|
||||
curve_close->set_flat(true);
|
||||
curve_close->hide();
|
||||
curve_close->set_focus_mode(Control::FOCUS_NONE);
|
||||
curve_close->set_tooltip(TTR("Close Curve"));
|
||||
curve_close->set_tooltip_text(TTR("Close Curve"));
|
||||
Node3DEditor::get_singleton()->add_control_to_menu_panel(curve_close);
|
||||
|
||||
PopupMenu *menu;
|
||||
|
|
|
@ -1237,7 +1237,7 @@ Polygon2DEditor::Polygon2DEditor() {
|
|||
button_uv = memnew(Button);
|
||||
button_uv->set_flat(true);
|
||||
add_child(button_uv);
|
||||
button_uv->set_tooltip(TTR("Open Polygon 2D UV editor."));
|
||||
button_uv->set_tooltip_text(TTR("Open Polygon 2D UV editor."));
|
||||
button_uv->connect("pressed", callable_mp(this, &Polygon2DEditor::_menu_option).bind(MODE_EDIT_UV));
|
||||
|
||||
uv_mode = UV_MODE_EDIT_POINT;
|
||||
|
@ -1293,17 +1293,17 @@ Polygon2DEditor::Polygon2DEditor() {
|
|||
uv_button[i]->set_focus_mode(FOCUS_NONE);
|
||||
}
|
||||
|
||||
uv_button[UV_MODE_CREATE]->set_tooltip(TTR("Create Polygon"));
|
||||
uv_button[UV_MODE_CREATE_INTERNAL]->set_tooltip(TTR("Create Internal Vertex"));
|
||||
uv_button[UV_MODE_REMOVE_INTERNAL]->set_tooltip(TTR("Remove Internal Vertex"));
|
||||
uv_button[UV_MODE_EDIT_POINT]->set_tooltip(TTR("Move Points") + "\n" + TTR("Ctrl: Rotate") + "\n" + TTR("Shift: Move All") + "\n" + TTR("Shift+Ctrl: Scale"));
|
||||
uv_button[UV_MODE_MOVE]->set_tooltip(TTR("Move Polygon"));
|
||||
uv_button[UV_MODE_ROTATE]->set_tooltip(TTR("Rotate Polygon"));
|
||||
uv_button[UV_MODE_SCALE]->set_tooltip(TTR("Scale Polygon"));
|
||||
uv_button[UV_MODE_ADD_POLYGON]->set_tooltip(TTR("Create a custom polygon. Enables custom polygon rendering."));
|
||||
uv_button[UV_MODE_REMOVE_POLYGON]->set_tooltip(TTR("Remove a custom polygon. If none remain, custom polygon rendering is disabled."));
|
||||
uv_button[UV_MODE_PAINT_WEIGHT]->set_tooltip(TTR("Paint weights with specified intensity."));
|
||||
uv_button[UV_MODE_CLEAR_WEIGHT]->set_tooltip(TTR("Unpaint weights with specified intensity."));
|
||||
uv_button[UV_MODE_CREATE]->set_tooltip_text(TTR("Create Polygon"));
|
||||
uv_button[UV_MODE_CREATE_INTERNAL]->set_tooltip_text(TTR("Create Internal Vertex"));
|
||||
uv_button[UV_MODE_REMOVE_INTERNAL]->set_tooltip_text(TTR("Remove Internal Vertex"));
|
||||
uv_button[UV_MODE_EDIT_POINT]->set_tooltip_text(TTR("Move Points") + "\n" + TTR("Ctrl: Rotate") + "\n" + TTR("Shift: Move All") + "\n" + TTR("Shift+Ctrl: Scale"));
|
||||
uv_button[UV_MODE_MOVE]->set_tooltip_text(TTR("Move Polygon"));
|
||||
uv_button[UV_MODE_ROTATE]->set_tooltip_text(TTR("Rotate Polygon"));
|
||||
uv_button[UV_MODE_SCALE]->set_tooltip_text(TTR("Scale Polygon"));
|
||||
uv_button[UV_MODE_ADD_POLYGON]->set_tooltip_text(TTR("Create a custom polygon. Enables custom polygon rendering."));
|
||||
uv_button[UV_MODE_REMOVE_POLYGON]->set_tooltip_text(TTR("Remove a custom polygon. If none remain, custom polygon rendering is disabled."));
|
||||
uv_button[UV_MODE_PAINT_WEIGHT]->set_tooltip_text(TTR("Paint weights with specified intensity."));
|
||||
uv_button[UV_MODE_CLEAR_WEIGHT]->set_tooltip_text(TTR("Unpaint weights with specified intensity."));
|
||||
|
||||
uv_button[UV_MODE_CREATE]->hide();
|
||||
uv_button[UV_MODE_CREATE_INTERNAL]->hide();
|
||||
|
@ -1368,7 +1368,7 @@ Polygon2DEditor::Polygon2DEditor() {
|
|||
b_snap_enable->set_focus_mode(FOCUS_NONE);
|
||||
b_snap_enable->set_toggle_mode(true);
|
||||
b_snap_enable->set_pressed(use_snap);
|
||||
b_snap_enable->set_tooltip(TTR("Enable Snap"));
|
||||
b_snap_enable->set_tooltip_text(TTR("Enable Snap"));
|
||||
b_snap_enable->connect("toggled", callable_mp(this, &Polygon2DEditor::_set_use_snap));
|
||||
|
||||
b_snap_grid = memnew(Button);
|
||||
|
@ -1378,7 +1378,7 @@ Polygon2DEditor::Polygon2DEditor() {
|
|||
b_snap_grid->set_focus_mode(FOCUS_NONE);
|
||||
b_snap_grid->set_toggle_mode(true);
|
||||
b_snap_grid->set_pressed(snap_show_grid);
|
||||
b_snap_grid->set_tooltip(TTR("Show Grid"));
|
||||
b_snap_grid->set_tooltip_text(TTR("Show Grid"));
|
||||
b_snap_grid->connect("toggled", callable_mp(this, &Polygon2DEditor::_set_show_grid));
|
||||
|
||||
grid_settings = memnew(AcceptDialog);
|
||||
|
|
|
@ -355,7 +355,7 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {
|
|||
vbc->add_child(hbc);
|
||||
|
||||
load = memnew(Button);
|
||||
load->set_tooltip(TTR("Load Resource"));
|
||||
load->set_tooltip_text(TTR("Load Resource"));
|
||||
hbc->add_child(load);
|
||||
|
||||
paste = memnew(Button);
|
||||
|
|
|
@ -198,7 +198,7 @@ void EditorPropertyRootMotion::_node_clear() {
|
|||
void EditorPropertyRootMotion::update_property() {
|
||||
NodePath p = get_edited_object()->get(get_edited_property());
|
||||
|
||||
assign->set_tooltip(p);
|
||||
assign->set_tooltip_text(p);
|
||||
if (p == NodePath()) {
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_text(TTR("Assign..."));
|
||||
|
|
|
@ -3712,7 +3712,7 @@ ScriptEditor::ScriptEditor() {
|
|||
|
||||
members_overview_alphabeta_sort_button = memnew(Button);
|
||||
members_overview_alphabeta_sort_button->set_flat(true);
|
||||
members_overview_alphabeta_sort_button->set_tooltip(TTR("Toggle alphabetical sorting of the method list."));
|
||||
members_overview_alphabeta_sort_button->set_tooltip_text(TTR("Toggle alphabetical sorting of the method list."));
|
||||
members_overview_alphabeta_sort_button->set_toggle_mode(true);
|
||||
members_overview_alphabeta_sort_button->set_pressed(EditorSettings::get_singleton()->get("text_editor/script_list/sort_members_outline_alphabetically"));
|
||||
members_overview_alphabeta_sort_button->connect("toggled", callable_mp(this, &ScriptEditor::_toggle_members_overview_alpha_sort));
|
||||
|
@ -3858,14 +3858,14 @@ ScriptEditor::ScriptEditor() {
|
|||
site_search->set_text(TTR("Online Docs"));
|
||||
site_search->connect("pressed", callable_mp(this, &ScriptEditor::_menu_option).bind(SEARCH_WEBSITE));
|
||||
menu_hb->add_child(site_search);
|
||||
site_search->set_tooltip(TTR("Open Godot online documentation."));
|
||||
site_search->set_tooltip_text(TTR("Open Godot online documentation."));
|
||||
|
||||
help_search = memnew(Button);
|
||||
help_search->set_flat(true);
|
||||
help_search->set_text(TTR("Search Help"));
|
||||
help_search->connect("pressed", callable_mp(this, &ScriptEditor::_menu_option).bind(SEARCH_HELP));
|
||||
menu_hb->add_child(help_search);
|
||||
help_search->set_tooltip(TTR("Search the reference documentation."));
|
||||
help_search->set_tooltip_text(TTR("Search the reference documentation."));
|
||||
|
||||
menu_hb->add_child(memnew(VSeparator));
|
||||
|
||||
|
@ -3874,14 +3874,14 @@ ScriptEditor::ScriptEditor() {
|
|||
script_back->connect("pressed", callable_mp(this, &ScriptEditor::_history_back));
|
||||
menu_hb->add_child(script_back);
|
||||
script_back->set_disabled(true);
|
||||
script_back->set_tooltip(TTR("Go to previous edited document."));
|
||||
script_back->set_tooltip_text(TTR("Go to previous edited document."));
|
||||
|
||||
script_forward = memnew(Button);
|
||||
script_forward->set_flat(true);
|
||||
script_forward->connect("pressed", callable_mp(this, &ScriptEditor::_history_forward));
|
||||
menu_hb->add_child(script_forward);
|
||||
script_forward->set_disabled(true);
|
||||
script_forward->set_tooltip(TTR("Go to next edited document."));
|
||||
script_forward->set_tooltip_text(TTR("Go to next edited document."));
|
||||
|
||||
tab_container->connect("tab_changed", callable_mp(this, &ScriptEditor::_tab_changed));
|
||||
|
||||
|
|
|
@ -733,7 +733,7 @@ void Skeleton3DEditor::create_editors() {
|
|||
edit_mode_button->set_flat(true);
|
||||
edit_mode_button->set_toggle_mode(true);
|
||||
edit_mode_button->set_focus_mode(FOCUS_NONE);
|
||||
edit_mode_button->set_tooltip(TTR("Edit Mode\nShow buttons on joints."));
|
||||
edit_mode_button->set_tooltip_text(TTR("Edit Mode\nShow buttons on joints."));
|
||||
edit_mode_button->connect("toggled", callable_mp(this, &Skeleton3DEditor::edit_mode_toggled));
|
||||
|
||||
edit_mode = false;
|
||||
|
@ -754,7 +754,7 @@ void Skeleton3DEditor::create_editors() {
|
|||
key_loc_button->set_toggle_mode(true);
|
||||
key_loc_button->set_pressed(false);
|
||||
key_loc_button->set_focus_mode(FOCUS_NONE);
|
||||
key_loc_button->set_tooltip(TTR("Translation mask for inserting keys."));
|
||||
key_loc_button->set_tooltip_text(TTR("Translation mask for inserting keys."));
|
||||
animation_hb->add_child(key_loc_button);
|
||||
|
||||
key_rot_button = memnew(Button);
|
||||
|
@ -762,7 +762,7 @@ void Skeleton3DEditor::create_editors() {
|
|||
key_rot_button->set_toggle_mode(true);
|
||||
key_rot_button->set_pressed(true);
|
||||
key_rot_button->set_focus_mode(FOCUS_NONE);
|
||||
key_rot_button->set_tooltip(TTR("Rotation mask for inserting keys."));
|
||||
key_rot_button->set_tooltip_text(TTR("Rotation mask for inserting keys."));
|
||||
animation_hb->add_child(key_rot_button);
|
||||
|
||||
key_scale_button = memnew(Button);
|
||||
|
@ -770,14 +770,14 @@ void Skeleton3DEditor::create_editors() {
|
|||
key_scale_button->set_toggle_mode(true);
|
||||
key_scale_button->set_pressed(false);
|
||||
key_scale_button->set_focus_mode(FOCUS_NONE);
|
||||
key_scale_button->set_tooltip(TTR("Scale mask for inserting keys."));
|
||||
key_scale_button->set_tooltip_text(TTR("Scale mask for inserting keys."));
|
||||
animation_hb->add_child(key_scale_button);
|
||||
|
||||
key_insert_button = memnew(Button);
|
||||
key_insert_button->set_flat(true);
|
||||
key_insert_button->set_focus_mode(FOCUS_NONE);
|
||||
key_insert_button->connect("pressed", callable_mp(this, &Skeleton3DEditor::insert_keys).bind(false));
|
||||
key_insert_button->set_tooltip(TTR("Insert key of bone poses already exist track."));
|
||||
key_insert_button->set_tooltip_text(TTR("Insert key of bone poses already exist track."));
|
||||
key_insert_button->set_shortcut(ED_SHORTCUT("skeleton_3d_editor/insert_key_to_existing_tracks", TTR("Insert Key (Existing Tracks)"), Key::INSERT));
|
||||
animation_hb->add_child(key_insert_button);
|
||||
|
||||
|
@ -785,7 +785,7 @@ void Skeleton3DEditor::create_editors() {
|
|||
key_insert_all_button->set_flat(true);
|
||||
key_insert_all_button->set_focus_mode(FOCUS_NONE);
|
||||
key_insert_all_button->connect("pressed", callable_mp(this, &Skeleton3DEditor::insert_keys).bind(true));
|
||||
key_insert_all_button->set_tooltip(TTR("Insert key of all bone poses."));
|
||||
key_insert_all_button->set_tooltip_text(TTR("Insert key of all bone poses."));
|
||||
key_insert_all_button->set_shortcut(ED_SHORTCUT("skeleton_3d_editor/insert_key_of_all_bones", TTR("Insert Key (All Bones)"), KeyModifierMask::CMD + Key::INSERT));
|
||||
animation_hb->add_child(key_insert_all_button);
|
||||
|
||||
|
|
|
@ -1160,13 +1160,13 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
|||
|
||||
new_anim = memnew(Button);
|
||||
new_anim->set_flat(true);
|
||||
new_anim->set_tooltip(TTR("New Animation"));
|
||||
new_anim->set_tooltip_text(TTR("New Animation"));
|
||||
hbc_animlist->add_child(new_anim);
|
||||
new_anim->connect("pressed", callable_mp(this, &SpriteFramesEditor::_animation_add));
|
||||
|
||||
remove_anim = memnew(Button);
|
||||
remove_anim->set_flat(true);
|
||||
remove_anim->set_tooltip(TTR("Remove Animation"));
|
||||
remove_anim->set_tooltip_text(TTR("Remove Animation"));
|
||||
hbc_animlist->add_child(remove_anim);
|
||||
remove_anim->connect("pressed", callable_mp(this, &SpriteFramesEditor::_animation_remove));
|
||||
|
||||
|
@ -1214,53 +1214,53 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
|||
|
||||
load = memnew(Button);
|
||||
load->set_flat(true);
|
||||
load->set_tooltip(TTR("Add a Texture from File"));
|
||||
load->set_tooltip_text(TTR("Add a Texture from File"));
|
||||
hbc->add_child(load);
|
||||
|
||||
load_sheet = memnew(Button);
|
||||
load_sheet->set_flat(true);
|
||||
load_sheet->set_tooltip(TTR("Add Frames from a Sprite Sheet"));
|
||||
load_sheet->set_tooltip_text(TTR("Add Frames from a Sprite Sheet"));
|
||||
hbc->add_child(load_sheet);
|
||||
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
|
||||
copy = memnew(Button);
|
||||
copy->set_flat(true);
|
||||
copy->set_tooltip(TTR("Copy"));
|
||||
copy->set_tooltip_text(TTR("Copy"));
|
||||
hbc->add_child(copy);
|
||||
|
||||
paste = memnew(Button);
|
||||
paste->set_flat(true);
|
||||
paste->set_tooltip(TTR("Paste"));
|
||||
paste->set_tooltip_text(TTR("Paste"));
|
||||
hbc->add_child(paste);
|
||||
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
|
||||
empty = memnew(Button);
|
||||
empty->set_flat(true);
|
||||
empty->set_tooltip(TTR("Insert Empty (Before)"));
|
||||
empty->set_tooltip_text(TTR("Insert Empty (Before)"));
|
||||
hbc->add_child(empty);
|
||||
|
||||
empty2 = memnew(Button);
|
||||
empty2->set_flat(true);
|
||||
empty2->set_tooltip(TTR("Insert Empty (After)"));
|
||||
empty2->set_tooltip_text(TTR("Insert Empty (After)"));
|
||||
hbc->add_child(empty2);
|
||||
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
|
||||
move_up = memnew(Button);
|
||||
move_up->set_flat(true);
|
||||
move_up->set_tooltip(TTR("Move (Before)"));
|
||||
move_up->set_tooltip_text(TTR("Move (Before)"));
|
||||
hbc->add_child(move_up);
|
||||
|
||||
move_down = memnew(Button);
|
||||
move_down->set_flat(true);
|
||||
move_down->set_tooltip(TTR("Move (After)"));
|
||||
move_down->set_tooltip_text(TTR("Move (After)"));
|
||||
hbc->add_child(move_down);
|
||||
|
||||
_delete = memnew(Button);
|
||||
_delete->set_flat(true);
|
||||
_delete->set_tooltip(TTR("Delete"));
|
||||
_delete->set_tooltip_text(TTR("Delete"));
|
||||
hbc->add_child(_delete);
|
||||
|
||||
hbc->add_spacer();
|
||||
|
@ -1268,19 +1268,19 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
|||
zoom_out = memnew(Button);
|
||||
zoom_out->connect("pressed", callable_mp(this, &SpriteFramesEditor::_zoom_out));
|
||||
zoom_out->set_flat(true);
|
||||
zoom_out->set_tooltip(TTR("Zoom Out"));
|
||||
zoom_out->set_tooltip_text(TTR("Zoom Out"));
|
||||
hbc->add_child(zoom_out);
|
||||
|
||||
zoom_reset = memnew(Button);
|
||||
zoom_reset->connect("pressed", callable_mp(this, &SpriteFramesEditor::_zoom_reset));
|
||||
zoom_reset->set_flat(true);
|
||||
zoom_reset->set_tooltip(TTR("Zoom Reset"));
|
||||
zoom_reset->set_tooltip_text(TTR("Zoom Reset"));
|
||||
hbc->add_child(zoom_reset);
|
||||
|
||||
zoom_in = memnew(Button);
|
||||
zoom_in->connect("pressed", callable_mp(this, &SpriteFramesEditor::_zoom_in));
|
||||
zoom_in->set_flat(true);
|
||||
zoom_in->set_tooltip(TTR("Zoom In"));
|
||||
zoom_in->set_tooltip_text(TTR("Zoom In"));
|
||||
hbc->add_child(zoom_in);
|
||||
|
||||
file = memnew(EditorFileDialog);
|
||||
|
@ -1433,21 +1433,21 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
|||
split_sheet_zoom_out = memnew(Button);
|
||||
split_sheet_zoom_out->set_flat(true);
|
||||
split_sheet_zoom_out->set_focus_mode(FOCUS_NONE);
|
||||
split_sheet_zoom_out->set_tooltip(TTR("Zoom Out"));
|
||||
split_sheet_zoom_out->set_tooltip_text(TTR("Zoom Out"));
|
||||
split_sheet_zoom_out->connect("pressed", callable_mp(this, &SpriteFramesEditor::_sheet_zoom_out));
|
||||
split_sheet_zoom_hb->add_child(split_sheet_zoom_out);
|
||||
|
||||
split_sheet_zoom_reset = memnew(Button);
|
||||
split_sheet_zoom_reset->set_flat(true);
|
||||
split_sheet_zoom_reset->set_focus_mode(FOCUS_NONE);
|
||||
split_sheet_zoom_reset->set_tooltip(TTR("Zoom Reset"));
|
||||
split_sheet_zoom_reset->set_tooltip_text(TTR("Zoom Reset"));
|
||||
split_sheet_zoom_reset->connect("pressed", callable_mp(this, &SpriteFramesEditor::_sheet_zoom_reset));
|
||||
split_sheet_zoom_hb->add_child(split_sheet_zoom_reset);
|
||||
|
||||
split_sheet_zoom_in = memnew(Button);
|
||||
split_sheet_zoom_in->set_flat(true);
|
||||
split_sheet_zoom_in->set_focus_mode(FOCUS_NONE);
|
||||
split_sheet_zoom_in->set_tooltip(TTR("Zoom In"));
|
||||
split_sheet_zoom_in->set_tooltip_text(TTR("Zoom In"));
|
||||
split_sheet_zoom_in->connect("pressed", callable_mp(this, &SpriteFramesEditor::_sheet_zoom_in));
|
||||
split_sheet_zoom_hb->add_child(split_sheet_zoom_in);
|
||||
|
||||
|
|
|
@ -1109,19 +1109,19 @@ TextureRegionEditor::TextureRegionEditor() {
|
|||
|
||||
zoom_out = memnew(Button);
|
||||
zoom_out->set_flat(true);
|
||||
zoom_out->set_tooltip(TTR("Zoom Out"));
|
||||
zoom_out->set_tooltip_text(TTR("Zoom Out"));
|
||||
zoom_out->connect("pressed", callable_mp(this, &TextureRegionEditor::_zoom_out));
|
||||
zoom_hb->add_child(zoom_out);
|
||||
|
||||
zoom_reset = memnew(Button);
|
||||
zoom_reset->set_flat(true);
|
||||
zoom_reset->set_tooltip(TTR("Zoom Reset"));
|
||||
zoom_reset->set_tooltip_text(TTR("Zoom Reset"));
|
||||
zoom_reset->connect("pressed", callable_mp(this, &TextureRegionEditor::_zoom_reset));
|
||||
zoom_hb->add_child(zoom_reset);
|
||||
|
||||
zoom_in = memnew(Button);
|
||||
zoom_in->set_flat(true);
|
||||
zoom_in->set_tooltip(TTR("Zoom In"));
|
||||
zoom_in->set_tooltip_text(TTR("Zoom In"));
|
||||
zoom_in->connect("pressed", callable_mp(this, &TextureRegionEditor::_zoom_in));
|
||||
zoom_hb->add_child(zoom_in);
|
||||
|
||||
|
|
|
@ -1102,15 +1102,15 @@ ThemeItemImportTree::ThemeItemImportTree() {
|
|||
button_set->set_alignment(BoxContainer::ALIGNMENT_END);
|
||||
all_set->add_child(button_set);
|
||||
select_all_items_button->set_flat(true);
|
||||
select_all_items_button->set_tooltip(select_all_items_tooltip);
|
||||
select_all_items_button->set_tooltip_text(select_all_items_tooltip);
|
||||
button_set->add_child(select_all_items_button);
|
||||
select_all_items_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_select_all_data_type_pressed).bind(i));
|
||||
select_full_items_button->set_flat(true);
|
||||
select_full_items_button->set_tooltip(select_full_items_tooltip);
|
||||
select_full_items_button->set_tooltip_text(select_full_items_tooltip);
|
||||
button_set->add_child(select_full_items_button);
|
||||
select_full_items_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_select_full_data_type_pressed).bind(i));
|
||||
deselect_all_items_button->set_flat(true);
|
||||
deselect_all_items_button->set_tooltip(deselect_all_items_tooltip);
|
||||
deselect_all_items_button->set_tooltip_text(deselect_all_items_tooltip);
|
||||
button_set->add_child(deselect_all_items_button);
|
||||
deselect_all_items_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_deselect_all_data_type_pressed).bind(i));
|
||||
|
||||
|
@ -1141,12 +1141,12 @@ ThemeItemImportTree::ThemeItemImportTree() {
|
|||
|
||||
import_collapse_types_button = memnew(Button);
|
||||
import_collapse_types_button->set_flat(true);
|
||||
import_collapse_types_button->set_tooltip(TTR("Collapse types."));
|
||||
import_collapse_types_button->set_tooltip_text(TTR("Collapse types."));
|
||||
import_buttons->add_child(import_collapse_types_button);
|
||||
import_collapse_types_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_toggle_type_items).bind(true));
|
||||
import_expand_types_button = memnew(Button);
|
||||
import_expand_types_button->set_flat(true);
|
||||
import_expand_types_button->set_tooltip(TTR("Expand types."));
|
||||
import_expand_types_button->set_tooltip_text(TTR("Expand types."));
|
||||
import_buttons->add_child(import_expand_types_button);
|
||||
import_expand_types_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_toggle_type_items).bind(false));
|
||||
|
||||
|
@ -1155,19 +1155,19 @@ ThemeItemImportTree::ThemeItemImportTree() {
|
|||
import_select_all_button = memnew(Button);
|
||||
import_select_all_button->set_flat(true);
|
||||
import_select_all_button->set_text(TTR("Select All"));
|
||||
import_select_all_button->set_tooltip(TTR("Select all Theme items."));
|
||||
import_select_all_button->set_tooltip_text(TTR("Select all Theme items."));
|
||||
import_buttons->add_child(import_select_all_button);
|
||||
import_select_all_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_select_all_items_pressed));
|
||||
import_select_full_button = memnew(Button);
|
||||
import_select_full_button->set_flat(true);
|
||||
import_select_full_button->set_text(TTR("Select With Data"));
|
||||
import_select_full_button->set_tooltip(TTR("Select all Theme items with item data."));
|
||||
import_select_full_button->set_tooltip_text(TTR("Select all Theme items with item data."));
|
||||
import_buttons->add_child(import_select_full_button);
|
||||
import_select_full_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_select_full_items_pressed));
|
||||
import_deselect_all_button = memnew(Button);
|
||||
import_deselect_all_button->set_flat(true);
|
||||
import_deselect_all_button->set_text(TTR("Deselect All"));
|
||||
import_deselect_all_button->set_tooltip(TTR("Deselect all Theme items."));
|
||||
import_deselect_all_button->set_tooltip_text(TTR("Deselect all Theme items."));
|
||||
import_buttons->add_child(import_deselect_all_button);
|
||||
import_deselect_all_button->connect("pressed", callable_mp(this, &ThemeItemImportTree::_deselect_all_items_pressed));
|
||||
|
||||
|
@ -1953,42 +1953,42 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
|
|||
edit_items_toolbar->add_child(edit_items_toolbar_add_label);
|
||||
|
||||
edit_items_add_color = memnew(Button);
|
||||
edit_items_add_color->set_tooltip(TTR("Add Color Item"));
|
||||
edit_items_add_color->set_tooltip_text(TTR("Add Color Item"));
|
||||
edit_items_add_color->set_flat(true);
|
||||
edit_items_add_color->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_color);
|
||||
edit_items_add_color->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_open_add_theme_item_dialog).bind(Theme::DATA_TYPE_COLOR));
|
||||
|
||||
edit_items_add_constant = memnew(Button);
|
||||
edit_items_add_constant->set_tooltip(TTR("Add Constant Item"));
|
||||
edit_items_add_constant->set_tooltip_text(TTR("Add Constant Item"));
|
||||
edit_items_add_constant->set_flat(true);
|
||||
edit_items_add_constant->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_constant);
|
||||
edit_items_add_constant->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_open_add_theme_item_dialog).bind(Theme::DATA_TYPE_CONSTANT));
|
||||
|
||||
edit_items_add_font = memnew(Button);
|
||||
edit_items_add_font->set_tooltip(TTR("Add Font Item"));
|
||||
edit_items_add_font->set_tooltip_text(TTR("Add Font Item"));
|
||||
edit_items_add_font->set_flat(true);
|
||||
edit_items_add_font->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_font);
|
||||
edit_items_add_font->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_open_add_theme_item_dialog).bind(Theme::DATA_TYPE_FONT));
|
||||
|
||||
edit_items_add_font_size = memnew(Button);
|
||||
edit_items_add_font_size->set_tooltip(TTR("Add Font Size Item"));
|
||||
edit_items_add_font_size->set_tooltip_text(TTR("Add Font Size Item"));
|
||||
edit_items_add_font_size->set_flat(true);
|
||||
edit_items_add_font_size->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_font_size);
|
||||
edit_items_add_font_size->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_open_add_theme_item_dialog).bind(Theme::DATA_TYPE_FONT_SIZE));
|
||||
|
||||
edit_items_add_icon = memnew(Button);
|
||||
edit_items_add_icon->set_tooltip(TTR("Add Icon Item"));
|
||||
edit_items_add_icon->set_tooltip_text(TTR("Add Icon Item"));
|
||||
edit_items_add_icon->set_flat(true);
|
||||
edit_items_add_icon->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_icon);
|
||||
edit_items_add_icon->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_open_add_theme_item_dialog).bind(Theme::DATA_TYPE_ICON));
|
||||
|
||||
edit_items_add_stylebox = memnew(Button);
|
||||
edit_items_add_stylebox->set_tooltip(TTR("Add StyleBox Item"));
|
||||
edit_items_add_stylebox->set_tooltip_text(TTR("Add StyleBox Item"));
|
||||
edit_items_add_stylebox->set_flat(true);
|
||||
edit_items_add_stylebox->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_add_stylebox);
|
||||
|
@ -2001,21 +2001,21 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
|
|||
edit_items_toolbar->add_child(edit_items_toolbar_remove_label);
|
||||
|
||||
edit_items_remove_class = memnew(Button);
|
||||
edit_items_remove_class->set_tooltip(TTR("Remove Class Items"));
|
||||
edit_items_remove_class->set_tooltip_text(TTR("Remove Class Items"));
|
||||
edit_items_remove_class->set_flat(true);
|
||||
edit_items_remove_class->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_remove_class);
|
||||
edit_items_remove_class->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_remove_class_items));
|
||||
|
||||
edit_items_remove_custom = memnew(Button);
|
||||
edit_items_remove_custom->set_tooltip(TTR("Remove Custom Items"));
|
||||
edit_items_remove_custom->set_tooltip_text(TTR("Remove Custom Items"));
|
||||
edit_items_remove_custom->set_flat(true);
|
||||
edit_items_remove_custom->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_remove_custom);
|
||||
edit_items_remove_custom->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_remove_custom_items));
|
||||
|
||||
edit_items_remove_all = memnew(Button);
|
||||
edit_items_remove_all->set_tooltip(TTR("Remove All Items"));
|
||||
edit_items_remove_all->set_tooltip_text(TTR("Remove All Items"));
|
||||
edit_items_remove_all->set_flat(true);
|
||||
edit_items_remove_all->set_disabled(true);
|
||||
edit_items_toolbar->add_child(edit_items_remove_all);
|
||||
|
@ -2411,7 +2411,7 @@ HBoxContainer *ThemeTypeEditor::_create_property_control(Theme::DataType p_data_
|
|||
item_name->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
item_name->set_clip_text(true);
|
||||
item_name->set_text(p_item_name);
|
||||
item_name->set_tooltip(p_item_name);
|
||||
item_name->set_tooltip_text(p_item_name);
|
||||
item_name_container->add_child(item_name);
|
||||
|
||||
if (p_editable) {
|
||||
|
@ -2424,21 +2424,21 @@ HBoxContainer *ThemeTypeEditor::_create_property_control(Theme::DataType p_data_
|
|||
|
||||
Button *item_rename_button = memnew(Button);
|
||||
item_rename_button->set_icon(get_theme_icon(SNAME("Edit"), SNAME("EditorIcons")));
|
||||
item_rename_button->set_tooltip(TTR("Rename Item"));
|
||||
item_rename_button->set_tooltip_text(TTR("Rename Item"));
|
||||
item_rename_button->set_flat(true);
|
||||
item_name_container->add_child(item_rename_button);
|
||||
item_rename_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_item_rename_cbk).bind(p_data_type, p_item_name, item_name_container));
|
||||
|
||||
Button *item_remove_button = memnew(Button);
|
||||
item_remove_button->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
item_remove_button->set_tooltip(TTR("Remove Item"));
|
||||
item_remove_button->set_tooltip_text(TTR("Remove Item"));
|
||||
item_remove_button->set_flat(true);
|
||||
item_name_container->add_child(item_remove_button);
|
||||
item_remove_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_item_remove_cbk).bind(p_data_type, p_item_name));
|
||||
|
||||
Button *item_rename_confirm_button = memnew(Button);
|
||||
item_rename_confirm_button->set_icon(get_theme_icon(SNAME("ImportCheck"), SNAME("EditorIcons")));
|
||||
item_rename_confirm_button->set_tooltip(TTR("Confirm Item Rename"));
|
||||
item_rename_confirm_button->set_tooltip_text(TTR("Confirm Item Rename"));
|
||||
item_rename_confirm_button->set_flat(true);
|
||||
item_name_container->add_child(item_rename_confirm_button);
|
||||
item_rename_confirm_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_item_rename_confirmed).bind(p_data_type, p_item_name, item_name_container));
|
||||
|
@ -2446,7 +2446,7 @@ HBoxContainer *ThemeTypeEditor::_create_property_control(Theme::DataType p_data_
|
|||
|
||||
Button *item_rename_cancel_button = memnew(Button);
|
||||
item_rename_cancel_button->set_icon(get_theme_icon(SNAME("ImportFail"), SNAME("EditorIcons")));
|
||||
item_rename_cancel_button->set_tooltip(TTR("Cancel Item Rename"));
|
||||
item_rename_cancel_button->set_tooltip_text(TTR("Cancel Item Rename"));
|
||||
item_rename_cancel_button->set_flat(true);
|
||||
item_name_container->add_child(item_rename_cancel_button);
|
||||
item_rename_cancel_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_item_rename_canceled).bind(p_data_type, p_item_name, item_name_container));
|
||||
|
@ -2456,7 +2456,7 @@ HBoxContainer *ThemeTypeEditor::_create_property_control(Theme::DataType p_data_
|
|||
|
||||
Button *item_override_button = memnew(Button);
|
||||
item_override_button->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
item_override_button->set_tooltip(TTR("Override Item"));
|
||||
item_override_button->set_tooltip_text(TTR("Override Item"));
|
||||
item_override_button->set_flat(true);
|
||||
item_name_container->add_child(item_override_button);
|
||||
item_override_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_item_override_cbk).bind(p_data_type, p_item_name));
|
||||
|
@ -2666,7 +2666,7 @@ void ThemeTypeEditor::_update_type_items() {
|
|||
pin_leader_button->set_toggle_mode(true);
|
||||
pin_leader_button->set_pressed(true);
|
||||
pin_leader_button->set_icon(get_theme_icon(SNAME("Pin"), SNAME("EditorIcons")));
|
||||
pin_leader_button->set_tooltip(TTR("Unpin this StyleBox as a main style."));
|
||||
pin_leader_button->set_tooltip_text(TTR("Unpin this StyleBox as a main style."));
|
||||
item_control->add_child(pin_leader_button);
|
||||
pin_leader_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_on_unpin_leader_button_pressed));
|
||||
|
||||
|
@ -2709,7 +2709,7 @@ void ThemeTypeEditor::_update_type_items() {
|
|||
pin_leader_button->set_flat(true);
|
||||
pin_leader_button->set_toggle_mode(true);
|
||||
pin_leader_button->set_icon(get_theme_icon(SNAME("Pin"), SNAME("EditorIcons")));
|
||||
pin_leader_button->set_tooltip(TTR("Pin this StyleBox as a main style. Editing its properties will update the same properties in all other StyleBoxes of this type."));
|
||||
pin_leader_button->set_tooltip_text(TTR("Pin this StyleBox as a main style. Editing its properties will update the same properties in all other StyleBoxes of this type."));
|
||||
item_control->add_child(pin_leader_button);
|
||||
pin_leader_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_on_pin_leader_button_pressed).bind(item_editor, E.key));
|
||||
} else {
|
||||
|
@ -3385,7 +3385,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
|||
theme_type_list->connect("item_selected", callable_mp(this, &ThemeTypeEditor::_list_type_selected));
|
||||
|
||||
add_type_button = memnew(Button);
|
||||
add_type_button->set_tooltip(TTR("Add a type from a list of available types or create a new one."));
|
||||
add_type_button->set_tooltip_text(TTR("Add a type from a list of available types or create a new one."));
|
||||
type_list_hb->add_child(add_type_button);
|
||||
add_type_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_add_type_button_cbk));
|
||||
|
||||
|
@ -3395,7 +3395,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
|||
show_default_items_button = memnew(CheckButton);
|
||||
show_default_items_button->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
show_default_items_button->set_text(TTR("Show Default"));
|
||||
show_default_items_button->set_tooltip(TTR("Show default type items alongside items that have been overridden."));
|
||||
show_default_items_button->set_tooltip_text(TTR("Show default type items alongside items that have been overridden."));
|
||||
show_default_items_button->set_pressed(true);
|
||||
type_controls->add_child(show_default_items_button);
|
||||
show_default_items_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_update_type_items));
|
||||
|
@ -3403,7 +3403,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
|||
Button *add_default_items_button = memnew(Button);
|
||||
add_default_items_button->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
add_default_items_button->set_text(TTR("Override All"));
|
||||
add_default_items_button->set_tooltip(TTR("Override all default type items."));
|
||||
add_default_items_button->set_tooltip_text(TTR("Override all default type items."));
|
||||
type_controls->add_child(add_default_items_button);
|
||||
add_default_items_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_add_default_type_items));
|
||||
|
||||
|
@ -3450,7 +3450,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
|||
type_variation_edit->connect("focus_exited", callable_mp(this, &ThemeTypeEditor::_update_type_items));
|
||||
type_variation_button = memnew(Button);
|
||||
type_variation_hb->add_child(type_variation_button);
|
||||
type_variation_button->set_tooltip(TTR("Select the variation base type from a list of available types."));
|
||||
type_variation_button->set_tooltip_text(TTR("Select the variation base type from a list of available types."));
|
||||
type_variation_button->connect("pressed", callable_mp(this, &ThemeTypeEditor::_add_type_variation_cbk));
|
||||
|
||||
type_variation_locked = memnew(Label);
|
||||
|
@ -3630,7 +3630,7 @@ ThemeEditor::ThemeEditor() {
|
|||
|
||||
Button *theme_edit_button = memnew(Button);
|
||||
theme_edit_button->set_text(TTR("Manage Items..."));
|
||||
theme_edit_button->set_tooltip(TTR("Add, remove, organize and import Theme items."));
|
||||
theme_edit_button->set_tooltip_text(TTR("Add, remove, organize and import Theme items."));
|
||||
theme_edit_button->set_flat(true);
|
||||
theme_edit_button->connect("pressed", callable_mp(this, &ThemeEditor::_theme_edit_button_cbk));
|
||||
top_menu->add_child(theme_edit_button);
|
||||
|
|
|
@ -227,7 +227,7 @@ ThemeEditorPreview::ThemeEditorPreview() {
|
|||
preview_toolbar->add_child(picker_button);
|
||||
picker_button->set_flat(true);
|
||||
picker_button->set_toggle_mode(true);
|
||||
picker_button->set_tooltip(TTR("Toggle the control picker, allowing to visually select control types for edit."));
|
||||
picker_button->set_tooltip_text(TTR("Toggle the control picker, allowing to visually select control types for edit."));
|
||||
picker_button->connect("pressed", callable_mp(this, &ThemeEditorPreview::_picker_button_cbk));
|
||||
|
||||
MarginContainer *preview_body = memnew(MarginContainer);
|
||||
|
@ -515,7 +515,7 @@ SceneThemeEditorPreview::SceneThemeEditorPreview() {
|
|||
|
||||
reload_scene_button = memnew(Button);
|
||||
reload_scene_button->set_flat(true);
|
||||
reload_scene_button->set_tooltip(TTR("Reload the scene to reflect its most actual state."));
|
||||
reload_scene_button->set_tooltip_text(TTR("Reload the scene to reflect its most actual state."));
|
||||
preview_toolbar->add_child(reload_scene_button);
|
||||
reload_scene_button->connect("pressed", callable_mp(this, &SceneThemeEditorPreview::_reload_scene));
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ void TileAtlasView::_center_view() {
|
|||
}
|
||||
|
||||
void TileAtlasView::_base_tiles_root_control_gui_input(const Ref<InputEvent> &p_event) {
|
||||
base_tiles_root_control->set_tooltip("");
|
||||
base_tiles_root_control->set_tooltip_text("");
|
||||
|
||||
Ref<InputEventMouseMotion> mm = p_event;
|
||||
if (mm.is_valid()) {
|
||||
|
@ -169,7 +169,7 @@ void TileAtlasView::_base_tiles_root_control_gui_input(const Ref<InputEvent> &p_
|
|||
if (coords != TileSetSource::INVALID_ATLAS_COORDS) {
|
||||
coords = tile_set_atlas_source->get_tile_at_coords(coords);
|
||||
if (coords != TileSetSource::INVALID_ATLAS_COORDS) {
|
||||
base_tiles_root_control->set_tooltip(vformat(TTR("Source: %d\nAtlas coordinates: %s\nAlternative: 0"), source_id, coords));
|
||||
base_tiles_root_control->set_tooltip_text(vformat(TTR("Source: %d\nAtlas coordinates: %s\nAlternative: 0"), source_id, coords));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ void TileAtlasView::_draw_base_tiles_shape_grid() {
|
|||
}
|
||||
|
||||
void TileAtlasView::_alternative_tiles_root_control_gui_input(const Ref<InputEvent> &p_event) {
|
||||
alternative_tiles_root_control->set_tooltip("");
|
||||
alternative_tiles_root_control->set_tooltip_text("");
|
||||
|
||||
Ref<InputEventMouseMotion> mm = p_event;
|
||||
if (mm.is_valid()) {
|
||||
|
@ -328,7 +328,7 @@ void TileAtlasView::_alternative_tiles_root_control_gui_input(const Ref<InputEve
|
|||
Vector2i coords = Vector2i(coords3.x, coords3.y);
|
||||
int alternative_id = coords3.z;
|
||||
if (coords != TileSetSource::INVALID_ATLAS_COORDS && alternative_id != TileSetSource::INVALID_TILE_ALTERNATIVE) {
|
||||
alternative_tiles_root_control->set_tooltip(vformat(TTR("Source: %d\nAtlas coordinates: %s\nAlternative: %d"), source_id, coords, alternative_id));
|
||||
alternative_tiles_root_control->set_tooltip_text(vformat(TTR("Source: %d\nAtlas coordinates: %s\nAlternative: %d"), source_id, coords, alternative_id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -542,7 +542,7 @@ TileAtlasView::TileAtlasView() {
|
|||
button_center_view->connect("pressed", callable_mp(this, &TileAtlasView::_center_view));
|
||||
button_center_view->set_flat(true);
|
||||
button_center_view->set_disabled(true);
|
||||
button_center_view->set_tooltip(TTR("Center View"));
|
||||
button_center_view->set_tooltip_text(TTR("Center View"));
|
||||
add_child(button_center_view);
|
||||
|
||||
panner.instantiate();
|
||||
|
|
|
@ -763,21 +763,21 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {
|
|||
button_create->set_toggle_mode(true);
|
||||
button_create->set_button_group(tools_button_group);
|
||||
button_create->set_pressed(true);
|
||||
button_create->set_tooltip(TTR("Add polygon tool"));
|
||||
button_create->set_tooltip_text(TTR("Add polygon tool"));
|
||||
toolbar->add_child(button_create);
|
||||
|
||||
button_edit = memnew(Button);
|
||||
button_edit->set_flat(true);
|
||||
button_edit->set_toggle_mode(true);
|
||||
button_edit->set_button_group(tools_button_group);
|
||||
button_edit->set_tooltip(TTR("Edit points tool"));
|
||||
button_edit->set_tooltip_text(TTR("Edit points tool"));
|
||||
toolbar->add_child(button_edit);
|
||||
|
||||
button_delete = memnew(Button);
|
||||
button_delete->set_flat(true);
|
||||
button_delete->set_toggle_mode(true);
|
||||
button_delete->set_button_group(tools_button_group);
|
||||
button_delete->set_tooltip(TTR("Delete points tool"));
|
||||
button_delete->set_tooltip_text(TTR("Delete points tool"));
|
||||
toolbar->add_child(button_delete);
|
||||
|
||||
button_advanced_menu = memnew(MenuButton);
|
||||
|
@ -800,7 +800,7 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {
|
|||
button_pixel_snap->set_flat(true);
|
||||
button_pixel_snap->set_toggle_mode(true);
|
||||
button_pixel_snap->set_pressed(true);
|
||||
button_pixel_snap->set_tooltip(TTR("Snap to half-pixel"));
|
||||
button_pixel_snap->set_tooltip_text(TTR("Snap to half-pixel"));
|
||||
toolbar->add_child(button_pixel_snap);
|
||||
|
||||
Control *root = memnew(Control);
|
||||
|
@ -1160,7 +1160,7 @@ void TileDataDefaultEditor::setup_property_editor(Variant::Type p_type, String p
|
|||
property_editor->set_label(p_label);
|
||||
}
|
||||
property_editor->connect("property_changed", callable_mp(this, &TileDataDefaultEditor::_property_value_changed).unbind(1));
|
||||
property_editor->set_tooltip(p_property);
|
||||
property_editor->set_tooltip_text(p_property);
|
||||
property_editor->update_property();
|
||||
add_child(property_editor);
|
||||
}
|
||||
|
@ -1369,7 +1369,7 @@ void TileDataCollisionEditor::_polygons_changed() {
|
|||
one_way_property_editor->set_label(one_way_property);
|
||||
one_way_property_editor->connect("property_changed", callable_mp(this, &TileDataCollisionEditor::_property_value_changed).unbind(1));
|
||||
one_way_property_editor->connect("selected", callable_mp(this, &TileDataCollisionEditor::_property_selected));
|
||||
one_way_property_editor->set_tooltip(one_way_property_editor->get_edited_property());
|
||||
one_way_property_editor->set_tooltip_text(one_way_property_editor->get_edited_property());
|
||||
one_way_property_editor->update_property();
|
||||
add_child(one_way_property_editor);
|
||||
property_editors[one_way_property] = one_way_property_editor;
|
||||
|
@ -1381,7 +1381,7 @@ void TileDataCollisionEditor::_polygons_changed() {
|
|||
one_way_margin_property_editor->set_label(one_way_margin_property);
|
||||
one_way_margin_property_editor->connect("property_changed", callable_mp(this, &TileDataCollisionEditor::_property_value_changed).unbind(1));
|
||||
one_way_margin_property_editor->connect("selected", callable_mp(this, &TileDataCollisionEditor::_property_selected));
|
||||
one_way_margin_property_editor->set_tooltip(one_way_margin_property_editor->get_edited_property());
|
||||
one_way_margin_property_editor->set_tooltip_text(one_way_margin_property_editor->get_edited_property());
|
||||
one_way_margin_property_editor->update_property();
|
||||
add_child(one_way_margin_property_editor);
|
||||
property_editors[one_way_margin_property] = one_way_margin_property_editor;
|
||||
|
@ -1542,7 +1542,7 @@ TileDataCollisionEditor::TileDataCollisionEditor() {
|
|||
linear_velocity_editor->set_label("linear_velocity");
|
||||
linear_velocity_editor->connect("property_changed", callable_mp(this, &TileDataCollisionEditor::_property_value_changed).unbind(1));
|
||||
linear_velocity_editor->connect("selected", callable_mp(this, &TileDataCollisionEditor::_property_selected));
|
||||
linear_velocity_editor->set_tooltip(linear_velocity_editor->get_edited_property());
|
||||
linear_velocity_editor->set_tooltip_text(linear_velocity_editor->get_edited_property());
|
||||
linear_velocity_editor->update_property();
|
||||
add_child(linear_velocity_editor);
|
||||
property_editors["linear_velocity"] = linear_velocity_editor;
|
||||
|
@ -1552,7 +1552,7 @@ TileDataCollisionEditor::TileDataCollisionEditor() {
|
|||
angular_velocity_editor->set_label("angular_velocity");
|
||||
angular_velocity_editor->connect("property_changed", callable_mp(this, &TileDataCollisionEditor::_property_value_changed).unbind(1));
|
||||
angular_velocity_editor->connect("selected", callable_mp(this, &TileDataCollisionEditor::_property_selected));
|
||||
angular_velocity_editor->set_tooltip(angular_velocity_editor->get_edited_property());
|
||||
angular_velocity_editor->set_tooltip_text(angular_velocity_editor->get_edited_property());
|
||||
angular_velocity_editor->update_property();
|
||||
add_child(angular_velocity_editor);
|
||||
property_editors["angular_velocity"] = angular_velocity_editor;
|
||||
|
@ -2599,7 +2599,7 @@ TileDataTerrainsEditor::TileDataTerrainsEditor() {
|
|||
terrain_set_property_editor->set_object_and_property(dummy_object, "terrain_set");
|
||||
terrain_set_property_editor->set_label("Terrain Set");
|
||||
terrain_set_property_editor->connect("property_changed", callable_mp(this, &TileDataTerrainsEditor::_property_value_changed).unbind(1));
|
||||
terrain_set_property_editor->set_tooltip(terrain_set_property_editor->get_edited_property());
|
||||
terrain_set_property_editor->set_tooltip_text(terrain_set_property_editor->get_edited_property());
|
||||
add_child(terrain_set_property_editor);
|
||||
|
||||
terrain_property_editor = memnew(EditorPropertyEnum);
|
||||
|
|
|
@ -2050,7 +2050,7 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
paint_tool_button->set_toggle_mode(true);
|
||||
paint_tool_button->set_button_group(tool_buttons_group);
|
||||
paint_tool_button->set_shortcut(ED_SHORTCUT("tiles_editor/paint_tool", "Paint", Key::D));
|
||||
paint_tool_button->set_tooltip(TTR("Shift: Draw line.") + "\n" + TTR("Shift+Ctrl: Draw rectangle."));
|
||||
paint_tool_button->set_tooltip_text(TTR("Shift: Draw line.") + "\n" + TTR("Shift+Ctrl: Draw rectangle."));
|
||||
paint_tool_button->connect("pressed", callable_mp(this, &TileMapEditorTilesPlugin::_update_toolbar));
|
||||
tilemap_tiles_tools_buttons->add_child(paint_tool_button);
|
||||
|
||||
|
@ -2091,7 +2091,7 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
picker_button->set_flat(true);
|
||||
picker_button->set_toggle_mode(true);
|
||||
picker_button->set_shortcut(ED_SHORTCUT("tiles_editor/picker", "Picker", Key::P));
|
||||
picker_button->set_tooltip(TTR("Alternatively hold Ctrl with other tools to pick tile."));
|
||||
picker_button->set_tooltip_text(TTR("Alternatively hold Ctrl with other tools to pick tile."));
|
||||
picker_button->connect("pressed", callable_mp(CanvasItemEditor::get_singleton(), &CanvasItemEditor::update_viewport));
|
||||
tools_settings->add_child(picker_button);
|
||||
|
||||
|
@ -2100,7 +2100,7 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
erase_button->set_flat(true);
|
||||
erase_button->set_toggle_mode(true);
|
||||
erase_button->set_shortcut(ED_SHORTCUT("tiles_editor/eraser", "Eraser", Key::E));
|
||||
erase_button->set_tooltip(TTR("Alternatively use RMB to erase tiles."));
|
||||
erase_button->set_tooltip_text(TTR("Alternatively use RMB to erase tiles."));
|
||||
erase_button->connect("pressed", callable_mp(CanvasItemEditor::get_singleton(), &CanvasItemEditor::update_viewport));
|
||||
tools_settings->add_child(erase_button);
|
||||
|
||||
|
@ -2119,13 +2119,13 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
random_tile_toggle = memnew(Button);
|
||||
random_tile_toggle->set_flat(true);
|
||||
random_tile_toggle->set_toggle_mode(true);
|
||||
random_tile_toggle->set_tooltip(TTR("Place Random Tile"));
|
||||
random_tile_toggle->set_tooltip_text(TTR("Place Random Tile"));
|
||||
random_tile_toggle->connect("toggled", callable_mp(this, &TileMapEditorTilesPlugin::_on_random_tile_checkbox_toggled));
|
||||
tools_settings->add_child(random_tile_toggle);
|
||||
|
||||
// Random tile scattering.
|
||||
scatter_label = memnew(Label);
|
||||
scatter_label->set_tooltip(TTR("Defines the probability of painting nothing instead of a randomly selected tile."));
|
||||
scatter_label->set_tooltip_text(TTR("Defines the probability of painting nothing instead of a randomly selected tile."));
|
||||
scatter_label->set_text(TTR("Scattering:"));
|
||||
tools_settings->add_child(scatter_label);
|
||||
|
||||
|
@ -2133,7 +2133,7 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
scatter_spinbox->set_min(0.0);
|
||||
scatter_spinbox->set_max(1000);
|
||||
scatter_spinbox->set_step(0.001);
|
||||
scatter_spinbox->set_tooltip(TTR("Defines the probability of painting nothing instead of a randomly selected tile."));
|
||||
scatter_spinbox->set_tooltip_text(TTR("Defines the probability of painting nothing instead of a randomly selected tile."));
|
||||
scatter_spinbox->get_line_edit()->add_theme_constant_override("minimum_character_width", 4);
|
||||
scatter_spinbox->connect("value_changed", callable_mp(this, &TileMapEditorTilesPlugin::_on_scattering_spinbox_changed));
|
||||
tools_settings->add_child(scatter_spinbox);
|
||||
|
@ -2177,7 +2177,7 @@ TileMapEditorTilesPlugin::TileMapEditorTilesPlugin() {
|
|||
|
||||
source_sort_button = memnew(MenuButton);
|
||||
source_sort_button->set_flat(true);
|
||||
source_sort_button->set_tooltip(TTR("Sort sources"));
|
||||
source_sort_button->set_tooltip_text(TTR("Sort sources"));
|
||||
|
||||
PopupMenu *p = source_sort_button->get_popup();
|
||||
p->connect("id_pressed", callable_mp(this, &TileMapEditorTilesPlugin::_set_source_sort));
|
||||
|
@ -4000,7 +4000,7 @@ TileMapEditor::TileMapEditor() {
|
|||
layers_selection_button = memnew(OptionButton);
|
||||
layers_selection_button->set_custom_minimum_size(Size2(200, 0));
|
||||
layers_selection_button->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
|
||||
layers_selection_button->set_tooltip(TTR("TileMap Layers"));
|
||||
layers_selection_button->set_tooltip_text(TTR("TileMap Layers"));
|
||||
layers_selection_button->connect("item_selected", callable_mp(this, &TileMapEditor::_layers_selection_item_selected));
|
||||
tile_map_toolbar->add_child(layers_selection_button);
|
||||
|
||||
|
@ -4009,7 +4009,7 @@ TileMapEditor::TileMapEditor() {
|
|||
toggle_highlight_selected_layer_button->set_toggle_mode(true);
|
||||
toggle_highlight_selected_layer_button->set_pressed(true);
|
||||
toggle_highlight_selected_layer_button->connect("pressed", callable_mp(this, &TileMapEditor::_update_layers_selection));
|
||||
toggle_highlight_selected_layer_button->set_tooltip(TTR("Highlight Selected TileMap Layer"));
|
||||
toggle_highlight_selected_layer_button->set_tooltip_text(TTR("Highlight Selected TileMap Layer"));
|
||||
tile_map_toolbar->add_child(toggle_highlight_selected_layer_button);
|
||||
|
||||
tile_map_toolbar->add_child(memnew(VSeparator));
|
||||
|
@ -4018,7 +4018,7 @@ TileMapEditor::TileMapEditor() {
|
|||
toggle_grid_button = memnew(Button);
|
||||
toggle_grid_button->set_flat(true);
|
||||
toggle_grid_button->set_toggle_mode(true);
|
||||
toggle_grid_button->set_tooltip(TTR("Toggle grid visibility."));
|
||||
toggle_grid_button->set_tooltip_text(TTR("Toggle grid visibility."));
|
||||
toggle_grid_button->connect("toggled", callable_mp(this, &TileMapEditor::_on_grid_toggled));
|
||||
tile_map_toolbar->add_child(toggle_grid_button);
|
||||
|
||||
|
|
|
@ -527,7 +527,7 @@ void TileSetAtlasSourceEditor::_update_tile_id_label() {
|
|||
if (selection.size() == 1) {
|
||||
TileSelection selected = selection.front()->get();
|
||||
tool_tile_id_label->set_text(vformat("%d, %s, %d", tile_set_atlas_source_id, selected.tile, selected.alternative));
|
||||
tool_tile_id_label->set_tooltip(vformat(TTR("Selected tile:\nSource: %d\nAtlas coordinates: %s\nAlternative: %d"), tile_set_atlas_source_id, selected.tile, selected.alternative));
|
||||
tool_tile_id_label->set_tooltip_text(vformat(TTR("Selected tile:\nSource: %d\nAtlas coordinates: %s\nAlternative: %d"), tile_set_atlas_source_id, selected.tile, selected.alternative));
|
||||
tool_tile_id_label->show();
|
||||
} else {
|
||||
tool_tile_id_label->hide();
|
||||
|
@ -2445,7 +2445,7 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {
|
|||
tool_setup_atlas_source_button->set_toggle_mode(true);
|
||||
tool_setup_atlas_source_button->set_pressed(true);
|
||||
tool_setup_atlas_source_button->set_button_group(tools_button_group);
|
||||
tool_setup_atlas_source_button->set_tooltip(TTR("Atlas setup. Add/Remove tiles tool (use the shift key to create big tiles, control for rectangle editing)."));
|
||||
tool_setup_atlas_source_button->set_tooltip_text(TTR("Atlas setup. Add/Remove tiles tool (use the shift key to create big tiles, control for rectangle editing)."));
|
||||
toolbox->add_child(tool_setup_atlas_source_button);
|
||||
|
||||
tool_select_button = memnew(Button);
|
||||
|
@ -2453,14 +2453,14 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {
|
|||
tool_select_button->set_toggle_mode(true);
|
||||
tool_select_button->set_pressed(false);
|
||||
tool_select_button->set_button_group(tools_button_group);
|
||||
tool_select_button->set_tooltip(TTR("Select tiles."));
|
||||
tool_select_button->set_tooltip_text(TTR("Select tiles."));
|
||||
toolbox->add_child(tool_select_button);
|
||||
|
||||
tool_paint_button = memnew(Button);
|
||||
tool_paint_button->set_flat(true);
|
||||
tool_paint_button->set_toggle_mode(true);
|
||||
tool_paint_button->set_button_group(tools_button_group);
|
||||
tool_paint_button->set_tooltip(TTR("Paint properties."));
|
||||
tool_paint_button->set_tooltip_text(TTR("Paint properties."));
|
||||
toolbox->add_child(tool_paint_button);
|
||||
|
||||
// Tool settings.
|
||||
|
|
|
@ -694,7 +694,7 @@ TileSetEditor::TileSetEditor() {
|
|||
|
||||
source_sort_button = memnew(MenuButton);
|
||||
source_sort_button->set_flat(true);
|
||||
source_sort_button->set_tooltip(TTR("Sort sources"));
|
||||
source_sort_button->set_tooltip_text(TTR("Sort sources"));
|
||||
|
||||
PopupMenu *p = source_sort_button->get_popup();
|
||||
p->connect("id_pressed", callable_mp(this, &TileSetEditor::_set_source_sort));
|
||||
|
|
|
@ -464,7 +464,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
stage_tools->add_child(staging_area_label);
|
||||
|
||||
refresh_button = memnew(Button);
|
||||
refresh_button->set_tooltip(TTR("Detect new changes"));
|
||||
refresh_button->set_tooltip_text(TTR("Detect new changes"));
|
||||
refresh_button->set_text(TTR("Refresh"));
|
||||
refresh_button->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
|
||||
refresh_button->connect("pressed", callable_mp(this, &VersionControlEditorPlugin::_refresh_stage_area));
|
||||
|
@ -551,7 +551,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
|
||||
diff_heading = memnew(Label);
|
||||
diff_heading->set_text(TTR("Status"));
|
||||
diff_heading->set_tooltip(TTR("View file diffs before committing them to the latest version"));
|
||||
diff_heading->set_tooltip_text(TTR("View file diffs before committing them to the latest version"));
|
||||
diff_hbc->add_child(diff_heading);
|
||||
|
||||
diff_file_name = memnew(Label);
|
||||
|
@ -561,7 +561,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
diff_hbc->add_child(diff_file_name);
|
||||
|
||||
diff_refresh_button = memnew(Button);
|
||||
diff_refresh_button->set_tooltip(TTR("Detect changes in file diff"));
|
||||
diff_refresh_button->set_tooltip_text(TTR("Detect changes in file diff"));
|
||||
diff_refresh_button->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
|
||||
diff_refresh_button->connect("pressed", callable_mp(this, &VersionControlEditorPlugin::_refresh_file_diff));
|
||||
diff_hbc->add_child(diff_refresh_button);
|
||||
|
|
|
@ -754,7 +754,7 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id) {
|
|||
|
||||
Button *remove_btn = memnew(Button);
|
||||
remove_btn->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
remove_btn->set_tooltip(TTR("Remove") + " " + name_left);
|
||||
remove_btn->set_tooltip_text(TTR("Remove") + " " + name_left);
|
||||
remove_btn->connect("pressed", callable_mp(editor, &VisualShaderEditor::_remove_input_port).bind(p_id, i), CONNECT_DEFERRED);
|
||||
hb->add_child(remove_btn);
|
||||
} else {
|
||||
|
@ -781,7 +781,7 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id) {
|
|||
if (is_group) {
|
||||
Button *remove_btn = memnew(Button);
|
||||
remove_btn->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
remove_btn->set_tooltip(TTR("Remove") + " " + name_left);
|
||||
remove_btn->set_tooltip_text(TTR("Remove") + " " + name_left);
|
||||
remove_btn->connect("pressed", callable_mp(editor, &VisualShaderEditor::_remove_output_port).bind(p_id, i), CONNECT_DEFERRED);
|
||||
hb->add_child(remove_btn);
|
||||
|
||||
|
@ -4827,7 +4827,7 @@ VisualShaderEditor::VisualShaderEditor() {
|
|||
preview_shader = memnew(Button);
|
||||
preview_shader->set_flat(true);
|
||||
preview_shader->set_toggle_mode(true);
|
||||
preview_shader->set_tooltip(TTR("Show generated shader code."));
|
||||
preview_shader->set_tooltip_text(TTR("Show generated shader code."));
|
||||
graph->get_zoom_hbox()->add_child(preview_shader);
|
||||
preview_shader->connect("pressed", callable_mp(this, &VisualShaderEditor::_show_preview_text));
|
||||
|
||||
|
@ -4897,7 +4897,7 @@ VisualShaderEditor::VisualShaderEditor() {
|
|||
|
||||
tools = memnew(MenuButton);
|
||||
filter_hb->add_child(tools);
|
||||
tools->set_tooltip(TTR("Options"));
|
||||
tools->set_tooltip_text(TTR("Options"));
|
||||
tools->get_popup()->connect("id_pressed", callable_mp(this, &VisualShaderEditor::_tools_menu_option));
|
||||
tools->get_popup()->add_item(TTR("Expand All"), EXPAND_ALL);
|
||||
tools->get_popup()->add_item(TTR("Collapse All"), COLLAPSE_ALL);
|
||||
|
@ -4929,7 +4929,7 @@ VisualShaderEditor::VisualShaderEditor() {
|
|||
highend_label->set_visible(false);
|
||||
highend_label->set_text("Vulkan");
|
||||
highend_label->set_mouse_filter(Control::MOUSE_FILTER_STOP);
|
||||
highend_label->set_tooltip(TTR("High-end node"));
|
||||
highend_label->set_tooltip_text(TTR("High-end node"));
|
||||
|
||||
node_desc = memnew(RichTextLabel);
|
||||
members_vb->add_child(node_desc);
|
||||
|
|
|
@ -100,7 +100,7 @@ void VoxelGIEditorPlugin::_notification(int p_what) {
|
|||
return;
|
||||
}
|
||||
|
||||
bake->set_tooltip(text);
|
||||
bake->set_tooltip_text(text);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -206,6 +206,7 @@ static const char *gdscript_function_renames[][2] = {
|
|||
// { "set_offset", "set_progress" }, // PathFollow2D, PathFollow3D - Too common
|
||||
// { "set_process_mode", "set_process_callback" }, // AnimationTree broke Node, Tween, Sky
|
||||
// { "set_refuse_new_network_connections", "set_refuse_new_connections"}, // MultiplayerAPI broke SceneTree
|
||||
// { "set_tooltip", "set_tooltip_text" }, // Control, breaks TreeItem, at least for now.
|
||||
// { "set_uv", "surface_set_uv" }, // ImmediateMesh broke Polygon2D
|
||||
// { "set_v_offset", "set_drag_vertical_offset" }, // Camera2D broke Camera3D, PathFollow3D, PathFollow2D
|
||||
// {"get_points","get_points_id"},// Astar, broke Line2D, Convexpolygonshape
|
||||
|
@ -629,6 +630,7 @@ static const char *csharp_function_renames[][2] = {
|
|||
// { "SetOffset", "SetProgress" }, // PathFollow2D, PathFollow3D - Too common
|
||||
// { "SetProcessMode", "SetProcessCallback" }, // AnimationTree broke Node, Tween, Sky
|
||||
// { "SetRefuseNewNetworkConnections", "SetRefuseNewConnections"}, // MultiplayerAPI broke SceneTree
|
||||
// { "SetTooltip", "SetTooltipText" }, // Control, breaks TreeItem, at least for now.
|
||||
// { "SetUv", "SurfaceSetUv" }, // ImmediateMesh broke Polygon2D
|
||||
// { "SetVOffset", "SetDragVerticalOffset" }, // Camera2D broke Camera3D, PathFollow3D, PathFollow2D
|
||||
// {"GetPoints","GetPointsId"},// Astar, broke Line2D, Convexpolygonshape
|
||||
|
@ -1039,6 +1041,7 @@ static const char *gdscript_properties_renames[][2] = {
|
|||
{ "global_rate_scale", "playback_speed_scale" }, // AudioServer
|
||||
{ "gravity_distance_scale", "gravity_point_distance_scale" }, // Area2D
|
||||
{ "gravity_vec", "gravity_direction" }, // Area2D
|
||||
{ "hint_tooltip", "tooltip_text" }, // Control
|
||||
{ "hseparation", "h_separation" }, // Theme
|
||||
{ "iterations_per_second", "physics_ticks_per_second" }, // Engine
|
||||
{ "invert_enable", "invert_enabled" }, // Polygon2D
|
||||
|
@ -1123,6 +1126,7 @@ static const char *csharp_properties_renames[][2] = {
|
|||
{ "GlobalRateScale", "PlaybackSpeedScale" }, // AudioServer
|
||||
{ "GravityDistanceScale", "GravityPointDistanceScale" }, // Area2D
|
||||
{ "GravityVec", "GravityDirection" }, // Area2D
|
||||
{ "HintTooltip", "TooltipText" }, // Control
|
||||
{ "Hseparation", "HSeparation" }, // Theme
|
||||
{ "IterationsPerSecond", "PhysicsTicksPerSecond" }, // Engine
|
||||
{ "InvertEnable", "InvertEnabled" }, // Polygon2D
|
||||
|
|
|
@ -1362,7 +1362,7 @@ void ProjectList::create_project_item_control(int p_index) {
|
|||
hb->connect("draw", callable_mp(this, &ProjectList::_panel_draw).bind(hb));
|
||||
hb->connect("gui_input", callable_mp(this, &ProjectList::_panel_input).bind(hb));
|
||||
hb->add_theme_constant_override("separation", 10 * EDSCALE);
|
||||
hb->set_tooltip(item.description);
|
||||
hb->set_tooltip_text(item.description);
|
||||
|
||||
VBoxContainer *favorite_box = memnew(VBoxContainer);
|
||||
favorite_box->set_name("FavoriteBox");
|
||||
|
@ -1445,9 +1445,9 @@ void ProjectList::create_project_item_control(int p_index) {
|
|||
|
||||
if (!item.missing) {
|
||||
show->connect("pressed", callable_mp(this, &ProjectList::_show_project).bind(item.path));
|
||||
show->set_tooltip(TTR("Show in File Manager"));
|
||||
show->set_tooltip_text(TTR("Show in File Manager"));
|
||||
} else {
|
||||
show->set_tooltip(TTR("Error: Project is missing on the filesystem."));
|
||||
show->set_tooltip_text(TTR("Error: Project is missing on the filesystem."));
|
||||
}
|
||||
|
||||
Label *fpath = memnew(Label(item.path));
|
||||
|
@ -2570,7 +2570,7 @@ ProjectManager::ProjectManager() {
|
|||
|
||||
search_box = memnew(LineEdit);
|
||||
search_box->set_placeholder(TTR("Filter Projects"));
|
||||
search_box->set_tooltip(TTR("This field filters projects by name and last path component.\nTo filter projects by name and full path, the query must contain at least one `/` character."));
|
||||
search_box->set_tooltip_text(TTR("This field filters projects by name and last path component.\nTo filter projects by name and full path, the query must contain at least one `/` character."));
|
||||
search_box->connect("text_changed", callable_mp(this, &ProjectManager::_on_search_term_changed));
|
||||
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
hb->add_child(search_box);
|
||||
|
@ -2710,7 +2710,7 @@ ProjectManager::ProjectManager() {
|
|||
// Fade the version label to be less prominent, but still readable.
|
||||
version_btn->set_self_modulate(Color(1, 1, 1, 0.6));
|
||||
version_btn->set_underline_mode(LinkButton::UNDERLINE_MODE_ON_HOVER);
|
||||
version_btn->set_tooltip(TTR("Click to copy."));
|
||||
version_btn->set_tooltip_text(TTR("Click to copy."));
|
||||
version_btn->connect("pressed", callable_mp(this, &ProjectManager::_version_button_pressed));
|
||||
spacer_vb->add_child(version_btn);
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_name = memnew(Button);
|
||||
but_insert_name->set_text("NAME");
|
||||
but_insert_name->set_tooltip(String("${NAME}\n") + TTR("Node name."));
|
||||
but_insert_name->set_tooltip_text(String("${NAME}\n") + TTR("Node name."));
|
||||
but_insert_name->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_name->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${NAME}"));
|
||||
but_insert_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -149,7 +149,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_parent = memnew(Button);
|
||||
but_insert_parent->set_text("PARENT");
|
||||
but_insert_parent->set_tooltip(String("${PARENT}\n") + TTR("Node's parent name, if available."));
|
||||
but_insert_parent->set_tooltip_text(String("${PARENT}\n") + TTR("Node's parent name, if available."));
|
||||
but_insert_parent->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_parent->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${PARENT}"));
|
||||
but_insert_parent->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -159,7 +159,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_type = memnew(Button);
|
||||
but_insert_type->set_text("TYPE");
|
||||
but_insert_type->set_tooltip(String("${TYPE}\n") + TTR("Node type."));
|
||||
but_insert_type->set_tooltip_text(String("${TYPE}\n") + TTR("Node type."));
|
||||
but_insert_type->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_type->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${TYPE}"));
|
||||
but_insert_type->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -169,7 +169,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_scene = memnew(Button);
|
||||
but_insert_scene->set_text("SCENE");
|
||||
but_insert_scene->set_tooltip(String("${SCENE}\n") + TTR("Current scene name."));
|
||||
but_insert_scene->set_tooltip_text(String("${SCENE}\n") + TTR("Current scene name."));
|
||||
but_insert_scene->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_scene->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${SCENE}"));
|
||||
but_insert_scene->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -179,7 +179,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_root = memnew(Button);
|
||||
but_insert_root->set_text("ROOT");
|
||||
but_insert_root->set_tooltip(String("${ROOT}\n") + TTR("Root node name."));
|
||||
but_insert_root->set_tooltip_text(String("${ROOT}\n") + TTR("Root node name."));
|
||||
but_insert_root->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_root->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${ROOT}"));
|
||||
but_insert_root->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -189,7 +189,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
but_insert_count = memnew(Button);
|
||||
but_insert_count->set_text("COUNTER");
|
||||
but_insert_count->set_tooltip(String("${COUNTER}\n") + TTR("Sequential integer counter.\nCompare counter options."));
|
||||
but_insert_count->set_tooltip_text(String("${COUNTER}\n") + TTR("Sequential integer counter.\nCompare counter options."));
|
||||
but_insert_count->set_focus_mode(Control::FOCUS_NONE);
|
||||
but_insert_count->connect("pressed", callable_mp(this, &RenameDialog::_insert_text).bind("${COUNTER}"));
|
||||
but_insert_count->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
@ -197,7 +197,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
chk_per_level_counter = memnew(CheckBox);
|
||||
chk_per_level_counter->set_text(TTR("Per-level Counter"));
|
||||
chk_per_level_counter->set_tooltip(TTR("If set, the counter restarts for each group of child nodes."));
|
||||
chk_per_level_counter->set_tooltip_text(TTR("If set, the counter restarts for each group of child nodes."));
|
||||
vbc_substitute->add_child(chk_per_level_counter);
|
||||
|
||||
HBoxContainer *hbc_count_options = memnew(HBoxContainer);
|
||||
|
@ -205,32 +205,32 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, Ref<EditorUndoR
|
|||
|
||||
Label *lbl_count_start = memnew(Label);
|
||||
lbl_count_start->set_text(TTR("Start"));
|
||||
lbl_count_start->set_tooltip(TTR("Initial value for the counter."));
|
||||
lbl_count_start->set_tooltip_text(TTR("Initial value for the counter."));
|
||||
hbc_count_options->add_child(lbl_count_start);
|
||||
|
||||
spn_count_start = memnew(SpinBox);
|
||||
spn_count_start->set_tooltip(TTR("Initial value for the counter."));
|
||||
spn_count_start->set_tooltip_text(TTR("Initial value for the counter."));
|
||||
spn_count_start->set_step(1);
|
||||
spn_count_start->set_min(0);
|
||||
hbc_count_options->add_child(spn_count_start);
|
||||
|
||||
Label *lbl_count_step = memnew(Label);
|
||||
lbl_count_step->set_text(TTR("Step"));
|
||||
lbl_count_step->set_tooltip(TTR("Amount by which counter is incremented for each node."));
|
||||
lbl_count_step->set_tooltip_text(TTR("Amount by which counter is incremented for each node."));
|
||||
hbc_count_options->add_child(lbl_count_step);
|
||||
|
||||
spn_count_step = memnew(SpinBox);
|
||||
spn_count_step->set_tooltip(TTR("Amount by which counter is incremented for each node."));
|
||||
spn_count_step->set_tooltip_text(TTR("Amount by which counter is incremented for each node."));
|
||||
spn_count_step->set_step(1);
|
||||
hbc_count_options->add_child(spn_count_step);
|
||||
|
||||
Label *lbl_count_padding = memnew(Label);
|
||||
lbl_count_padding->set_text(TTR("Padding"));
|
||||
lbl_count_padding->set_tooltip(TTR("Minimum number of digits for the counter.\nMissing digits are padded with leading zeros."));
|
||||
lbl_count_padding->set_tooltip_text(TTR("Minimum number of digits for the counter.\nMissing digits are padded with leading zeros."));
|
||||
hbc_count_options->add_child(lbl_count_padding);
|
||||
|
||||
spn_count_padding = memnew(SpinBox);
|
||||
spn_count_padding->set_tooltip(TTR("Minimum number of digits for the counter.\nMissing digits are padded with leading zeros."));
|
||||
spn_count_padding->set_tooltip_text(TTR("Minimum number of digits for the counter.\nMissing digits are padded with leading zeros."));
|
||||
spn_count_padding->set_step(1);
|
||||
hbc_count_options->add_child(spn_count_padding);
|
||||
|
||||
|
|
|
@ -1230,7 +1230,7 @@ void SceneTreeDock::_notification(int p_what) {
|
|||
node_shortcuts_toggle->set_name("NodeShortcutsToggle");
|
||||
node_shortcuts_toggle->set_icon(get_theme_icon(SNAME("Favorites"), SNAME("EditorIcons")));
|
||||
node_shortcuts_toggle->set_toggle_mode(true);
|
||||
node_shortcuts_toggle->set_tooltip(TTR("Switch to Favorite Nodes"));
|
||||
node_shortcuts_toggle->set_tooltip_text(TTR("Switch to Favorite Nodes"));
|
||||
node_shortcuts_toggle->set_pressed(EDITOR_GET("_use_favorites_root_selection"));
|
||||
node_shortcuts_toggle->set_anchors_and_offsets_preset(Control::PRESET_CENTER_RIGHT);
|
||||
node_shortcuts_toggle->connect("pressed", callable_mp(this, &SceneTreeDock::_update_create_root_dialog));
|
||||
|
@ -3397,14 +3397,14 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_add = memnew(Button);
|
||||
button_add->set_flat(true);
|
||||
button_add->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_NEW, false));
|
||||
button_add->set_tooltip(TTR("Add/Create a New Node."));
|
||||
button_add->set_tooltip_text(TTR("Add/Create a New Node."));
|
||||
button_add->set_shortcut(ED_GET_SHORTCUT("scene_tree/add_child_node"));
|
||||
filter_hbc->add_child(button_add);
|
||||
|
||||
button_instance = memnew(Button);
|
||||
button_instance->set_flat(true);
|
||||
button_instance->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_INSTANTIATE, false));
|
||||
button_instance->set_tooltip(TTR("Instantiate a scene file as a Node. Creates an inherited scene if no root node exists."));
|
||||
button_instance->set_tooltip_text(TTR("Instantiate a scene file as a Node. Creates an inherited scene if no root node exists."));
|
||||
button_instance->set_shortcut(ED_GET_SHORTCUT("scene_tree/instance_scene"));
|
||||
filter_hbc->add_child(button_instance);
|
||||
|
||||
|
@ -3419,7 +3419,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_create_script = memnew(Button);
|
||||
button_create_script->set_flat(true);
|
||||
button_create_script->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_ATTACH_SCRIPT, false));
|
||||
button_create_script->set_tooltip(TTR("Attach a new or existing script to the selected node."));
|
||||
button_create_script->set_tooltip_text(TTR("Attach a new or existing script to the selected node."));
|
||||
button_create_script->set_shortcut(ED_GET_SHORTCUT("scene_tree/attach_script"));
|
||||
filter_hbc->add_child(button_create_script);
|
||||
button_create_script->hide();
|
||||
|
@ -3427,7 +3427,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_detach_script = memnew(Button);
|
||||
button_detach_script->set_flat(true);
|
||||
button_detach_script->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_DETACH_SCRIPT, false));
|
||||
button_detach_script->set_tooltip(TTR("Detach the script from the selected node."));
|
||||
button_detach_script->set_tooltip_text(TTR("Detach the script from the selected node."));
|
||||
button_detach_script->set_shortcut(ED_GET_SHORTCUT("scene_tree/detach_script"));
|
||||
filter_hbc->add_child(button_detach_script);
|
||||
button_detach_script->hide();
|
||||
|
@ -3450,7 +3450,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
edit_remote->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
edit_remote->set_text(TTR("Remote"));
|
||||
edit_remote->set_toggle_mode(true);
|
||||
edit_remote->set_tooltip(TTR("If selected, the Remote scene tree dock will cause the project to stutter every time it updates.\nSwitch back to the Local scene tree dock to improve performance."));
|
||||
edit_remote->set_tooltip_text(TTR("If selected, the Remote scene tree dock will cause the project to stutter every time it updates.\nSwitch back to the Local scene tree dock to improve performance."));
|
||||
edit_remote->connect("pressed", callable_mp(this, &SceneTreeDock::_remote_tree_selected));
|
||||
|
||||
edit_local = memnew(Button);
|
||||
|
|
|
@ -41,7 +41,7 @@ Error GDScriptEditorTranslationParserPlugin::parse_file(const String &p_path, Ve
|
|||
// Extract all translatable strings using the parsed tree from GDSriptParser.
|
||||
// The strategy is to find all ExpressionNode and AssignmentNode from the tree and extract strings if relevant, i.e
|
||||
// Search strings in ExpressionNode -> CallNode -> tr(), set_text(), set_placeholder() etc.
|
||||
// Search strings in AssignmentNode -> text = "__", hint_tooltip = "__" etc.
|
||||
// Search strings in AssignmentNode -> text = "__", tooltip_text = "__" etc.
|
||||
|
||||
Error err;
|
||||
Ref<Resource> loaded_res = ResourceLoader::load(p_path, "", ResourceFormatLoader::CACHE_MODE_REUSE, &err);
|
||||
|
@ -221,7 +221,7 @@ void GDScriptEditorTranslationParserPlugin::_assess_assignment(GDScriptParser::A
|
|||
}
|
||||
|
||||
if (assignment_patterns.has(assignee_name) && p_assignment->assigned_value->type == GDScriptParser::Node::LITERAL) {
|
||||
// If the assignment is towards one of the extract patterns (text, hint_tooltip etc.), and the value is a string literal, we collect the string.
|
||||
// If the assignment is towards one of the extract patterns (text, tooltip_text etc.), and the value is a string literal, we collect the string.
|
||||
ids->push_back(static_cast<GDScriptParser::LiteralNode *>(p_assignment->assigned_value)->value);
|
||||
} else if (assignee_name == fd_filters && p_assignment->assigned_value->type == GDScriptParser::Node::CALL) {
|
||||
// FileDialog.filters accepts assignment in the form of PackedStringArray. For example,
|
||||
|
@ -330,10 +330,10 @@ void GDScriptEditorTranslationParserPlugin::_extract_fd_literals(GDScriptParser:
|
|||
GDScriptEditorTranslationParserPlugin::GDScriptEditorTranslationParserPlugin() {
|
||||
assignment_patterns.insert("text");
|
||||
assignment_patterns.insert("placeholder_text");
|
||||
assignment_patterns.insert("hint_tooltip");
|
||||
assignment_patterns.insert("tooltip_text");
|
||||
|
||||
first_arg_patterns.insert("set_text");
|
||||
first_arg_patterns.insert("set_tooltip");
|
||||
first_arg_patterns.insert("set_tooltip_text");
|
||||
first_arg_patterns.insert("set_placeholder");
|
||||
first_arg_patterns.insert("add_tab");
|
||||
first_arg_patterns.insert("add_check_item");
|
||||
|
|
|
@ -451,7 +451,7 @@ bool EditorFileSystemImportFormatSupportQueryBlend::query() {
|
|||
|
||||
configure_blender_dialog->set_ok_button_text(TTR("Confirm Path"));
|
||||
configure_blender_dialog->set_cancel_button_text(TTR("Disable '.blend' Import"));
|
||||
configure_blender_dialog->get_cancel_button()->set_tooltip(TTR("Disables Blender '.blend' files import for this project. Can be re-enabled in Project Settings."));
|
||||
configure_blender_dialog->get_cancel_button()->set_tooltip_text(TTR("Disables Blender '.blend' files import for this project. Can be re-enabled in Project Settings."));
|
||||
configure_blender_dialog->connect("confirmed", callable_mp(this, &EditorFileSystemImportFormatSupportQueryBlend::_path_confirmed));
|
||||
|
||||
browse_dialog = memnew(EditorFileDialog);
|
||||
|
|
|
@ -139,7 +139,7 @@ namespace GodotTools.Build
|
|||
|
||||
_errorsBtn = new Button
|
||||
{
|
||||
HintTooltip = "Show Errors".TTR(),
|
||||
TooltipText = "Show Errors".TTR(),
|
||||
Icon = GetThemeIcon("StatusError", "EditorIcons"),
|
||||
ExpandIcon = false,
|
||||
ToggleMode = true,
|
||||
|
@ -151,7 +151,7 @@ namespace GodotTools.Build
|
|||
|
||||
_warningsBtn = new Button
|
||||
{
|
||||
HintTooltip = "Show Warnings".TTR(),
|
||||
TooltipText = "Show Warnings".TTR(),
|
||||
Icon = GetThemeIcon("NodeWarning", "EditorIcons"),
|
||||
ExpandIcon = false,
|
||||
ToggleMode = true,
|
||||
|
|
|
@ -433,7 +433,7 @@ namespace GodotTools
|
|||
_toolBarBuildButton = new Button
|
||||
{
|
||||
Text = "Build",
|
||||
HintTooltip = "Build Solution".TTR(),
|
||||
TooltipText = "Build Solution".TTR(),
|
||||
FocusMode = Control.FocusModeEnum.None,
|
||||
Shortcut = buildSolutionShortcut,
|
||||
ShortcutInTooltip = true
|
||||
|
|
|
@ -110,7 +110,7 @@ NavigationMeshEditor::NavigationMeshEditor() {
|
|||
button_reset->set_flat(true);
|
||||
bake_hbox->add_child(button_reset);
|
||||
// No button text, we only use a revert icon which is set when entering the tree.
|
||||
button_reset->set_tooltip(TTR("Clear the navigation mesh."));
|
||||
button_reset->set_tooltip_text(TTR("Clear the navigation mesh."));
|
||||
button_reset->connect("pressed", callable_mp(this, &NavigationMeshEditor::_clear_pressed));
|
||||
|
||||
bake_info = memnew(Label);
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
|
||||
_3d_space_switch = memnew(Button);
|
||||
_3d_space_switch->set_text(TTR("3D"));
|
||||
_3d_space_switch->set_tooltip(TTR("Toggles whether the noise preview is computed in 3D space."));
|
||||
_3d_space_switch->set_tooltip_text(TTR("Toggles whether the noise preview is computed in 3D space."));
|
||||
_3d_space_switch->set_toggle_mode(true);
|
||||
_3d_space_switch->set_offset(SIDE_LEFT, PADDING_3D_SPACE_SWITCH);
|
||||
_3d_space_switch->set_offset(SIDE_TOP, PADDING_3D_SPACE_SWITCH);
|
||||
|
|
|
@ -99,7 +99,7 @@ OpenXRActionEditor::OpenXRActionEditor(Ref<OpenXRAction> p_action) {
|
|||
// maybe add dropdown to edit our toplevel paths, or do we deduce them from our suggested bindings?
|
||||
|
||||
rem_action = memnew(Button);
|
||||
rem_action->set_tooltip(TTR("Remove action"));
|
||||
rem_action->set_tooltip_text(TTR("Remove action"));
|
||||
rem_action->connect("pressed", callable_mp(this, &OpenXRActionEditor::_on_remove_action));
|
||||
rem_action->set_flat(true);
|
||||
add_child(rem_action);
|
||||
|
|
|
@ -315,13 +315,13 @@ OpenXRActionMapEditor::OpenXRActionMapEditor() {
|
|||
|
||||
add_action_set = memnew(Button);
|
||||
add_action_set->set_text(TTR("Add Action Set"));
|
||||
add_action_set->set_tooltip(TTR("Add an action set."));
|
||||
add_action_set->set_tooltip_text(TTR("Add an action set."));
|
||||
add_action_set->connect("pressed", callable_mp(this, &OpenXRActionMapEditor::_on_add_action_set));
|
||||
top_hb->add_child(add_action_set);
|
||||
|
||||
add_interaction_profile = memnew(Button);
|
||||
add_interaction_profile->set_text(TTR("Add profile"));
|
||||
add_interaction_profile->set_tooltip(TTR("Add an interaction profile."));
|
||||
add_interaction_profile->set_tooltip_text(TTR("Add an interaction profile."));
|
||||
add_interaction_profile->connect("pressed", callable_mp(this, &OpenXRActionMapEditor::_on_add_interaction_profile));
|
||||
top_hb->add_child(add_interaction_profile);
|
||||
|
||||
|
@ -330,13 +330,13 @@ OpenXRActionMapEditor::OpenXRActionMapEditor() {
|
|||
|
||||
save_as = memnew(Button);
|
||||
save_as->set_text(TTR("Save"));
|
||||
save_as->set_tooltip(TTR("Save this OpenXR action map."));
|
||||
save_as->set_tooltip_text(TTR("Save this OpenXR action map."));
|
||||
save_as->connect("pressed", callable_mp(this, &OpenXRActionMapEditor::_on_save_action_map));
|
||||
top_hb->add_child(save_as);
|
||||
|
||||
_default = memnew(Button);
|
||||
_default->set_text(TTR("Reset to Default"));
|
||||
_default->set_tooltip(TTR("Reset to default OpenXR action map."));
|
||||
_default->set_tooltip_text(TTR("Reset to default OpenXR action map."));
|
||||
_default->connect("pressed", callable_mp(this, &OpenXRActionMapEditor::_on_reset_to_default_layout));
|
||||
top_hb->add_child(_default);
|
||||
|
||||
|
|
|
@ -194,13 +194,13 @@ OpenXRActionSetEditor::OpenXRActionSetEditor(Ref<OpenXRActionMap> p_action_map,
|
|||
action_set_hb->add_child(action_set_priority);
|
||||
|
||||
add_action = memnew(Button);
|
||||
add_action->set_tooltip("Add Action.");
|
||||
add_action->set_tooltip_text("Add Action.");
|
||||
add_action->connect("pressed", callable_mp(this, &OpenXRActionSetEditor::_on_add_action));
|
||||
add_action->set_flat(true);
|
||||
action_set_hb->add_child(add_action);
|
||||
|
||||
rem_action_set = memnew(Button);
|
||||
rem_action_set->set_tooltip("Remove Action Set.");
|
||||
rem_action_set->set_tooltip_text("Remove Action Set.");
|
||||
rem_action_set->connect("pressed", callable_mp(this, &OpenXRActionSetEditor::_on_remove_action_set));
|
||||
rem_action_set->set_flat(true);
|
||||
action_set_hb->add_child(rem_action_set);
|
||||
|
|
|
@ -536,7 +536,7 @@ void ColorPicker::_add_preset_button(int p_size, const Color &p_color) {
|
|||
btn_preset->set_preset_color(p_color);
|
||||
btn_preset->set_custom_minimum_size(Size2(p_size, p_size));
|
||||
btn_preset->connect("gui_input", callable_mp(this, &ColorPicker::_preset_input).bind(p_color));
|
||||
btn_preset->set_tooltip(vformat(RTR("Color: #%s\nLMB: Apply color\nRMB: Remove preset"), p_color.to_html(p_color.a < 1)));
|
||||
btn_preset->set_tooltip_text(vformat(RTR("Color: #%s\nLMB: Apply color\nRMB: Remove preset"), p_color.to_html(p_color.a < 1)));
|
||||
preset_container->add_child(btn_preset);
|
||||
}
|
||||
|
||||
|
@ -1236,7 +1236,7 @@ ColorPicker::ColorPicker() :
|
|||
btn_pick->set_flat(true);
|
||||
hb_smpl->add_child(btn_pick);
|
||||
btn_pick->set_toggle_mode(true);
|
||||
btn_pick->set_tooltip(RTR("Pick a color from the editor window."));
|
||||
btn_pick->set_tooltip_text(RTR("Pick a color from the editor window."));
|
||||
btn_pick->connect("pressed", callable_mp(this, &ColorPicker::_screen_pick_pressed));
|
||||
|
||||
VBoxContainer *vbl = memnew(VBoxContainer);
|
||||
|
@ -1276,7 +1276,7 @@ ColorPicker::ColorPicker() :
|
|||
text_type = memnew(Button);
|
||||
hhb->add_child(text_type);
|
||||
text_type->set_text("#");
|
||||
text_type->set_tooltip(RTR("Switch between hexadecimal and code values."));
|
||||
text_type->set_tooltip_text(RTR("Switch between hexadecimal and code values."));
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
text_type->connect("pressed", callable_mp(this, &ColorPicker::_text_type_toggled));
|
||||
} else {
|
||||
|
@ -1337,7 +1337,7 @@ ColorPicker::ColorPicker() :
|
|||
|
||||
btn_add_preset = memnew(Button);
|
||||
btn_add_preset->set_icon_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
btn_add_preset->set_tooltip(RTR("Add current color as a preset."));
|
||||
btn_add_preset->set_tooltip_text(RTR("Add current color as a preset."));
|
||||
btn_add_preset->connect("pressed", callable_mp(this, &ColorPicker::_add_preset_pressed));
|
||||
preset_container->add_child(btn_add_preset);
|
||||
}
|
||||
|
|
|
@ -3062,12 +3062,12 @@ bool Control::is_auto_translating() const {
|
|||
|
||||
// Extra properties.
|
||||
|
||||
void Control::set_tooltip(const String &p_tooltip) {
|
||||
data.tooltip = p_tooltip;
|
||||
void Control::set_tooltip_text(const String &p_hint) {
|
||||
data.tooltip = p_hint;
|
||||
update_configuration_warnings();
|
||||
}
|
||||
|
||||
String Control::_get_tooltip() const {
|
||||
String Control::get_tooltip_text() const {
|
||||
return data.tooltip;
|
||||
}
|
||||
|
||||
|
@ -3383,9 +3383,9 @@ void Control::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_v_grow_direction", "direction"), &Control::set_v_grow_direction);
|
||||
ClassDB::bind_method(D_METHOD("get_v_grow_direction"), &Control::get_v_grow_direction);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_tooltip", "tooltip"), &Control::set_tooltip);
|
||||
ClassDB::bind_method(D_METHOD("set_tooltip_text", "hint"), &Control::set_tooltip_text);
|
||||
ClassDB::bind_method(D_METHOD("get_tooltip_text"), &Control::get_tooltip_text);
|
||||
ClassDB::bind_method(D_METHOD("get_tooltip", "at_position"), &Control::get_tooltip, DEFVAL(Point2()));
|
||||
ClassDB::bind_method(D_METHOD("_get_tooltip"), &Control::_get_tooltip);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_default_cursor_shape", "shape"), &Control::set_default_cursor_shape);
|
||||
ClassDB::bind_method(D_METHOD("get_default_cursor_shape"), &Control::get_default_cursor_shape);
|
||||
|
@ -3475,8 +3475,8 @@ void Control::_bind_methods() {
|
|||
ADD_GROUP("Auto Translate", "");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "auto_translate"), "set_auto_translate", "is_auto_translating");
|
||||
|
||||
ADD_GROUP("Hint", "hint_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::STRING, "hint_tooltip", PROPERTY_HINT_MULTILINE_TEXT), "set_tooltip", "_get_tooltip");
|
||||
ADD_GROUP("Tooltip", "tooltip_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::STRING, "tooltip_text", PROPERTY_HINT_MULTILINE_TEXT), "set_tooltip_text", "get_tooltip_text");
|
||||
|
||||
ADD_GROUP("Focus", "focus_");
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::NODE_PATH, "focus_neighbor_left", PROPERTY_HINT_NODE_PATH_VALID_TYPES, "Control"), "set_focus_neighbor", "get_focus_neighbor", SIDE_LEFT);
|
||||
|
|
|
@ -312,7 +312,7 @@ private:
|
|||
|
||||
// Extra properties.
|
||||
|
||||
String _get_tooltip() const;
|
||||
String get_tooltip_text() const;
|
||||
|
||||
protected:
|
||||
// Dynamic properties.
|
||||
|
@ -605,7 +605,7 @@ public:
|
|||
|
||||
// Extra properties.
|
||||
|
||||
void set_tooltip(const String &p_tooltip);
|
||||
void set_tooltip_text(const String &text);
|
||||
virtual String get_tooltip(const Point2 &p_pos) const;
|
||||
virtual Control *make_custom_tooltip(const String &p_text) const;
|
||||
|
||||
|
|
|
@ -1011,13 +1011,13 @@ FileDialog::FileDialog() {
|
|||
|
||||
dir_prev = memnew(Button);
|
||||
dir_prev->set_flat(true);
|
||||
dir_prev->set_tooltip(RTR("Go to previous folder."));
|
||||
dir_prev->set_tooltip_text(RTR("Go to previous folder."));
|
||||
dir_next = memnew(Button);
|
||||
dir_next->set_flat(true);
|
||||
dir_next->set_tooltip(RTR("Go to next folder."));
|
||||
dir_next->set_tooltip_text(RTR("Go to next folder."));
|
||||
dir_up = memnew(Button);
|
||||
dir_up->set_flat(true);
|
||||
dir_up->set_tooltip(RTR("Go to parent folder."));
|
||||
dir_up->set_tooltip_text(RTR("Go to parent folder."));
|
||||
hbc->add_child(dir_prev);
|
||||
hbc->add_child(dir_next);
|
||||
hbc->add_child(dir_up);
|
||||
|
@ -1041,7 +1041,7 @@ FileDialog::FileDialog() {
|
|||
|
||||
refresh = memnew(Button);
|
||||
refresh->set_flat(true);
|
||||
refresh->set_tooltip(RTR("Refresh files."));
|
||||
refresh->set_tooltip_text(RTR("Refresh files."));
|
||||
refresh->connect("pressed", callable_mp(this, &FileDialog::update_file_list));
|
||||
hbc->add_child(refresh);
|
||||
|
||||
|
@ -1049,7 +1049,7 @@ FileDialog::FileDialog() {
|
|||
show_hidden->set_flat(true);
|
||||
show_hidden->set_toggle_mode(true);
|
||||
show_hidden->set_pressed(is_showing_hidden_files());
|
||||
show_hidden->set_tooltip(RTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->set_tooltip_text(RTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->connect("toggled", callable_mp(this, &FileDialog::set_show_hidden_files));
|
||||
hbc->add_child(show_hidden);
|
||||
|
||||
|
|
|
@ -2495,28 +2495,28 @@ GraphEdit::GraphEdit() {
|
|||
zoom_minus = memnew(Button);
|
||||
zoom_minus->set_flat(true);
|
||||
zoom_hb->add_child(zoom_minus);
|
||||
zoom_minus->set_tooltip(RTR("Zoom Out"));
|
||||
zoom_minus->set_tooltip_text(RTR("Zoom Out"));
|
||||
zoom_minus->connect("pressed", callable_mp(this, &GraphEdit::_zoom_minus));
|
||||
zoom_minus->set_focus_mode(FOCUS_NONE);
|
||||
|
||||
zoom_reset = memnew(Button);
|
||||
zoom_reset->set_flat(true);
|
||||
zoom_hb->add_child(zoom_reset);
|
||||
zoom_reset->set_tooltip(RTR("Zoom Reset"));
|
||||
zoom_reset->set_tooltip_text(RTR("Zoom Reset"));
|
||||
zoom_reset->connect("pressed", callable_mp(this, &GraphEdit::_zoom_reset));
|
||||
zoom_reset->set_focus_mode(FOCUS_NONE);
|
||||
|
||||
zoom_plus = memnew(Button);
|
||||
zoom_plus->set_flat(true);
|
||||
zoom_hb->add_child(zoom_plus);
|
||||
zoom_plus->set_tooltip(RTR("Zoom In"));
|
||||
zoom_plus->set_tooltip_text(RTR("Zoom In"));
|
||||
zoom_plus->connect("pressed", callable_mp(this, &GraphEdit::_zoom_plus));
|
||||
zoom_plus->set_focus_mode(FOCUS_NONE);
|
||||
|
||||
snap_button = memnew(Button);
|
||||
snap_button->set_flat(true);
|
||||
snap_button->set_toggle_mode(true);
|
||||
snap_button->set_tooltip(RTR("Enable snap and show grid."));
|
||||
snap_button->set_tooltip_text(RTR("Enable snap and show grid."));
|
||||
snap_button->connect("pressed", callable_mp(this, &GraphEdit::_snap_toggled));
|
||||
snap_button->set_pressed(true);
|
||||
snap_button->set_focus_mode(FOCUS_NONE);
|
||||
|
@ -2533,7 +2533,7 @@ GraphEdit::GraphEdit() {
|
|||
minimap_button = memnew(Button);
|
||||
minimap_button->set_flat(true);
|
||||
minimap_button->set_toggle_mode(true);
|
||||
minimap_button->set_tooltip(RTR("Enable grid minimap."));
|
||||
minimap_button->set_tooltip_text(RTR("Enable grid minimap."));
|
||||
minimap_button->connect("pressed", callable_mp(this, &GraphEdit::_minimap_toggled));
|
||||
minimap_button->set_pressed(true);
|
||||
minimap_button->set_focus_mode(FOCUS_NONE);
|
||||
|
@ -2542,7 +2542,7 @@ GraphEdit::GraphEdit() {
|
|||
layout_button = memnew(Button);
|
||||
layout_button->set_flat(true);
|
||||
zoom_hb->add_child(layout_button);
|
||||
layout_button->set_tooltip(RTR("Arrange nodes."));
|
||||
layout_button->set_tooltip_text(RTR("Arrange nodes."));
|
||||
layout_button->connect("pressed", callable_mp(this, &GraphEdit::arrange_nodes));
|
||||
layout_button->set_focus_mode(FOCUS_NONE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue