Hi, I’m working on a prototype UMG Menu and I’ve been using Scrollbox with custom buttons for choosing my visual settings. Today, I just tried out ComboBox since I got a suggestion that it’s easier to work with. However I found that the customization options for Combobox are very limited. There is no option for changing the font size or style or alignment. Similarly, there is no option for setting a texture for the dropdown menu instead of the plain black background. Is there any chance you guys are working on any of these features? And if so, can we expect it in the near future?
You can style a lot about the combobox by changing the generated widget it uses for each item in the list,
Next fill in the created function with whatever widget you’d like to generate, in this example I made a widget called PlayerEntry that’s just a textblock formatted the way I want, that has a spawn parameter for a players name that I pass in, on construct it sets that text on the textblock it owns.
The specific option to style the background is as far as I know unsupported in the slate control, so unless you modify the underlying slate control, or make your own combobox, there’s not currently a way to style it. My door is always open on pull requests
The UMG Team is really tiny. Me and occasionally someone else, so not a ton of free time.
I tend to wait and see if someone else will answer the ‘how do i style’ posts because I figure someone else has figured it out. Also if it’s not built in, you can always mod the engine or clone the control and get generally whatever effect you need - so there’s always a workaround.
We need documentation/manuals! The more advanced features like this totally slip under the radar because I expect a function called “On Generate Widget” to have the same effect as “Event Construct,” to be honest. Thank you very much for shedding some light on this, I can finally stop trying to perfect my own makeshift combobox.
I created a widget, made its size 256x256, created a text block called “Item Name”, set it as a variable, created nodes: Item Name → setText(text), but there is no way that I can create a parameter in Construct to plug into setText(text). How did you create the Player Name Input on your Player Entry Widget?
I think text parameters for combobox should be changeable without generation of new widget type. Font style and padding + for designers it’s good to have an option not implement text in combobox as child, but as overlay: you can put text in button as child and you can put both in overlay. Why we need it? Because we want button to have it’s own size based on used image, not on child-text size.
Not sure if anyone is still working on this, but I used an overlay to put text on the combobox, then made the text of the combobox alpha set to 0, which makes it appear that the text in the combobox is centered (in my case). I then bound that text to the different combobox selections.
Edit: I actually added some padding to the combobox variable content. It doesn’t seem to update until after compiling.