News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Highlight tiles

Started by hreintke, August 18, 2017, 03:35:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hreintke

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 ?


Dwachs

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 );
Parsley, sage, rosemary, and maggikraut.

hreintke

Thanks,

Exactly what I was looking for.