Page MenuHomeFeedback Tracker

Control group disappearing text
Closed, ResolvedPublic

Description

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

Details

Severity
Minor
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
Ingame UI
Steps To Reproduce
  1. Create a control group with ctrlCreate
  2. Create a few RscEditMulti with ctrlCreate inside the control group
  3. Have text inside any of the edit boxes
  4. Scroll until a few of the text boxes are above the top of the control group
  5. 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));

Event Timeline

Fraali created this task.Mar 20 2021, 12:36 PM
dedmen added a subscriber: dedmen.Mar 26 2021, 3:47 PM

Thanks for the report, I know where the problem will be.

Found it. Fix is coming

It will land in profiling branch v9 today.
Would be neat if you can test it

This does seem to be fixed on live currently, this ticket can be closed

Tenshi closed this task as Resolved.Nov 1 2022, 12:39 PM
Tenshi changed Resolution from Open to Fixed.