The International Simutrans Forum

Development => Technical Documentation => Topic started by: hreintke on August 18, 2017, 03:35:19 PM

Title: Highlight tiles
Post by: hreintke on August 18, 2017, 03:35:19 PM
I am looking for a way to highlight some tiles.

As starting point I am searching on how the "edit line" option of the line_management window  colors the current stops red.

Any hints where to find that in the code ?

Title: Re: Highlight tiles
Post by: Dwachs on August 18, 2017, 07:59:59 PM
FOr schedules, it is done in gui/schedule_gui.cc, schedule_gui_stats_t::highlight_schedule.

It uses obj->set_flag( obj_t::highlight ) and gr->set_flag( grund_t::marked );
Title: Re: Highlight tiles
Post by: hreintke on August 19, 2017, 10:23:37 AM
Thanks,

Exactly what I was looking for.