Announcement

Collapse
No announcement yet.

How come there is no font size option for Widget's ComboBox yet?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How come there is no font size option for Widget's ComboBox yet?

    This feature is there for several versions already, And it's default size is making it kind of useless for final product.
    Check out my game OldSchool Nightmare : http://www.indiedb.com/games/oldschool-nightmare

    #2
    There's no exposed property for that yet (somehow) but it can be worked around. Create a UserWidget with just a text block in it and expose its parameters to an initialization function. Then make another UserWidget with just a combobox in it, then create an override for the combobox's OnGenerateWidget function. Here you can create the text UWidget you made earlier and set its parameters with variables on the custom combobox UWidget then pass the text widget back to the Return node for OnGenerateWidget.

    OnGenerateWidget in UICustomCombobox:
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	181.4 KB
ID:	1104173

    Init in UICustomComboboxText:
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	235.7 KB
ID:	1104175
    Last edited by Jared Therriault; 04-09-2016, 06:05 PM.
    Procedural, modular, on-the-fly animation - iTween For UE4
    - Actors - Components - UMG - Ease In - Ease Out - Path-constrained Animation - $0

    Runtime Datatable
    -All the fun of DataTables dynamically loaded from text or Google Sheets while your game is running!

    Comment


      #3
      OMG man thanks this is awesome!
      I can just simply now make a custom text widget with the look I want and create it on any ComboBox's OnGenerateWidget event .
      This is event better than have the font size option in the ComboBox itself. It gives so much more control.
      I find it weird that epic didn't mentioned it somewhere as the right way to work with ComboBoxes.

      Because I'm actually creating new widgets for the text I can insert anything a widget can show like images etc...
      Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	425.8 KB
ID:	1104193
      Last edited by Sahkan; 04-09-2016, 10:51 PM.
      Check out my game OldSchool Nightmare : http://www.indiedb.com/games/oldschool-nightmare

      Comment

      Working...
      X