PDA

View Full Version : [ISBoxer] Visual display of a keymap press (on a timer)



fpsware
09-04-2018, 06:32 AM
I'd like to show a visual display (32x32 menu button) for x seconds after pressing a keymap. After X seconds of that same keymap NOT being pressed turn off the button.

Actual use case is as followings...

When I press CTRL+7 I want to turn on (make visible) the menu button, if I press CTRL+7 again still keep the button on/visible. When I have stopped pressing CTRL+7 (after a few seconds or so) hide the button.

How do I go about this in ISBoxer?

fpsware
09-06-2018, 12:21 AM
No suggestions?

mbox_bob
09-06-2018, 01:32 AM
It would be better to post this kind of question on the ISBoxer forums, even if there is an ISBoxer forum here. They get more heavily monitored for this kind of thing.

That said. I would create a mapped key with two actions.
Action 1, load the menu
Action 2, unload the menu, put a timer on this action, with a pool size of 1, set the Replace timers option, and the number of seconds you want it to display for.

That way, when you press the first time, it will show, and if not pressed again, the menu will unload after x seconds. If you do press the key again, the existing countdown timer will be replaced by a the new one, effectively starting the countdown again.

fpsware
09-06-2018, 03:52 AM
Thanks. That is 100% what I was looking for.