Skip to content

Commit

Permalink
Replaced @onready node variables with getters
Browse files Browse the repository at this point in the history
  • Loading branch information
nlupugla committed Jan 4, 2024
1 parent 14f4fb7 commit 7aac8e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ func _apply_export_overrides() -> void:
for child : DialogicNode_PortraitContainer in %Portraits.get_children():
child.size_mode = portrait_size_mode
child.update_portrait_transforms()

4 changes: 0 additions & 4 deletions addons/dialogic/Resources/dialogic_layout_layer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func apply_export_overrides() -> void:
_apply_export_overrides()


func get_layout() -> DialogicLayoutBase:
return get_parent() as DialogicLayoutBase


## Use this to get potential global settings.
func get_global_setting(setting_name:StringName, default:Variant) -> Variant:
return (get_parent() as DialogicLayoutBase).get_global_setting(setting_name, default)

0 comments on commit 7aac8e1

Please sign in to comment.