loveui.love icon indicating copy to clipboard operation
loveui.love copied to clipboard

Widgets don't work with relative coordinates

Open syndicatedragon opened this issue 14 years ago • 2 comments

The UI context doesn't render properly if any coordinate system translations (i.e. love.graphics.translate()) are in effect. This makes it rather difficult to effectively position UI components except in very simple cases.

syndicatedragon avatar Aug 30 '11 18:08 syndicatedragon

I could add a way for the context to translate, but the fundamental problem remains, when you use love.graphics.translate, other components such as mouse coordinates are not translated, and there is no way to to inspect how the user used love.graphics.translate.

Do you have any suggestions?

meric avatar Aug 31 '11 05:08 meric

Ah, yes, I had forgotten that. I have had much frustration with that as well. As you say, there's no way to get the current translation stack either. I don't think there's anything you can do unless LÖVE itself provides some additional features. Honestly, "translate" has been more trouble than it's worth; it's a great idea but it doesn't play well with most other things.

syndicatedragon avatar Aug 31 '11 15:08 syndicatedragon