Updated dialogic

This commit is contained in:
MaddoScientisto 2026-01-05 16:00:41 +01:00
commit cbb82512ee
483 changed files with 5743 additions and 2177 deletions

View file

@ -55,6 +55,8 @@ func _ready() -> void:
func initialize_ui() -> void:
var _scale := DialogicUtil.get_editor_scale()
add_theme_constant_override("margin_bottom", DialogicUtil.get_editor_setting("event_block_margin", 0) * _scale)
$PanelContainer.self_modulate = get_theme_color("accent_color", "Editor")
# Warning Icon
@ -168,6 +170,7 @@ var FIELD_SCENES := {
DialogicEvent.ValueType.VECTOR4: "res://addons/dialogic/Editor/Events/Fields/field_vector4.tscn",
DialogicEvent.ValueType.COLOR: "res://addons/dialogic/Editor/Events/Fields/field_color.tscn",
DialogicEvent.ValueType.AUDIO_PREVIEW: "res://addons/dialogic/Editor/Events/Fields/field_audio_preview.tscn",
DialogicEvent.ValueType.IMAGE_PREVIEW: "res://addons/dialogic/Editor/Events/Fields/field_image_preview.tscn",
}
func build_editor(build_header:bool = true, build_body:bool = false) -> void:
@ -356,6 +359,13 @@ func _evaluate_visibility_condition(p: Dictionary) -> bool:
return result
func get_field_node(property_name:String) -> Node:
for i in field_list:
if i.get("property", "") == property_name:
return i.node
return null
func _on_resource_ui_update_needed() -> void:
for node_info in field_list:
if node_info.node and node_info.node.has_method('set_value'):
@ -415,6 +425,6 @@ func _on_EventNode_gui_input(event:InputEvent) -> void:
popup.current_event = self
popup.popup_on_parent(Rect2(get_global_mouse_position(),Vector2()))
if resource.help_page_path == "":
popup.set_item_disabled(2, true)
popup.set_item_disabled(4, true)
else:
popup.set_item_disabled(2, false)
popup.set_item_disabled(4, false)