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

Background: Disable/enable conditional properties #331

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

manuq
Copy link
Contributor

@manuq manuq commented Dec 6, 2024

The "is_pointy_value" property depends on the block type to be Value. And the "control_part" property depends on the block type to be Control.

Grabacion.de.pantalla.desde.2024-12-06.15-24-47.webm

The "is_pointy_value" property depends on the block type to be Value.
And the "control_part" property depends on the block type to be Control.
@manuq
Copy link
Contributor Author

manuq commented Dec 6, 2024

This is not important at all, but something I learned about today and wanted to put it somewhere.

@@ -49,6 +50,13 @@ func _set_is_pointy_value(new_is_pointy_value):
queue_redraw()


func _validate_property(property: Dictionary):
Copy link
Contributor

Choose a reason for hiding this comment

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

Simply place related link from Godot document _validate_property()

@@ -37,6 +37,7 @@ func _set_color(new_color):
func _set_block_type(new_block_type):
block_type = new_block_type
queue_redraw()
notify_property_list_changed()
Copy link
Contributor

Choose a reason for hiding this comment

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

Simply place related link from Godot document notify_property_list_changed()

@starnight starnight merged commit 2c16ed4 into main Dec 9, 2024
3 checks passed
@starnight starnight deleted the improve-background-property branch December 9, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants