Nodragem Posted October 4, 2018 Share Posted October 4, 2018 Hello, I used BABYLON.GUI recently to make a menu and here are my humble feedback on for improving it, and make it easier to use and learn as a newcomer. There are also some feedback not on BABYLON.GUI but related to menu creation. Renaming some properties for less confusion: - button.top and button.left could be replaced by button.position.x, button.position.y; -> indeed with the latter we could animate menu items as Vector2 with one animation - button.thickness could be renamed button.borderTickness or button.borderWidth - button.color could be renamed button.textColor - button.color controls the text color and the border color! - Rectangle.color could be renamed Rectangle.borderColor - Rectangle.background could be renamed Rectangle.fillColor Bugs? - StackPanel: on a horizontal stack, when width < 1, that creates a space in between the two controllers being stacked. See: https://playground.babylonjs.com/ts.html#VYGP69#2 New features : - Customization: can't use 2D texture to customise the UI (sliders, rectangles, etc) - Customization: can't use Texture Pack (Texture Atlas + json file), see https://www.codeandweb.com/texturepacker - Rectangle: a big addition to Rectangle would be support for 9-patch or similar (https://www.dev2qa.com/android-nine-patch-image-example/) - Grid: cannot access their number of rows / colums: e.g. grid.nrow(), grid.ncol() - Grid: cannot access their children: can we have a grid.getControl(row, col)? - Grid/StackPanel could have a foreach function. - Rendering: Child controllers are clipped to the rendering area of their container. Can we disable that? -> Currently I can't see the children of container 1 if I place them outside of container 1's area. Slightly-out-topic: - angularSensibilityX (and alike) may be renamed angularSensitivityX , or I am confused?... - Tween: could we have Tween object as a helper to create simple animation for juice (i.e. targets, property, start frame, end frame, easingFunction); I created my own helper object (see the PG above). Let me know what you think! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.