diff --git a/addons/dialogic/Editor/Events/Fields/field_image_preview.tscn b/addons/dialogic/Editor/Events/Fields/field_image_preview.tscn index ed6040115..db337f8fd 100644 --- a/addons/dialogic/Editor/Events/Fields/field_image_preview.tscn +++ b/addons/dialogic/Editor/Events/Fields/field_image_preview.tscn @@ -3,7 +3,6 @@ [ext_resource type="Script" path="res://addons/dialogic/Editor/Events/Fields/field_image_preview.gd" id="1_e5vbc"] [node name="Field_Image_Preview" type="TextureRect"] -custom_minimum_size = Vector2(0, 100) anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -17,7 +16,8 @@ script = ExtResource("1_e5vbc") [node name="HiddenLabel" type="Label" parent="."] unique_name_in_owner = true +visible = false layout_mode = 0 -tooltip_text = "Preview hidden because 'dialogic/accessibility/image_preview_height' is 0." +tooltip_text = "Preview hidden because project setting 'dialogic/accessibility/image_preview_height' is 0." mouse_filter = 1 text = "(Hidden)" diff --git a/addons/dialogic/Editor/Settings/settings_accessibility.tscn b/addons/dialogic/Editor/Settings/settings_accessibility.tscn index b2683ad98..c8bdd2270 100644 --- a/addons/dialogic/Editor/Settings/settings_accessibility.tscn +++ b/addons/dialogic/Editor/Settings/settings_accessibility.tscn @@ -33,7 +33,6 @@ text = "Image preview height" [node name="HintTooltip" parent="HBoxContainer" instance=ExtResource("2_7u84i")] layout_mode = 2 -tooltip_text = "This is the amount of space between event blocks in the timeline." texture = null hint_text = "If set to 0, image previews will be disabled." @@ -55,7 +54,6 @@ text = "Event block bottom margin" [node name="HintTooltip" parent="HBoxContainer2" instance=ExtResource("2_7u84i")] layout_mode = 2 -tooltip_text = "These settings affect the visual timeline." texture = null hint_text = "This adds extra space at the bottom of event blocks. Requires reloading the visual timeline to take effect." @@ -77,7 +75,6 @@ text = "Show event names in timeline" [node name="HintTooltip" parent="HBoxContainer3" instance=ExtResource("2_7u84i")] layout_mode = 2 -tooltip_text = "This is the amount of space between event blocks in the timeline." texture = null hint_text = "Enabling this prepends the event name at the beginning of event blocks. Requires reloading the visual timeline to take effect." diff --git a/addons/dialogic/Modules/Background/event_background.gd b/addons/dialogic/Modules/Background/event_background.gd index fc1566a35..753270d54 100644 --- a/addons/dialogic/Modules/Background/event_background.gd +++ b/addons/dialogic/Modules/Background/event_background.gd @@ -142,7 +142,8 @@ func build_event_editor() -> void: '_arg_type == ArgumentTypes.IMAGE or _scene_type == SceneTypes.DEFAULT') add_header_edit('argument', ValueType.SINGLELINE_TEXT, {}, '_arg_type == ArgumentTypes.CUSTOM') - add_body_edit("argument", ValueType.IMAGE_PREVIEW, {'left_text':'Preview:'}, '(_arg_type == ArgumentTypes.IMAGE or _scene_type == SceneTypes.DEFAULT) and !argument.is_empty()') + add_body_edit("argument", ValueType.IMAGE_PREVIEW, {'left_text':'Preview:'}, + '(_arg_type == ArgumentTypes.IMAGE or _scene_type == SceneTypes.DEFAULT) and !argument.is_empty()') add_body_line_break('(_arg_type == ArgumentTypes.IMAGE or _scene_type == SceneTypes.DEFAULT) and !argument.is_empty()') add_body_edit("transition", ValueType.DYNAMIC_OPTIONS,