1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #108782 from skyace65/Spinbox-link-fix

Fix spinbox formatting to fix linking
This commit is contained in:
Thaddeus Crews
2025-07-23 13:27:06 -05:00
2 changed files with 7 additions and 1 deletions

View File

@@ -51,7 +51,7 @@
</member>
<member name="custom_arrow_step" type="float" setter="set_custom_arrow_step" getter="get_custom_arrow_step" default="0.0">
If not [code]0[/code], sets the step when interacting with the arrow buttons of the [SpinBox].
[b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member step].
[b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member Range.step].
</member>
<member name="editable" type="bool" setter="set_editable" getter="is_editable" default="true" keywords="readonly, disabled, enabled">
If [code]true[/code], the [SpinBox] will be editable. Otherwise, it will be read only.

View File

@@ -2151,6 +2151,12 @@ def format_text_block(
state,
)
elif class_def.properties[target_name].overrides is not None:
print_error(
f'{state.current_class}.xml: Invalid member reference "{link_target}" in {context_name}. The reference must point to the original definition, not to the override.',
state,
)
elif tag_state.name == "signal" and target_name not in class_def.signals:
print_error(
f'{state.current_class}.xml: Unresolved signal reference "{link_target}" in {context_name}.',