[interface] move position of abilities popup
Moderator: Forum Moderators
Forum rules
Before posting a new idea, you must read the following:
Before posting a new idea, you must read the following:
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: [interface] move position of abilities popup
Wesnoth no longer uses SDL2_ttf - it uses pango, so perhaps something like
pango_layout_get_pixel_size
instead.99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 1288
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
Re: [interface] move position of abilities popup
pango_layout_get_pixel_size does look promising. I guessed that I'd put the message into a pango layout, query the size, and then use that to adjust the rect dimensions. I totally failed at that, unfortunately. One day, but right now not so much.
https://github.com/wesnoth/wesnoth/pull/8908
https://github.com/wesnoth/wesnoth/pull/8908
Speak softly, and carry Doombringer.