I know you can set the options for a niftyGui dropdown in java after the dropdown is created:
DropDown<String> dropDown = currentScreen.findNiftyControl(id,DropDown.class);
dropDown.addAllItems(someListOfOptions);
Which can be fine but when building complex screens it gets a bit messy to go back and fill in the drop down later
Is there a way either in the XML and/or in the Java Builder that I can set the drop down options then and there, so is there anything I could put in for the ??? below to make the dropdown have “yes”, “no”, “maybe” as the dropdown options:
<control id="dropDown2" name="dropDown">
?????
</control>
Or
new PanelBuilder(){{
height("100%");
width("50%");
control(new DropDownBuilder("dropDown"){{
id("dropDown2")
?????
}});
}}