Archaegeo / DualUniverseLuaIssues

DualUniverse LUA Issue Tracking
GNU General Public License v3.0
5 stars 0 forks source link

LUA screens do not support text rotation #24

Closed nekranox closed 2 years ago

nekranox commented 3 years ago

Currently it is not possible using the new LUA screen functions to rotate text. As a result, is it is not possible to have a screen in portrait orientation with text.

The only way to add text using the new functions is addText(layer, font, text, x, y)

But the documentation states that this function does not support rotation Screenshot: https://imgur.com/a/GHxK0w8 Documentation: https://board.dualthegame.com/index.php?/topic/22643-lua-screen-units-api-and-instructions-updated-19072021/

Text rotation is essential and should be high priority as many people use screens in portrait orientation and this will harm adoption of the new API

samdeane commented 3 years ago

A more general solution might be to allow layer rotation?

Then if you need to rotate some text (or anything else), you put it on a layer and rotate that.

NQ-Ligo commented 2 years ago

Hi there !

We've added full layer transform support on 0.29 Athena update, and even a clipping rectangle support. You can use it to apply transformation to your text.

Archaegeo commented 2 years ago

Closed as complete