Combo String Box in UI Widget not changing value

Hello.

I am having issues getting my combo string box to change the values after being selected. I have used some print statements to check and see if the values are correct and they are, they just don’t reflect in the combo box. It stays on the default value all the time.

This first picture shows my ‘On Selection Changed’ nodes for the combo box.

The second picture shows where I load the values.

One interesting thing to note about the second picture is that the if block always evaluates as false and prints false to the screen.

The print statements return expected values all the time. The issues is that the default value is always in place.

Screenshot 2022-11-17 154829

Does anyone know how I can fix this issue?

Thank you in advance for your time.
GarboJunkie

I fixed the issue.

Screenshot 2022-11-17 155813

If you look closely you can see that when I break the int point back into a string. It puts the number as 2,560 and not 2560. I assume this is because the conversion from int to string account for the ‘,’ after thousands etc. My solution was simply to change the string comparison to include the ‘,’

1 Like

or, instead of the SetScreenResolution Node, use the ExecuteConsoleCommand and type

r.SetRes WidthxHeightMode

Example:

FullHD Window Mode
r.SetRes 1920x1080w

FullHD Fullscreen Mode
r.SetRes 1920x1080f

That way, you don’t need to split or convert… just use the ComboBox Option as String by appending it to "r.SetRes "