tanrr / Tanrr.VAPlugin.BMSRadio

VoiceAttack Plugin for BMS Radio Menus
GNU General Public License v3.0
2 stars 1 forks source link

Test and handle non-visible menus in BMS #8

Open tanrr opened 1 year ago

tanrr commented 1 year ago

Per the readme, plugin does not (yet) support comms menus being disabled with g_bDisableCommsMenu 1, nor does it support switching off the comms menu with the new chatline dot command ".commsmenu 0".

REASON: Menu items are listened for with VoiceAttack's "Wait for Spoken Response", which lets me dynamically tell it to listen for items that aren't in its normal list of command phrases. Since this is using the dictation engine, and to avoid other conflicts, I don't want to leave it listening in that state for too long. Mostly to avoid the user using a bunch of other commands while the menu is up. The other commands should work, but recognition accuracy will be lower while the dictation engine is listening, or at least that's my understanding!

Haven't tested effect of "invisible" menus being dismissed by the plugin due to timeout and no valid selection (with ESC press). I'm concerned it might pop up the "Exit Game" dialog.

tanrr commented 1 year ago

See Falcon BMS\Docs\05 Other Documentation\Headers\ClassTbl.h - field VIS_POPMENU = 1214. Note that IVibeData.h class IntellivibeData has members like In3D, IsOnGround, IsEndFlight, etc. https://github.com/lightningviper/lightningstools/tree/master/src