Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Is it possible to toggle status flashing on/off?  (Read 785 times)

itgiawa

  • Escaped Lunatic
    • View Profile
Is it possible to toggle status flashing on/off?
« on: July 08, 2019, 01:10:41 pm »

I find flashing sprites kinda distracting at times and would like the ability to toggle it on/off. Does anyone know the best way for me to start modding this?
I was thinking I could add this feature i TWBT someplace? Or would that be too hard?
Thanks!
Logged

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: Is it possible to toggle status flashing on/off?
« Reply #1 on: July 09, 2019, 05:17:57 am »

Some entity POSITIONs have the [FLASHES] tag to highlight the King's importance. Use a code editor that offers "find string in these 100 text files / this folder".
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Is it possible to toggle status flashing on/off?
« Reply #2 on: July 12, 2019, 10:02:42 am »

Adding it to TWBT ought to be possible, but mildly annoying. (There also might be vmethod in df you could override, idk.)

T'is because while military dwarves follow relatively simple "past a skill level? Use bright/bold", regular dwarven workers have both colours meaningful. So you'd need to define a colour for each profession, check if dwarf has that profession, and then set dwarf tile's fg to that colour.

Easier, maybe, if you use and leave the distinction between profession to a graphics set - in that case, I'd think you could give every dwarf white fg on every frame.

The hardest part is probably figuring out where you write the latter line, tbh. Good luck!