Fix spinbox formatting to fix linking

This commit is contained in:
skyace65
2025-07-19 22:02:46 -04:00
parent 71a9948157
commit 94fc2efaa2
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}.',