mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 23:39:19 +00:00
![]() Part of what's unusual about this dialog is we use canvas shapes to draw the text rather than actual widgets. I want to look into doing so, but it makes alpha fading more difficult. Nonetheless, this problem also arose because text wrapping is handled differently from other text shape keys. Instead of evaluating a formula taken from the config (for instance `"(text_wrap_mode)"`), the value is queried from the WFL variables set on the canvas directly before being passed to the text rendering code. The value set for said variable is controlled by the wrap=true/value key, which is set per widget *instance*. Making the canvas handle this key like any other would mean making sure most text shapes have the appropriate config key set, even if (as the example above shows) the key only spit out the formula variable anyway. Also made it so text doesn't go all the way to the edge in the event that it stretches that long. |
||
---|---|---|
.. | ||
ai | ||
campaigns | ||
core | ||
gui | ||
hardwired | ||
languages | ||
lua | ||
modifications/pick_advance | ||
multiplayer | ||
schema | ||
test | ||
themes | ||
tools | ||
_main.cfg | ||
achievements.cfg | ||
advanced_preferences.cfg | ||
COPYING.txt | ||
cores.cfg | ||
english.cfg | ||
game_config.cfg | ||
lan_server.cfg | ||
modifications.cfg | ||
tips.cfg |