This patch gets a boolean value to check if the is underground view active from the Script API.
This is for use in the underground builds of the tutorial script. :P
settings.is_underground_view_active()
Thanks. Maybe you also want to know which kind of underground mode is active (and the z coordinate of the sliced view) ?
Quote from: Dwachs on October 21, 2022, 05:39:26 AMThanks. Maybe you also want to know which kind of underground mode is active (and the z coordinate of the sliced view) ?
Thank you very much. :D
Edit.
Seems like a good idea, so I can display specific information for each underground view style.
I think it may be easier to return grund_t::underground_level, which is -128 for full underground, +127 for normal view, and otherwise it is the level of the sliced view. Then you have all information with one function. What do you think?
Quote from: Dwachs on October 27, 2022, 06:58:35 PMI think it may be easier to return grund_t::underground_level, which is -128 for full underground, +127 for normal view, and otherwise it is the level of the sliced view. Then you have all information with one function. What do you think?
Sounds interesting, but what would you name it? Something like "get_ground_leve_view()"?
implemented this as settings.get_underground_view_level in r r10792
Great, I'll update the tutorials. 8)