When using multiple RscEditMulti inside of a control group, scrolling past a certain point cause the text inside all of the edit boxes to disappear
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Fixed
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Ingame UI
Steps To Reproduce
- Create a control group with ctrlCreate
- Create a few RscEditMulti with ctrlCreate inside the control group
- Have text inside any of the edit boxes
- Scroll until a few of the text boxes are above the top of the control group
- Text disappears
Additional Information
RscEdit seems to be fine, only RscEditMulti has this issue
Gif of issue
https://i.imgur.com/YjZcDYx.gif
Code used to reproduce
(Using repeated player variables for testing)
_buttonOffset = 0; _buttonID = 6900; _textID = 7000; _ctrlGroup = (findDisplay 49) ctrlCreate ['RscControlsGroup',901]; _ctrlGroup ctrlSetPosition[safeZoneX,safeZoneY + 0.1,0.36,1]; _ctrlGroup ctrlCommit 0; { _button = (findDisplay 49) ctrlCreate ['RscButton',_buttonID,_ctrlGroup]; _button ctrlSetTextColor [1,1,1,1]; _button ctrlSetBackgroundColor [0,0,0,0.5]; _button ctrlSetText _x; _button ctrlSetPosition [ 0, 0 + _buttonOffset, 0.36/2, 0.05]; _button ctrlCommit 0; _controlEdit = (findDisplay 49) ctrlCreate ['RscEditMulti', _textID,_ctrlGroup]; _controlEdit ctrlSetPosition [ 0 + (0.36/2), 0 + _buttonOffset, 0.36/2, 0.05]; _controlEdit ctrlSetBackgroundColor [0,0,0,0.75]; _controlEdit ctrlSetTextColor [1,1,1,1]; _controlEdit ctrlSetText (format["%1",player getVariable [_x,""]]); _controlEdit ctrlCommit 0; _buttonID = _buttonID + 1; _textID = _textID + 1; _buttonOffset = _buttonOffset + 0.05; } forEach ((allVariables player) + (allVariables player) + (allVariables player));