Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend DialogicPortrait by custom portraits. #2020

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

CakeVR
Copy link
Collaborator

@CakeVR CakeVR commented Jan 12, 2024

This PR extends DialogicPortrait on custom portraits in the custom assets.

This prevents errors when a method like _highlight is invoked.

@CakeVR CakeVR added the Bug 🐞 Something isn't working label Jan 12, 2024
@CakeVR CakeVR added this to the Version 2.0 (beta) milestone Jan 12, 2024
@Jowan-Spooner
Copy link
Collaborator

Are you sure this works without the scripts needing any adjustments?

@CakeVR
Copy link
Collaborator Author

CakeVR commented Jan 12, 2024

I can test a bit more.


# if implemented, this is used by the editor for the "full view" mode
func _set_mirror(is_mirrored: bool) -> void:
var nd: Node2D = get_parent().get_child(0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work by just accessing the scale as self.scale instead of this workaround.

@Jowan-Spooner
Copy link
Collaborator

Thank you.

@Jowan-Spooner Jowan-Spooner merged commit 7a43111 into dialogic-godot:main Jan 18, 2024
2 checks passed
Invertex pushed a commit to Invertex/dialogic that referenced this pull request Jan 26, 2024
* Extend `DialogicPortrait` by custom portraits.

* Fix root name's extra `s`.

* Format and fix errors.

* Simplify by using `self`.
@CakeVR CakeVR deleted the fix-highlight-functions branch February 28, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants