Page MenuHomeFeedback Tracker

Scroll height is not properly adjusted for Display3DENCopy
New, NormalPublic

Description

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
Eden Editor
Steps To Reproduce

Open a scenario with some entities and use the "Export to SQF" tool.

Additional Information

Game: Arma 3
Version: 1.95
Build: 145769
Branch: Development
Mods enabled: true
Operating System: Windows
Architecture: x64

Resolution:
Width: 1920
Height: 1080
UI Scale: 0.7

Event Timeline

R3vo created this task.Jun 18 2019, 2:49 PM
Asaayu added a subscriber: Asaayu.Jun 18 2019, 4:27 PM

Here is a 100% repeatable way to not only get this error (Code 1) but to also get the expected outcome (Code 2).

Using excel I created a string of numbers from 1-675 in a column.
I then created a string of numbers in a row from 1-5982.

Code 1:
If I put the column of numbers in to the display it will only show a specific number of lines at once.
Example Code
Example Image

Code 2:
BUT, if I put the row of numbers from 1-5982 in the code then it will show all of the numbers.
Example Code
Example Image

R3vo added a comment.EditedJun 18 2019, 5:27 PM

Further investigations revealed that the issue is caused by two things.

  1. Different controls types ctrlEditMulti and ctrlStructuredText (ctrlTextHeight is completely different for these)
  2. Font: The current font seems to not properly work with ctrlTextHeight. Changing it to PuristaMedium seems to work reliably.
class Group: ctrlControlsGroup
        {
            idc = 201;
            x = "((getResolution select 2) * 0.5 * pixelW) - (		140 * 0.5 - 1) * (pixelW * pixelGrid * 	0.50)";
            y = "0.5 - (safezoneH min (	180 * (pixelH * pixelGrid * 	0.50))) * 0.5 + 11 * (pixelH * pixelGrid * 	0.50)";
            w = "(		140 - 2) * (pixelW * pixelGrid * 	0.50)";
            h = "(safezoneH min (	180 * (pixelH * pixelGrid * 	0.50))) - 23 * (pixelH * pixelGrid * 	0.50)";
            class Controls
            {
                class Edit: ctrlEditMulti
                {
                    idc = 202;
                    w = "(		140 - 2) * (pixelW * pixelGrid * 	0.50)";
                    h = "(safezoneH min (	180 * (pixelH * pixelGrid * 	0.50))) - 23 * (pixelH * pixelGrid * 	0.50)";
                    sizeEx = "3.875 * (1 / (getResolution select 3)) * pixelGrid * 0.5";
                    font = "PuristaMedium";//Changed
                    canModify = 0;
                };
                class EditFake: ctrlEditMulti//Changed
                {
                    idc = 203;
                    w = "(		140 - 2) * (pixelW * pixelGrid * 	0.50)";
                    h = "(safezoneH min (	180 * (pixelH * pixelGrid * 	0.50))) - 23 * (pixelH * pixelGrid * 	0.50)";
                    sizeEx = "3.875 * (1 / (getResolution select 3)) * pixelGrid * 0.5";
                    show = 0;
					font = "PuristaMedium";//Changed
                };
            };
        };