![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
06-25-12, 10:07 AM
|
#1 | |
|
Samurai Navy
![]() Join Date: Jan 2004
Posts: 571
Downloads: 77
Uploads: 0
|
Quote:
Yeah..... #[OPTION] #CATEGORY=Fuel #TYPE=7 #DESCRIPTION=Hotkey for ordering most fuel efficient speed #VALUES= #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ] #; the hotkey used to order most fuel efficient speed #; Format: #; #; MostFuelEfficientSpeedHotKey = [ False, None, False, False, False ] #; False = disabled #; None = key used #; False = shift required #; False = ctrl required #; False = alt required #; False = handled #; #; if you wanted to enable this without shift, ctrl, and alt required: #; MostFuelEfficientSpeedHotKey = [ True, MenuKeyManagerWrapper.Keys.M, False, False, False, False ] #; #; if you wanted to disable this: #; MostFuelEfficientSpeedHotKey = [ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ] #; #; Note: Keys.M is used by the Navigation Map in the stock game! It was used only as example here. Also the hotkey will only be recognized if the sub is surfaced #; MostFuelEfficientSpeedHotKey=[True,MenuKeyManagerWrapper.Keys.U,False,True,False ,False] I used control for it...but nothing seems to happen when I select it in game. I used the Application to install it this way.
__________________
Intel i7-2700K-3.50GHz, 16 GB RAM, 2 xGTX 560,2GB,SLI,2 TB HD The Wolves of Steel 1.06 The Wolves of Steel 1.06 Update 05c |
|
|
|
06-25-12, 10:15 AM
|
#2 |
|
Black Magic
![]() |
The only thing that could be overriding it is if you have the same key, U, defined in commands.cfg for something. The keys in commands.cfg will not 'pass' the keypress onto anything else thus I cannot intercept it.
|
|
|
06-26-12, 07:15 AM
|
#3 |
|
Nub
![]() Join Date: Jun 2009
Posts: 4
Downloads: 114
Uploads: 0
|
I would like to say hello and thank for this amazing mod
|
|
|
06-26-12, 08:07 AM
|
#4 | |
|
Helmsman
![]() Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
|
Quote:
![]() Can't you set Handled property to True in PageDefaultHud's key press handler? I've been playing with edit boxes lately and whenever I typed in some numbers my speed telegraph reacted. But once I changed the event's Handled property to True, it stopped passing through. |
|
|
|
06-27-12, 09:17 PM
|
#5 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
06-28-12, 10:18 AM
|
#6 |
|
Helmsman
![]() Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
|
You said earlier that you cannot "intercept" keys defined in commands.cfg. I.e. if such key is pressed, it reaches the game and executes its command no matter what. I think this can be overridden in PageDefaultHud_KeyPressed(args) function. If I understand it correctly, if you handle the key press there and set args.Handled to True, the key press event won't go any further.
|
|
|
06-28-12, 12:13 PM
|
#7 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
06-28-12, 12:28 PM
|
#8 | |
|
Helmsman
![]() Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
|
Quote:
I wish I could investigate a bit more, but I haven't the time ATM. Maybe in a day or two...
|
|
|
|
06-27-12, 09:12 PM
|
#9 | |
|
Samurai Navy
![]() Join Date: Jan 2004
Posts: 571
Downloads: 77
Uploads: 0
|
Quote:
went with alt S...works 4.0!
__________________
Intel i7-2700K-3.50GHz, 16 GB RAM, 2 xGTX 560,2GB,SLI,2 TB HD The Wolves of Steel 1.06 The Wolves of Steel 1.06 Update 05c |
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
