[interface] move position of abilities popup

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
User avatar
Pentarctagon
Project Manager
Posts: 5592
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: [interface] move position of abilities popup

Post by Pentarctagon »

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
white_haired_uncle
Posts: 1288
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Re: [interface] move position of abilities popup

Post by white_haired_uncle »

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
Speak softly, and carry Doombringer.
Post Reply