Perhaps you could query the in-game clock? I don't know how interrelated the UI windows are, or if they can even do things like that. But it seems like if you can display the clock, you should be able to find out what it says and use that info in the code. However, I haven't really played with the XML functions, so I cannot be sure.
|