Pryme8 Posted August 10, 2017 Share Posted August 10, 2017 http://www.babylonjs-playground.com/#ZIPFMJ I am beating my head into the wall trying to get a white container block next to the text in this example... Maybe I'm just doing it wrong... Never mind... It was because I did not have a defined width on the first element... sorry for the wasted thread... Guess it pays to actually read the documentation and not skim through >_< Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 10, 2017 Share Posted August 10, 2017 Thanks:) I hate writing docs but it keeps proving to be useful Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 10, 2017 Author Share Posted August 10, 2017 http://www.babylonjs-playground.com/#ZIPFMJ#3 Got the element I was trying to make to work! Thanks for doing all the docs! adam and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted August 11, 2017 Share Posted August 11, 2017 Nice Spinner Control for Babylon GUI. Is there interest for pull requests for controls like these? I've been working on some reusable controls like spinner, progress bar and toggle switches. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 11, 2017 Author Share Posted August 11, 2017 Maybe, It would not be that hard to make it a constructor! I was looking at doing text inputs as well here at some point.http://www.babylonjs-playground.com/#ZIPFMJ#27 also Im about to test DOM UI versus BJS GUI if anyone is interested.... Its not done yet but Ill work on it as I get more time here because I need input elements for my demo for the article I'm writing. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted August 12, 2017 Share Posted August 12, 2017 That looks like a good start. I already have everything working with DOM and at some point am porting it all to canvas (GUI). Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 13, 2017 Author Share Posted August 13, 2017 https://www.babylonjs-playground.com/#ZIPFMJ#40 did a special slider, about to do the equivalent to a <select> element next. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 14, 2017 Share Posted August 14, 2017 You should submit a PR to have your upDown control in the GUI Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 14, 2017 Author Share Posted August 14, 2017 yes sir, I will do that when I get a chance today or tomorrow! *EDIT* this is going to have to hold off until, I get typescript up and running and know that Im not a fool.... so prolly this weekend! IT will be worth the wait though, because I'm going to try to add a drop down box as well... brianzinn and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 16, 2017 Author Share Posted August 16, 2017 So I do have a behavior riddle: https://www.babylonjs-playground.com/#6DQN7N#4 If you click the ... button you will see it hides the value of the select box like would be expected and keeps the two option elements (there can be lots more but this was easiest for debugging) Which of course is not the functionality I really want because who wants to have all the select options visible at initial run time. So here is where the question is if I do not add the control initially that has the options in it, when the ... is clicked it toggles correctly but does not show all the options: https://www.babylonjs-playground.com/#6DQN7N#6 Now I can kinda understand that this would be because the stackpanel never got set to the correct height due to the elements never being added or something along those lines. So I though the fix would be to add it wait till the other elements are added, then remove it? https://www.babylonjs-playground.com/#6DQN7N#7 but no that does not work... so I am kinda stumped on the behavior of the stack panel elements still... anyone got any ideas on how to make this "work" Im just dinking around in my free time at work to see if I can come up with a model for select elements. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 16, 2017 Share Posted August 16, 2017 You can force the stackPanel height manually perhaps? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 16, 2017 Author Share Posted August 16, 2017 http://www.babylonjs-playground.com/#c59wzk#9 that was the ticket thanks @Deltakosh I had to add the change of the value to the mouse over event... is there a way to identify the block that was clicked from the pointerup event so I can fire the change of value and its callbacks at the correct time? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 16, 2017 Share Posted August 16, 2017 Pretty cool! Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 16, 2017 Author Share Posted August 16, 2017 http://www.babylonjs-playground.com/#c59wzk#11 Just added onChange callback support. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 16, 2017 Author Share Posted August 16, 2017 https://www.babylonjs-playground.com/#ZIPFMJ#51 if I want to make sure that the drop options stay on top of Items below them what would be the process? It seems like index does nothing. And is there an overflow option? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 control.zIndex Pryme8 1 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.
Note: Your post will require moderator approval before it will be visible.