Page MenuHomeFeedback Tracker

RscShortcutButton lacks automatic text centering
Feedback, NormalPublic

Description

Inside the RscShortcutButton class the TextPos class determines the control's text position.

class TextPos
{
left = 0;
top = 0.05; // Sets text absolute Y position on the control. Not relative to the button height
right = 0.005;
bottom = 0.000;
};

This is a problem when working with different height of RscShortcutButton buttons because TextPos->top needs to be defined for each control

also the interface size seems to also effect the text position. User with smaller interface size can get the text rendered on different position than originally intended

It would be best if there would be automatic text centering

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Ingame UI
Steps To Reproduce

Run the mission

The text is in correct position only for the first button on top left.

The text is not in correct position for any one of the buttons with certain interface sizes

Additional Information

Event Timeline

gc8 created this task.May 20 2022, 12:23 PM
gc8 updated the task description. (Show Details)May 20 2022, 12:29 PM
gc8 edited Steps To Reproduce. (Show Details)
gc8 edited Steps To Reproduce. (Show Details)May 20 2022, 12:29 PM
gc8 changed Category from General to Ingame UI.May 21 2022, 7:53 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.May 21 2022, 9:42 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.