Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
salianifo committed Oct 26, 2024
1 parent cbe2b44 commit bf105a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addons/dialogic/Editor/Events/Fields/field_image_preview.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)"
3 changes: 0 additions & 3 deletions addons/dialogic/Editor/Settings/settings_accessibility.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand All @@ -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."

Expand All @@ -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."

Expand Down
3 changes: 2 additions & 1 deletion addons/dialogic/Modules/Background/event_background.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bf105a3

Please sign in to comment.