Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Best way to programmatically scan the game screen?  (Read 659 times)

jeancallisti

  • Bay Watcher
    • View Profile
Best way to programmatically scan the game screen?
« on: March 11, 2018, 04:00:24 am »

I'd like to write a mod that scans the options displayed on the screen, in any menu, at any time, in order to render them differently. In other words: I need to obtain the list of options available for the player in any given screen.
How would you achieve that? Would DFHack be a good "middleware"?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Best way to programmatically scan the game screen?
« Reply #1 on: March 11, 2018, 04:45:15 am »

DFHack lets you directly obtain the current viewscreen and the UI state in general, so it'd probably be better for what you want than scanning the whole screen for that purpose anyway.

jeancallisti

  • Bay Watcher
    • View Profile
Logged