Comment 15 for bug 1675179

Revision history for this message
kaputtnik (franku) wrote :

# Looks like it is a bug in the new hide function

I think this has never come up until the new hide function was implemented. So it's not a bug in your code. Just found: We can set the buildhelp off/on with lua already:
https://wl.widelands.org/docs/wl/autogen_wl_ui/#wl.ui.MapView.buildhelp
So nothing to change in this branch, except:

To make the animations more smooth, maybe there could be lua access (read/write) to the revealed but unseen state of a field (the state a field is revealed but not seen by a building or worker).

There are already two functions which are read only for getting the state, but not for setting:

player:sees_field
player:seen_field

https://wl.widelands.org/docs/wl/autogen_wl_game/#wl.game.Player.sees_field
https://wl.widelands.org/docs/wl/autogen_wl_game/#wl.game.Player.seen_field