Combo box controls, whether custom or vanilla, don't seem to apply the default value on first attribute load which are set in the class attributes
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Eden Editor
Steps To Reproduce
Example:
class MarkerColour { displayName = $STR_unitMarker_colour_displayName; tooltip = "Set the marker colour"; property = "Enh_unitMarker_colour"; control = "MarkerColor"; //Vanilla control, unmodified expression = "_this setVariable ['Enh_unitMarker_colour',_value]"; condition = "objectControllable + objectVehicle"; defaultValue = "colorBLUFOR"; typeName = "STRING"; };
AttributeLoad code (snippet)
if (_value in [parsenumber (_ctrlCombo lbdata _i),_ctrlCombo lbdata _i,_ctrlCombo lbvalue _i]) exitwith {_ctrlCombo lbsetcursel _i;};
To my understanding this iterates through all entries in the combo box and sets the current selected entry to the one that matches the value. On first load this should be the default value.
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | None | T148721 Uneccessary separator in configFile >> "Display3DEN" >> "Controls" >> "MenuStrip" >> "Items" >> "Attributes" >> "items" | ||
Resolved | None | T116783 3DEN Combo box controls do not apply default value |