Not sure how to map a mouse click to Commands_en.cfg BUT:
In "Commands_en.cfg" most screens have a "Goback=" location assigned to them. The right mouse-click is supposed to function as a "Goback" key by default, but for some reason it only works on some of the screens and not on others. However, if you assign an actual keyboard key to perform the "Goback" function, it seems to work on all screens that have a "Goback=" line assigned to them. For example, the "Persicope screen" already has a "Goback=" assigned to bring it back to the Conning Tower, the right mouse click does nothing, but pressing a key assigned to "Goback" takes you to the Tower just fine (no idea why).
So, as an alternative, you might consider mapping the "Goback" function to a key (Several mods, such as this example from "Ducimus' Flavored to Taste Mod", already do this).
In the "Commands_en.cfg" file:
[Cmd7]
Name=Go_back_to_prev_cam
Ctxt=1
Key0=0x60,,"Numpad Ins" <------Insert this line
This will assign the 0/Ins key on your numberpad as your Goback Key (make sure you have Num lock on).
In each screen that you would like to have the Insert key bring you back to another specific screen, change the existing Goback= line (Or just add one if none exists for that screen).
The sections you've mentioned above are:
[Cmd13] Name=Conning_tower_camera <----- The conning tower interior
[Cmd14] Name=Conning_tower_periscope <--- Looking AT (not through) the scope
[Cmd16] Name=Periscope_camera <-------- Looking THROUGH the scope (F3)
[Cmd34] Name=Attack_2d_map <----- The TDC (F6)
To have "Insert" take you from the TDC to the Conning tower interior:
[Cmd34]
Name=Attack_2D_map
Ctxt=1
MnID=0x3F020009
Key0=0x75,,"F6"
Page=0x32000000,3741
GoBack=Conning_tower_camera <---- Insert this line
The other screens work the same way, just set the "Goback=" to whatever you like.
|