Author Topic: Highlight tiles  (Read 190 times)

0 Members and 1 Guest are viewing this topic.

Offline hreintke

Highlight tiles
« 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 ?


Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4247
  • Total likes: 175
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Highlight tiles
« Reply #1 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 );
Parsley, sage, rosemary, and maggikraut.

Offline hreintke

Re: Highlight tiles
« Reply #2 on: August 19, 2017, 10:23:37 AM »
Thanks,

Exactly what I was looking for.