In my menu library I'm making for V3, I'm trying to create a function that renders a window on top of the screen, but renders independently of the action going on behind it - sort of like the chrono trigger windows, if you know what I mean. You can still walk around and such. I'm also creating a queue system so that up to 10 of these windows can be rendered at the same time (or define any number you want).
Now, I figure I need to hook this function to a timer, depending on whether a variable is set (ZMLRenderWindows=1). I'm not sure how fast HookTimer is though, and some people would like to run multiple hooktimers for their own use, so I'd like to be able to unhook the timer when ZMLRenderWindows=0. Is this possible? Am I even going about this the right way?
I was thinking something along these lines...
Main loop
{
DoAllOtherStuff();
Switch(ZMLRenderWindows)
Case 0: UnhookTimer(ZML_RenderWindow);
Case 1: HookTimer(ZML_RenderWindow);
}
RenderEverything();
}
Is this possible?
I don't think UnhookTimer is a recognized symbol. :(
Edit by author: On second thought, I probably need to use HookRetrace instead :(
[edit by mcgrue: added the pre tag]