Skip to content

Conversation

@YeldhamDev
Copy link
Member

@YeldhamDev YeldhamDev commented Nov 7, 2025

This PR adds scroll hints (indicators that there are still scrollable content towards a direction) to both ScrollContainer (horizontal and vertical) and Tree (only vertical). The default behavior is to hide them, but one can also set them to appear on both opposite sides, or just in one.

One of the objectives of this is to make godotengine/godot-proposals#13581 (comment) possible.

Screencast_20251106_230651.webm

This PR also does a small reordering of properties of those classes when shown in the inspector.

@YeldhamDev YeldhamDev added this to the 4.x milestone Nov 7, 2025
@YeldhamDev YeldhamDev requested review from a team as code owners November 7, 2025 02:16
@passivestar

This comment was marked as resolved.

@YeldhamDev YeldhamDev force-pushed the deep_within_the_shadows_lays_scrollable_content branch from dd6fd90 to 60c4ff5 Compare November 7, 2025 14:49
@YeldhamDev YeldhamDev force-pushed the deep_within_the_shadows_lays_scrollable_content branch from 60c4ff5 to ab554d5 Compare November 7, 2025 17:42
@YeldhamDev YeldhamDev requested a review from a team as a code owner November 7, 2025 17:42
@YeldhamDev
Copy link
Member Author

  • Hints now properly appear above the children.
  • RTL has been fixed.
  • Documentation has been updated.

Comment on lines +636 to +639
if (rtl) {
// TODO: Find out why this is even necessary.
scroll_hint_top_left->set_position(Point2(0, scroll_hint_top_left->get_position().y));
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I have no clue why, but this is necessary for this hint to be positioned properly.

@YeldhamDev YeldhamDev modified the milestones: 4.x, 4.6 Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants