Make dynamic button container in Godot - button

I am stuck when I try to construct dynamic button container in Godot like shown at attached video. Is there any possible way to make it easy in Godot?
Would be appreciate for your help!
Here's my problem's description video

I would try a mix of VBoxContainers with rows of GridContainers. I've worked with GridContainers a lot recently and see no problems getting that effect done. Just add your dynamic buttons to the grid in the appropriate row.
https://docs.godotengine.org/en/3.0/classes/class_gridcontainer.html
Noticed this is a few months later so hopefully you found a solution.

Related

Swipe gesture menu

I am trying to make this specific menu from the image.
As you can see from the photo, the menu is based on filtering and submitting the custom filter. The way this menu is aimed to be used is by swiping left or right depending on the user's choice as shown in this image.
When swiped, depending on which element is currently located in the trigger point, in this case, the center of the page, it would give it a custom class as shown here.
I understand that question is too broad to be fully answered and I totally agree with that. My aim is to get some sort of help or advice in which direction should I go in order to accomplish this (using a library you know or tutorial explaining similar issues).
** Also if someone has an idea of how to make these elements swipeable, it would be of great help.
Thank you in advance.

Hiding objects in unity without changing their state

I have a vague memory of a Unity video tutorial where the guy hid some objets while building a scene. The thing is that he dind't use the usual 'disable/enable the object via the inspector checkbox' and so he didn't have to worry to enable them later... moreover, as the objects were 'invisible but enabled', all attached behaviours were working.
As far as I remember the effect was pretty similar to moving the object into a hidden layer (but not changing the object layer but using a different Unity built-in action so he actually dind't change anything in the object).
I've been trying to remember how he did such a thing and looking around the editor to find the specific option but with no luck. Honestly, I'm beginnig to think that I might not be remembering correctly. Do anyone know about this 'hide objects without changing them' command?
Regards!
Sounds like he might have just turned the object's renderer off. Each GaneObject is going to have some kind of renderer as a property in the inspector (sprite renderer if its 2D, ect). He probably just disabled that as opposed to disabling the entire GameObject. Let me know if that helps!
I've just received by chance a link to a video on twitter (I think it's the very same I was trying to remember but I'm not 100% sure). Anyway it seems that my current Unity version 2018.3.3) doesn't include that 'Scene visibility' toggle; it seems to be available for 2019 Beta. . I didn't test it yet but it seems pretty straightforward, just click on a gray bar in the hierarchy bar, to the left of the object you want to 'hide'; the bar seems to work as a an visible/not visible toggle. Here a link to de video where you can see the thing working!
I hope it helps!!

customize carousel help required

I need suggestions in building below UI. It's a carousel like structure where active over is highlighted in green and we can still see next overs disabled or gray color.
I have researched for this for ex. Can I make use of any carousel to fit this design but can't seem to come to any conclusion. Thought of slider also but did not see that fitting this design.
Guys, do you have any suggestion or pointers to get me started here. I do not need code; just want a startup point. So far I am stuck with carousel or slider.
I understand this might not be most constructive question on SO but any pointers will be highly appreciated.
Unfortunately, you didn't provide any information about what should happen when you click on these items. If I understand correctly, you are looking for a carousel supporting your own pager design. If this is correct, you must add the pager markup first, after that you can use any carousel that supports slide switching methods. Then you can add click event listener to your pager items and call switching method in the listener, setting by that a new slide corresponding to the pager element index.
For example, you can try slick carousel, as it has .slickGoTo() method, which you can use to switch slides programmatically. You can also try to customize slick's default pager, but it might be not so easy or even impossible at all.

How to add vector icons as tab in react-native-scrollable-tab-view

There is a gif image that shows you can add vector icons as tab in react-native-scrollable-tab-view as per image below:
I already look and google everywhere I can look into. I cannot find a way to do this without altering the package.
Need help on how to achieve like in this image where you can see they use vector icons as tab.
Appreciate all the help. Thanks
Actually you have to implement this TabBar by yourself. But luckily, you can mimic the "FacebookExample" to achieve it. I think it's not too difficult. Here is the js file of the Facebook TabBar.
https://github.com/ptomasroos/react-native-scrollable-tab-view/blob/master/Example/FacebookTabBar.js

How to use jQuery to show a different page in ASP.NET

I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side).
At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behind, and .js file, css, etc. Just trying to get an idea on how this would be set up to work.
Basically, when I hover over an item, I need to query for details that belongs for that record being moused-over and display it in the window or div. I also need to have some functionality in that window (i.e. a textbox and button which will end up needing to get saved in a database).
Thanks for any tips and suggestions -
You would want to add an AJAX call to the hover event of the image, that pulls from a webservice/web method.
Here is a good example, you would change some things. However, it should get you started.
http://www.mikesdotnetting.com/Article/96/Handling-JSON-Arrays-returned-from-ASP.NET-Web-Services-with-jQuery
If I understood your question correctly, you should try this excelent jQuery plugin:
http://www.sohtanaka.com/web-design/css-on-hover-image-captions/
Look at the demo here:
http://www.sohtanaka.com/web-design/examples/image-hover/
easy to install and configure and very slick!
Good luck
EDIT: sorry wrong lik the first time
There are certainly many jQuery plugins that will do this for you. jQuery UI may also be of benefit.
Here is one that appears to do something like you are describing:
http://plugins.jquery.com/project/VisualLightbox

Resources