RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Implement GUI Label text layout properly.

Open PJB3005 opened this issue 6 years ago • 2 comments

Label layout is pretty poorly implemented at the moment. Two problems:

  1. Text clipping and wrapping aren't implemented.
  2. Horizontal align modes shift the entire text up instead of individual lines, which isn't correct.

PJB3005 avatar Feb 14 '19 16:02 PJB3005

I've got a rough prototype of the wrapping typed up:

https://github.com/user-attachments/assets/ccf1d408-55a3-4a27-8910-c64458957152

Horizontal align modes shift the entire text up instead of individual lines, which isn't correct.

Can I clarify what you mean by this, though? Setting Align=Right properly right-justifies the text when using multiple lines and it seems this functionality was added by you a week before logging this bug (https://github.com/space-wizards/RobustToolbox/commit/c7fe2bb8761) so I'm not sure which piece isn't working correctly?

eoineoineoin avatar Oct 13 '24 13:10 eoineoineoin

Can I clarify what you mean by this, though? Setting Align=Right properly right-justifies the text when using multiple lines and it seems this functionality was added by you a week before logging this bug (c7fe2bb8761) so I'm not sure which piece isn't working correctly?

God if I knew anymore lol

PJB3005 avatar Oct 13 '24 13:10 PJB3005