trompetin17 Posted October 25 Report Share Posted October 25 A new ScrollPanel GUI component is going to be born with the following capabilities: Scroll Orientation Support: Allows scrolling in horizontal, vertical, or both directions, providing flexibility for different use cases. Partial Object Rendering: Supports partial rendering of objects that are only partially visible within the scroll boundaries, improving visual accuracy and performance. Boundary-Constrained Mouse Interaction: Handles mouse events strictly within the panel's visible boundaries, preventing interaction with objects outside the scrollable area. Minimum Internal Size (min_width, min_height): Introduces support for virtual space management, allowing the panel to maintain a minimum internal size independent of its actual on-screen dimensions. Even when the panel is resized, this ensures that the content respects a defined virtual space (with min_width and min_height), effectively simulating a larger internal canvas. This is particularly useful for large content or scenarios where a more extensive scrollable area is required than the current visible panel. Here is the showcase Pull request: https://gitea.wildfiregames.com/0ad/0ad/pulls/7118 Please give me feedback to keep improving GUI Components. 6 2 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 26 Author Report Share Posted October 26 Hello, mind if you can help me to get all current ui that would need this component, please with images, keep in mind to use the minimal screen we supported. For now im working on Structure tech/unit tree info. Maybe summary screens?. Thx in advance 1 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 27 Author Report Share Posted October 27 Sctructure Tree using ScrollPanel here is the changes made in mod public https://gitea.wildfiregames.com/0ad/0ad/commit/3b4e5d98f4b63a6ad8bea258c88c463de069ce2c 1 3 Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 27 Report Share Posted October 27 I think this can be used on all UI pages, really. Handling UI scaling on lower screen resolutions is such a hassle and this is a very elegant solution to it. I will also use scrollpanels for the encyclopedia page as soon as the PR gets merged. Great work. 2 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 27 Report Share Posted October 27 15 hours ago, trompetin17 said: Sctructure Tree using ScrollPanel here is the changes made in mod public https://gitea.wildfiregames.com/0ad/0ad/commit/3b4e5d98f4b63a6ad8bea258c88c463de069ce2c Por fin alguien arreglo ese desastre con el árbol tecnológico. Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted Tuesday at 21:29 Author Report Share Posted Tuesday at 21:29 https://gitea.wildfiregames.com/0ad/0ad/commit/8c250568e7cb9e422c7cf6799ea586dcb14b4f14 ScrollPanel get on live, If anyone found something let me know please with step to reproduce. 2 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.