Skip to content

Commit

Permalink
More BG event adjustments (dialogic-godot#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner authored and Invertex committed Jan 26, 2024
1 parent 7f6ad64 commit 9392c88
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions addons/dialogic/Modules/Background/event_background.gd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func build_event_editor():
'left_text' :'Show',
'options': [
{
'label': 'Default Scene',
'label': 'Background',
'value': SceneTypes.DEFAULT,
'icon': ["GuiRadioUnchecked", "EditorIcons"]
},
Expand All @@ -109,11 +109,12 @@ func build_event_editor():
'value': SceneTypes.CUSTOM,
'icon': ["PackedScene", "EditorIcons"]
}
], "symbol_only": true})
add_header_label("Default BG Scene with", '_scene_type == SceneTypes.DEFAULT')
]})
add_header_label("with image", "_scene_type == SceneTypes.DEFAULT")
add_header_edit("scene", ValueType.FILE,
{'file_filter':'*.tscn, *.scn; Scene Files',
'placeholder': "Default scene",
'placeholder': "Custom scene",
'editor_icon': ["PackedScene", "EditorIcons"],
}, '_scene_type == SceneTypes.CUSTOM')
add_header_edit('_arg_type', ValueType.FIXED_OPTIONS, {
'left_text' : 'with',
Expand All @@ -132,6 +133,7 @@ func build_event_editor():
add_header_edit('argument', ValueType.FILE,
{'file_filter':'*.jpg, *.jpeg, *.png, *.webp, *.tga, *svg, *.bmp, *.dds, *.exr, *.hdr; Supported Image Files',
'placeholder': "No Image",
'editor_icon': ["Image", "EditorIcons"],
},
'_arg_type == ArgumentTypes.IMAGE or _scene_type == SceneTypes.DEFAULT')
add_header_edit('argument', ValueType.SINGLELINE_TEXT, {}, '_arg_type == ArgumentTypes.CUSTOM')
Expand Down

0 comments on commit 9392c88

Please sign in to comment.