Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edited by TheDarkWraith for NewUIs_TDC_7_4_2
- # Edited on 5/26/2013 @ 1130
- #
- # Copyright notice:
- # The code in this file is the intellectual property of TheDarkWraith and may not be used, modified, or duplicated in whole,
- # or in part, without the express written permission of TheDarkWraith. The code in this file may not be used in any commercial
- # application of any form without the express written permission of TheDarkWraith.
- # User Options for TheDarkWraith's mods
- # Created by TheDarkWraith
- # NOTE!!!!
- # These are the keys the game recognizes:
- # A-Z of the alphabet (Capitalized!)
- # Tab, Enter, Shift, Ctrl, Alt, Escape, PageUp, PageDown, End, Home, Left, Up, Right, Down, Insert, Delete, numbers 0-9 (which are Keyx - i.e. 4 would be Key4)
- # F1-F11 functions keys are unavailable even though MenuKeyManagerWrapper says they are available. Do not try to use F1-F11.
- #[VERSION]
- #1
- #;############################################## Patches #########################################
- #[OPTION]
- #CATEGORY=Patches
- #TYPE=0
- #DESCRIPTION=Is patch decks awash installed
- #VALUES=
- #DEFAULT=False
- PatchDecksAwashEnabled=True
- #[OPTION]
- #CATEGORY=Patches
- #TYPE=2
- #DESCRIPTION=Decks awash depth
- #VALUES=MIN|0.0
- #DEFAULT=7.0
- DecksAwashDepth = 7.0
- #[OPTION]
- #CATEGORY=Patches
- #TYPE=0
- #DESCRIPTION=Is patch independent engine controls installed
- #VALUES=
- #DEFAULT=False
- PatchIndependentEngineControlsEnabled=False
- #[OPTION]
- #CATEGORY=Patches
- #TYPE=7
- #DESCRIPTION=Hotkey for updating the game with current independent engine settings (only need to press when using new throttle setting from keyboard - i.e. 1,2,3, etc.)
- #VALUES=
- #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #; the hotkey used to toggle the nomograph visibility on the mini-map. Nomograph is always visible on nav-map
- #; Format:
- #;
- #; IndependentEnginesGameUpdateHotKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this:
- #; IndependentEnginesGameUpdateHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; IndependentEnginesGameUpdateHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #;
- IndependentEnginesGameUpdateHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ] # change the I to whatever you want
- #;#################################### UI Stuff (SH3/4/5 modes) ##################################
- #;+++++++++++++ UI Style ++++++++++++++
- #; Possible UI Styles:
- SH5Enhanced = 0
- SH3Style = 1
- SH4Style = 2
- #[OPTION]
- #CATEGORY=UI
- #TYPE=5
- #DESCRIPTION=UI style used in-game
- #VALUES=SH5Enhanced,SH3Style,SH4Style
- #DEFAULT=SH5Enhanced
- #; the current UI Style
- #; set below to either SH3Style, SH4Style, or SH5Enhanced
- UIStyle=SH5Enhanced
- #[OPTION]
- #CATEGORY=UI
- #TYPE=0
- #DESCRIPTION=Night filters enable
- #VALUES=
- #DEFAULT=False
- #; Are all night filters enabled?
- #; change below to either True or False
- NightFiltersEnabled = False
- #;########################################### HUD #####################################################
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Integrates the fuel, battery, compressed air, and CO2 interface into the HUD in the bottom bar (applies only to SH5Enhanced UI style)
- #VALUES=
- #DEFAULT=True
- #;+++++++++++++ SH5 specific UI Items +++++++++++++++
- #; integrate the fuel, battery, compressed air, and CO2 interface into the bottom bar
- #; change below to either True or False
- IntegrateLevels = True
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Binocular crosshair visibility
- #VALUES=
- #DEFAULT=False
- #; is the binocular crosshair visible?
- #; change below to either True or False
- BinocularCrosshairEnabled = False
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Depth and map tools bars visible at game start
- #VALUES=
- #DEFAULT=True
- #; are the depth and map tools bars visible at game start?
- #; change below to either True or False
- DepthAndMapToolsBarsVisible = True
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Advanced HUD enabled at game start (applies only to SH5Enhanced UI style)
- #VALUES=
- #DEFAULT=False
- #; does the game start with Advanced HUD enabled?
- #; change below to either True or False
- AdvancedHudIsEnabled=True
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Top right hand side bars hide when you mouse out and show when you mouse in
- #VALUES=
- #DEFAULT=False
- #; Do the top right bars hide when you mouse out and show when you mouse in?
- #; change below to either True or False
- TopRightBarsScroll = False
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=2
- #DESCRIPTION=Time delay before hiding top right hand side bars when moused out (applies only when TopRightBarsScroll is True)
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; if TopRightBarsScroll is enabled, this is the time delay before hiding the top right bars when moused out:
- #; below is in seconds
- TopRightBarsHideTD = 5.0
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Essential controls (depth, heading, etc.) hide when moused out and show when moused in
- #VALUES=
- #DEFAULT=False
- #; do the essential controls (depth, heading, etc.) hide when moused out and show when moused in?
- #; change below to either True or False
- EssentialControlsScroll = False
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=2
- #DESCRIPTION=Time delay before hiding the essential controls when moused out (applies only when EssentialControlsScroll is True)
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; if EssentialControlsScroll is enabled, this is the time delay before hiding the essential controls when moused out:
- #; below is in seconds
- EssentialControlsHideTD = 5.0
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=8
- #DESCRIPTION=Warnings (icons to the left of the top right bar) hide when moused out and show when moused in
- #VALUES=
- #DEFAULT=False
- #; do the warnings (icons to the left of top right bar) hide when moused out and show when moused in?
- #; NOTE: DOES NOT WORK CURRENTLY!
- #; change below to either True or False
- WarningsScroll = False
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Camera bar visibility
- #VALUES=
- #DEFAULT=True
- #; Is the camera bar visible?
- #; change below to either True or False
- CameraBarVisible = True
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Camera bar scrolls out of view when moused out
- #VALUES=
- #DEFAULT=False
- #; does the camera bar scroll out of view when the mouse is not inside it?
- #; change below to either True or False
- CameraBarScrolls = False
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Depth group bar visibility
- #VALUES=
- #DEFAULT=True
- #; Is the depth group bar visible?
- #; change below to either True or False
- DepthGroupBarVisible = True
- #[OPTION]
- #CATEGORY=HUD
- #TYPE=0
- #DESCRIPTION=Travel mode enabled at game start
- #VALUES=
- #DEFAULT=True
- #; is travel mode enabled at game start?
- #; change below to either True or False
- TravelModeEnabled = True
- #;######################################### Maps ######################################################
- #[OPTION]
- #CATEGORY=Maps
- #TYPE=0
- #DESCRIPTION=Map tools tool helper default state at game start
- #VALUES=
- #DEFAULT=True
- #;+++++++++++++ SH3/4/5 specific UI items ++++++++++++++++
- #;
- #; does the tool helper default to on state at game start (map tools)?
- #; change below to either True or False
- ToolHelperOnAtGameStart = True
- #[OPTION]
- #CATEGORY=Maps
- #TYPE=0
- #DESCRIPTION=Are the map tools shown as objects vice a bar (required for Obelix's IO Strategic Map mod support)
- #VALUES=
- #DEFAULT=False
- #; this will add support for the IO Strategic Map mod by Obelix
- #; change below to either True or False
- MapToolsAsObjects = False
- #[OPTION]
- #CATEGORY=Maps
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling nomograph visibility on the mini-map (TAI)
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
- #; the hotkey used to toggle the nomograph visibility on the mini-map. Nomograph is always visible on nav-map
- #; Format:
- #;
- #; NomographVisibleOnMiniMapHotKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this:
- #; NomographVisibleOnMiniMapHotKey = [ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; NomographVisibleOnMiniMapHotKey = [ False, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
- #;
- NomographVisibleOnMiniMapHotKey = [ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ] # change the N to whatever you want
- #[OPTION]
- #CATEGORY=Maps
- #TYPE=0
- #DESCRIPTION=Nomograph visible on the mini-map (TAI) at game start
- #VALUES=
- #DEFAULT=True
- #; is the Nomograph visible on the mini-map (TAI) at game start?
- #; change below to either True or False
- NomographVisibleOnMiniMap = True
- #[OPTION]
- #CATEGORY=Maps
- #TYPE=0
- #DESCRIPTION=Nomograph visible on the navigation map at game start
- #VALUES=
- #DEFAULT=True
- #; is the Nomograph visible on the Navigation map at game start?
- #; change below to either True or False
- NomographVisibleOnNavMap = True
- #;#################################### Heading Bar/Heading/Rudder Dial (SH5 Mode) #####################
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling visibility of the SH5 enhanced heading/rudder dial. Pressing shift + this hotkey will change mode between heading and rudder
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
- #; the hotkey used to display the heading/rudder dial
- #; Format:
- #;
- #; HeadingRudderKey = [ False, None, None, False, False, False ]
- #; False = enabled
- #; None = key used
- #; None = disabled (this is disabled and will always be None - if shift is pressed it will toggle the heading/rudder dial mode from heading/rudder)
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this:
- #; HeadingRudderKey = [ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; HeadingRudderKey = [ False, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
- #;
- HeadingRudderKey = [ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ] # change the C to whatever key you want
- #; the hotkey used to change the heading/rudder dial mode (heading mode or rudder mode) will be the same key
- #; used to toggle the display of the dial plus the shift key. So you have to press the shift key first then
- #; the key used to toggle the display of the dial on/off.
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=7
- #DESCRIPTION=Hotkey for increasing desired heading when heading bar is moused in
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, None, None, False, False ]
- #; the key used to increase the desired heading when you mouse into the heading bar
- #; format is [ enabled, key, None (disabled), None (disabled), alt required, handled ]
- HeadingBarIncreaseHeadingKey = [ True, MenuKeyManagerWrapper.Keys.E, None, None, False, False ] # change the E to whatever key you want
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=7
- #DESCRIPTION=Hotkey for decreasing desired heading when heading bar is moused in
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, None, None, False, False ]
- HeadingBarDecreaseHeadingKey = [ True, MenuKeyManagerWrapper.Keys.Q, None, None, False, False ] # change the Q to whatever key you want
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=3
- #DESCRIPTION=Delay value for increasing/decreasing desired heading when heading bar is moused in
- #VALUES=MIN|0
- #DEFAULT=0
- #; some users may want the desired heading to increase slower. Modify this value to add delay (increment in 1's!)
- HeadingBarUserDelay = 0
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=0
- #DESCRIPTION=Heading bar starts expanded at game start
- #VALUES=
- #DEFAULT=True
- #; Does the heading bar start expanded at game start?
- #; change below to either True or False
- HeadingBarIsExpanded = True
- #[OPTION]
- #CATEGORY=Heading
- #TYPE=0
- #DESCRIPTION=Heading bar starts in advanced mode (click to set heading) at game start
- #VALUES=
- #DEFAULT=False
- #; Does the heading bar start in advanced (click to set heading) mode?
- #; change below to either True or False
- HeadingBarStartAdvanced = False
- #;######################################## Radio #################################################
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=Below this depth (in meters) do not receive radio contacts/reports
- #VALUES=MIN|0
- #DEFAULT=30
- #; Below this depth do not receive radio contacts/reports (in meters)
- BelowThisDepthDontReceiveRadio = 30
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Set time compression to 1 on new radio contact report
- #VALUES=
- #DEFAULT=False
- #; when a new radio contact report comes in does the TC drop back to 1?
- #; change below to either True or False
- TC1OnNewRadioNavMapContact = False
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Set time compression to 1 on radio message received
- #VALUES=
- #DEFAULT=True
- #; does TC drop back to 1 on radio message received?
- #; change below to either True or False
- TC1OnRadioMessageReceived = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=When TC1OnNewRadioNavMapContact is True and a new radio contact report is received whose range from sub is greater than this value do not set time compression to 1
- #VALUES=MIN|0
- #DEFAULT=250
- #; When a new radio contact report is received and it's range from the sub is greater than this value and TC1OnNewRadioNavMapContact is enabled then do not go to TC 1
- #; value is in kms (kilometers)
- MaxRadioContactRange = 250
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Radio contact reports clipped to MaxRadioContactRange distance (If false then they will be subject to MaxRadioContactRange distance if TC1OnNewRadioNavMapContact is True)
- #VALUES=
- #DEFAULT=True
- #; are radio contact reports always clipped to the distance specified above? If not, then they will be subject to the distance specified above if TC1OnNewRadioNavMapContact is enabled.
- #; change below to either True or False
- RadioContactReportsAlwaysClipped = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show contact's actual speed vice relative speed (slow, medium, fast ,etc)
- #VALUES=
- #DEFAULT=False
- #; Are the contact's actual speed shown or is a relative speed shown (slow=2-6 knots, medium=7-12 knots, fast=13+ knots)?
- #; change below to either True or False
- ShowContactsActualSpeed = False
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show contact's actual course vice relative course (E, ENE, SE, S, etc.)
- #VALUES=
- #DEFAULT=False
- #; Are the contact's actual course shown or is a relative course shown (E,ENE,SE,S, SW, etc.)?
- #; change below to either True or False
- ShowContactsActualCourse = False
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The distance (in kms) from sub the watchstanders see the radio contact report contact well enough to update it's course
- #VALUES=MIN|0
- #DEFAULT=8
- #; for radio contact reports, at what range from the sub can the watchstanders see the contact well enough to update it's course (in kms)?
- #; below is in kilometers
- RangeStartUpdatingContacts = 8
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=1
- #DESCRIPTION=The radio messages language
- #VALUES=
- #DEFAULT="English"
- #; the language for the random radio messages in game
- #; Current supported languages are: English
- #; Note: language MUST be enclosed in quotation marks!
- RadioMessageLanguage = "English"
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The percentage chance BDU will send a contact report back upon receipt of a contact report from player
- #VALUES=MIN|0,MAX|100
- #DEFAULT=20
- #; when you send in a contact report to BDU what is the percentage chance that they will send you a contact report back?
- #; below is a percentage value (0 - 100)
- RadioMessagesContactReportChance = 20
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The max radius (in meters) from your sub that a contact can be considered for a contact report from BDU (contact must be less than this radius)
- #VALUES=MIN|0
- #DEFAULT=45000
- #; the max radius (in meters) from your sub that a contact can be considered for a contact report from BDU (contact must be less than this radius)
- #; below is in meters
- RadioMessagesContactReportMaxRadius = 45000
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The min radius (in meters) from your sub that a contact can be considered for a contact report from BDU (contact must be greater than this radius). This value must be less than RadioMessagesContactReportMaxRadius
- #VALUES=MIN|0
- #DEFAULT=15000
- #; the min radius (in meters) from your sub that a contact can be considered for a contact report from BDU (contact must be greater than this radius)
- #; below is in meters
- RadioMessagesContactReportMinRadius = 15000
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Set time compression to 1 when a new radio message is received
- #VALUES=
- #DEFAULT=False
- #; do we set TC to 1 on new radio messages?
- #; change below to either True or False
- TC1OnNewRadioMessage = False
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The range at which the possibility exists that a contact could spot the player's sub and send out a radio report
- #VALUES=MIN|0
- #DEFAULT=8000
- #; when stalking or approaching a ship this is the range at which the possibility exists that the ship could spot the sub and send a radio report about it
- #; below is in meters
- RangeShipSendingSubSightedMessage = 8000
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show radio messages received
- #VALUES=
- #DEFAULT=True
- #; do we show radio messages received?
- #; change below to either True or False
- InformRadioMessages = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show sub sighted radio messages
- #VALUES=
- #DEFAULT=False
- #; do we show radio messages from sub sightings?
- #; change below to either True or False
- InformSubSightedMessages = False
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show Bdu radio messages
- #VALUES=
- #DEFAULT=True
- #; do we show radio messages from BDU?
- #; change below to either True or False
- InformBDUMessages = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Show destroyed unit radio messages
- #VALUES=
- #DEFAULT=True
- #; do we show radio messages about destroyed units?
- #; change below to either True or False
- InformDestroyedMessages = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The percentage chance that the radio operation will intercept a radio message
- #VALUES=MIN|0,MAX|100
- #DEFAULT=50
- #; the chance that the radio operator will intercept radio messages?
- #; below is a percentage value (0 - 100)
- RadioMessagesInterceptChance = 50
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=3
- #DESCRIPTION=The number of times to flash the radio messages icon when a new radio message is received (use -1 for indefinite)
- #VALUES=MIN|-1
- #DEFAULT=50
- #; the number of times to flash the radio messages icon on new radio message received (use -1 for indefinite)
- RadioMessagesFlashTime = -1
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=0
- #DESCRIPTION=Radio messages enabled
- #VALUES=
- #DEFAULT=True
- #; are radio messages enabled in game?
- #; change below to either True or False
- RadioMessagesEnabled = True
- #[OPTION]
- #CATEGORY=Radio
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling visibility of the radio messages box
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #; the hotkey used to display the radio messages
- #; Format:
- #;
- #; RadioMessagesHotKey = [ False, None, False, 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:
- #; RadioMessagesHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; RadioMessagesHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #;
- RadioMessagesHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ] # change the I to whatever you want
- #;######################################## Scopes ################################################
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Periscope water level indicators visibility on the attack and observation periscopes
- #VALUES=
- #DEFAULT=True
- #; are the periscope water level indicators displayed on the attack and obs scopes?
- #; change below to either True or False
- PeriscopeLevelSH5Visible = True
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Realistic torpedo launch (If you try to launch a torpedo that doesn't have it's torpedo door open then the door will automatically be opened first)
- #VALUES=
- #DEFAULT=True
- #; are the launching of torpedoes realistic? This means that if you try to launch a torpedo that doesn't have it's torpedo door open then the door will have to be opened first before the torpedo can be fired. For salvo shots this can mean that your shot can be screwed up if you don't have all the doors opened first
- #; change below to either True or False
- RealisticTorpedoFirings = True
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Lock/Break lock displays in the attack, observation, and UZO stations
- #VALUES=
- #DEFAULT=False
- #; The lock/break lock displays in the attack, obs, and UZO views. Set to True to enable them.
- #; change below to either True or False
- ShowLockBreakLock = False
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Show contact's class/name in attack, observation, and UZO stations
- #VALUES=
- #DEFAULT=False
- #; show the ship's name in the scope views?
- #; change below to either True or False
- DisplayShipNames = False
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Show contact spotted info on unlocked targets
- #VALUES=
- #DEFAULT=True
- #; show contact spotted info on unlocked target?
- #; change below to either True or False
- ContactSpottedInfoOnUnlockedTarget = True
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Enable charts when entering scope station (Attack, Obs, or UZO)
- #VALUES=
- #DEFAULT=False
- AutoEnableChartsOnScopeStation = False
- #[OPTION]
- #CATEGORY=Scopes
- #TYPE=0
- #DESCRIPTION=Disable charts when leaving scope station (Attack, Obs, or UZO)
- #VALUES=
- #DEFAULT=False
- AutoDisableChartsOnScopeStationLeave = False
- #;###################################### Time compression ########################################
- #[OPTION]
- #CATEGORY=Time compression
- #TYPE=6
- #DESCRIPTION=Time compression level at which the TCx on constant distance is enabled (this will change the time compression level to a pre-determined level when a contact gets inside a specified radius around the sub if the current time compression level is greater than or equal to this value)
- #VALUES=MIN|1
- #DEFAULT=1024
- #; the TC level at which the TCx on contact distance is enabled (this will change the TC level to a pre-determined level when a contact gets inside a specified radius around the sub if the current TC level is greater than or equal to this value)
- #; below in powers of 2 only!
- TCxOnContactDistanceEnabledTCLevel = 1024
- #[OPTION]
- #CATEGORY=Time compression
- #TYPE=2
- #DESCRIPTION=The radius around the sub to determine when to set time compression level to TCxOnContactDistanceTCLevel when time compression value is greater than 1
- #VALUES=MIN|0.0
- #DEFAULT=8000.0
- #; when at TC > 1 and TCxOnContactDistanceEnabled is enabled (True) then this is the radius around your sub to determine when to set TC level to TCxOnContactDistanceTCLevel
- #; below in meters
- TCxOnContactDistanceRadius = 8000.0
- #[OPTION]
- #CATEGORY=Time compression
- #TYPE=6
- #DESCRIPTION=Time compression level to set when contact is inside the TCxOnContactDistanceRadius
- #VALUES=MIN|1
- #DEFAULT=1
- #; the TC level to set when TCxOnContactDistanceEnabled is enabled (True) and contact is inside the TCxOnContactDistanceRadius
- #; below in powers of 2 only!
- TCxOnContactDistanceTCLevel = 1
- #;########################################## Fuel ################################################
- #[OPTION]
- #CATEGORY=Fuel
- #TYPE=2
- #DESCRIPTION=Most fuel efficient speed
- #VALUES=MIN|0.0
- #DEFAULT=7.5
- #; what is the most fuel efficient speed?
- MostFuelEfficientSpeed = 7.5
- #[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 = [ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ] # change the M to whatever you want. You can't use M!
- #;################################### TDC style (SH3/4/5 modes) #################################
- #;+++++++++++++++++++ TDC modes +++++++++++++++++++++
- #; Possible TDC modes:
- #;
- #; NOTDCDials - no dials
- #; TDCSpreadAngle - just the spread angle dial for salvo attacks
- #; TDCMinimalDials - minimal TDC dials
- #; TDCAllDials - all TDC dials
- #;
- NOTDCDials = 0
- TDCMinimalDials = 1
- TDCAllDials = 2
- TDCSpreadAngle = 3
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=5
- #DESCRIPTION=Attack scope TDC mode
- #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
- #DEFAULT=TDCAllDials
- #; the current TDC mode
- #; change below to either NOTDCDials, TDCSpreadAngle, TDCMinimalDials, or TDCAllDials
- AttackTDCMode = TDCAllDials
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=5
- #DESCRIPTION=Observation scope TDC mode
- #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
- #DEFAULT=TDCMinimalDials
- ObsTDCMode = TDCMinimalDials
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=5
- #DESCRIPTION=UZO TDC mode
- #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
- #DEFAULT=TDCSpreadAngle
- UZOTDCMode = TDCSpreadAngle
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Attack scope RAOBF enabled at game start
- #VALUES=
- #DEFAULT=False
- #; RAOBF enabled for each scope?
- #; change below to either True or False
- AttackRAOBFEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Observation scope RAOBF enabled at game start
- #VALUES=
- #DEFAULT=False
- ObsRAOBFEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=UZO RAOBF enabled at game start
- #VALUES=
- #DEFAULT=False
- UZORAOBFEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Attack scope Attack Disk enabled at game start
- #VALUES=
- #DEFAULT=False
- #; Attack Disk enabled for each scope?
- #; change below to either True or False
- AttackAttackDiskEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Observation scope Attack Disk enabled at game start
- #VALUES=
- #DEFAULT=False
- ObsAttackDiskEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=UZO Attack Disk enabled at game start
- #VALUES=
- #DEFAULT=False
- UZOAttackDiskEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Navigation map Attack Disk enabled at game start
- #VALUES=
- #DEFAULT=False
- NavMapAttackDiskEnabled = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Hide TDC dials when RAOBF is visible
- #VALUES=
- #DEFAULT=False
- #; are the TDC dials hidden when the RAOBF is visible?
- HideTDCDialsWhenUsingRAOBF = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Scope's periscope depth indicator scrolls out of view on mouse out and scrolls back into view on mouse in
- #VALUES=
- #DEFAULT=False
- #; does the depth indicator of the scopes in the top left scroll out of view when moused out and scroll back into view when moused in?
- ScopesDepthIndicatorScrolls = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=2
- #DESCRIPTION=The time delay before the periscope's depth indicator scrolls out of view on mouse out (only applies if ScopesDepthIndicatorScrolls is True)
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; if ScopesDepthIndicatorScrolls is enabled, this is the time delay before hiding the depth indicator when moused out:
- ScopesDepthIndicatorScrollsTD = 5.0
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=0
- #DESCRIPTION=Scope's torpedo box scrolls out of view on mouse out and scrolls back into view on mouse in
- #VALUES=
- #DEFAULT=False
- #; does the torpedo box of the scopes in the top left scroll out of view when moused out and scroll back into view when moused in?
- ScopesTorpedoBoxScrolls = False
- #[OPTION]
- #CATEGORY=TDC
- #TYPE=2
- #DESCRIPTION=The time delay before the scope's torpedo box scrolls out of view on mouse out (only applies if ScopesTorpedoBoxScrolls is True)
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; if ScopesTorpedoBoxScrolls is enabled, this is the time delay before hiding the torpedo box when moused out:
- ScopesTorpedoBoxScrollsTD = 5.0
- #;################################### For Dials - SH3 and SH4 UI Modes only ##################################
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=2
- #DESCRIPTION=Rate at which dials grow and shrink (in seconds)
- #VALUES=MIN|0.0
- #DEFAULT=0.10
- #;++++++++++++++ Dial zoom/unzoom animation speed +++++++++++++++
- #; rate at which dials grow and shrink (in seconds)
- #; default is 0.10 seconds
- DialsAnimationSpeed = 0.10
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=Throttle zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #;++++++++++++++ Base Zoom +++++++++++++++
- #; Base Zoom levels
- #; when MouseIn the dial will grow by this number
- #; default is 200
- BaseZoomThrottle = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=Speed zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #; default is 200
- BaseZoomSpeed = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=Heading zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #; default is 200
- BaseZoomHeading = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=Rudder zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #; default is 200
- BaseZoomRudder = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=260 Depth zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #; default is 200
- BaseZoomDepth260 = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=25 Depth zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=200
- #; default is 200
- BaseZoomDepth25 = 200
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=SH5 Enhanced Heading dial zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=400
- #; default is 400
- BaseZoomSH5EHeading = 400
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=SH5 Enhanced Rudder dial zoom factor on mouse in
- #VALUES=MIN|50
- #DEFAULT=400
- #; default is 400
- BaseZoomSH5ERudder = 400
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=Throttle dial can zoom
- #VALUES=
- #DEFAULT=True
- #;++++++++++++++ Can Zoom +++++++++++++++
- #; which dials can zoom
- #; change True to False to disable zoom on that dial
- #;
- #; set below to either True or False for each
- ThrottleCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=Speed dial can zoom
- #VALUES=
- #DEFAULT=True
- SpeedCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=Heading dial can zoom
- #VALUES=
- #DEFAULT=True
- HeadingCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=Rudder dial can zoom
- #VALUES=
- #DEFAULT=True
- RudderCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=260 depth dial can zoom
- #VALUES=
- #DEFAULT=True
- Depth260CanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=25 depth dial can zoom
- #VALUES=
- #DEFAULT=True
- Depth25CanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=SH5 Enhanced heading dial can zoom
- #VALUES=
- #DEFAULT=True
- SH5EHeadingCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=0
- #DESCRIPTION=SH5 Enhanced rudder dial can zoom
- #VALUES=
- #DEFAULT=True
- SH5ERudderCanZoom = True
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=When mouse into dial that is zoomable this offset is applied to the Y axis if image goes offscreen
- #VALUES=MIN|0
- #DEFAULT=10
- #;++++++++++++++ Offsets +++++++++++++++
- #; y offset adjustment when mouse in/out and image goes offscreen (BaseZoom - for dynamically repositioning dials)
- DialsBaseZoomOffsetYAdjustment = 10
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=When mouse into dial that is zoomable this offset is applied to the X axis if image goes offscreen
- #VALUES=MIN|0
- #DEFAULT=10
- #; x offset adjustment when mouse in/out and image goes offscreen (BaseZoom - for dynamically repositioning dials)
- DialsBaseZoomOffsetXAdjustment = 10
- #[OPTION]
- #CATEGORY=Dials
- #TYPE=3
- #DESCRIPTION=When mouse into SH5 Enhanced heading/rudder dial that is zoomable this offset is applied to the Y axis (max +- 100)
- #VALUES=MIN|-100,MAX|100
- #DEFAULT=0
- #; y offset adjustment for SH5 Enhanced heading/rudder dial. Maximum offset allowed is +-100 pixels
- SH5EHeadingRudderOffsetY = 0
- #;#################################### Automatics #####################################################
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically show clock when torpedo is fired
- #VALUES=
- #DEFAULT=False
- #; does the clock automatically show when a torpedo is fired?
- #; change below to either True or False
- AutoShowClockOnTorpFire = False
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically show clock when follow target enabled (it will auto hide itself if follow target cancelled and clock isn't called for)
- #VALUES=
- #DEFAULT=True
- #; Does the clock automatically show when follow target enabled (it will auto hide itself if follow target cancelled and clock isn't called for)?
- #; change below to either True or False
- AutoShowClockOnFollowTarget = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically order recharge mode upon surfacing
- #VALUES=
- #DEFAULT=True
- #; when surfacing does the game automatically order recharge mode?
- #; change below to either True or False
- AutomaticallyOrderRechargeModeUponSurfacing = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically order recharge mode when snorkel raised
- #VALUES=
- #DEFAULT=True
- #; when snorkel is raised and submerging does the game automatically order recharge mode?
- AutomaticallyOrderRechargeModeWhenSnorkeling = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically fully raise attack periscope when entering attack scope station
- #VALUES=
- #DEFAULT=False
- #; when entering the attack scope station does the scope fully raise automatically?
- #; change below to either True or False
- AutomaticallyRaiseAttackScope = False
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically fully lower attack periscope when leaving attack scope station
- #VALUES=
- #DEFAULT=True
- #; when leaving the attack periscope station does the scope automatically fully lower?
- #; change below to either True or False
- AutomaticallyFullyLowerAttackScope = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically fully lower observation periscope when leaving observation scope station
- #VALUES=
- #DEFAULT=True
- #; when leaving the obs scope station does the scope automatically fully lower?
- #; change below to either True or False
- AutomaticallyFullyLowerObsScope = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Navigator assists in determining AOB and speed of a target based on range readings
- #VALUES=
- #DEFAULT=True
- #; does the Navigator assist you in determing the AOB and Speed of a target based on range readings taken by you?
- #; change below to either True or False
- NavigatorAssistAOBSpeedCalcs = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically load fired torpedoes
- #VALUES=
- #DEFAULT=True
- #; is torpedo autoloading enabled?
- TorpedoAutoloadingEnabled = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=2
- #DESCRIPTION=Maximum speed allowed when snorkel raised
- #VALUES=MIN|0.0
- #DEFAULT=10.0
- #; What is the maximum speed allowed when the snorkel is raised?
- #; below is in knots
- MaxSpeedWhenSnorkelRaised = 10.0
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=2
- #DESCRIPTION=The regular time interval when entries will be made into the ship's journal denoting: Position (Lat and Long), Course, Weather, and whether following waypoints or not. Value is in hours.
- #VALUES=MIN|0.0
- #DEFAULT=6.0
- #; the regular time interval when entries will be made into the ship's journal denoting: Position (Lat and Long), Course, Weather, and whether following waypoints or not. Value is in hours. Specify 0.0 to disable
- #; enter a value below for the time period in hours
- #; specify 0.0 to disable reporting
- JournalEntryIntervalTime = 6.0
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=2
- #DESCRIPTION=The regular time interval when sub position, depth, speed, fuel, battery, co2, and o2 are written to journal (these are 'invisible' entries and will only be used outside of game for special features). Specify 0.0 to disable
- #VALUES=MIN|0.0
- #DEFAULT=1.0
- #; time interval when sub position, depth, speed, fuel, battery, co2, and o2 are written to journal (these are 'invisible' entries and will only be used outside of game). Specify 0.0 to disable
- #; below is in hours
- #; specify 0.0 to disable reporting
- JournalEntryWithSubsDataIntervalTime = 1.0
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=If surfaced and TCxOnContactDistanceEnabledTCLevel triggers a TC level change due to contact being within radius specified does the Watch Officer automatically report nearest contact?
- #VALUES=
- #DEFAULT=False
- WatchOfficerCheckForContactsOnTCxSet = False
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=0
- #DESCRIPTION=Automatically activate battery level when submerging and fuel level when surfacing
- #VALUES=
- #DEFAULT=True
- AutomaticallySwitchBatteryFuelLevels = True
- #[OPTION]
- #CATEGORY=Automatics
- #TYPE=2
- #DESCRIPTION=If AutomaticallySwitchBatteryFuelLevels is enabled (True) then this is the time delay (in seconds) before switching back to previously set level. Specify 0.0 to disable feature
- #VALUES=MIN|0.0
- #DEFAULT=2.0
- #; below is in seconds
- AutomaticallySwitchBackToBatteryFuelLevelTD = 2.0
- #;######################################## Real Navigation ############################################
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The max error in meters for the Navigator's calculation of current position (fix) using celestial navigation. It will be used as the -min value and max value of a random function. Only used in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=5000.0
- #; the error (expressed as decimal) for the Navigator's calculation of current position (fix) using celestial navigation (used in real navigation only). This is the max error in meters. It will be used as the -min value and max value of a random function
- #; below is an float value only! (in meters)
- NavCelestialMaxCalcFixError = 5000.0
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The minimum time it takes the Navigator to calculate the current position (fix). Only used in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=900.0
- #; the minimum time it takes the Navigator to calculate the current position (fix)
- #; below is in seconds
- NavCelestialCalcFixMinTime = 900.0
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The maximum time it takes the Navigator to calculate the current position (fix). Only used in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=2700.0
- #; the maximum time it takes the Navigator to calculate the current position (fix)
- #; below is in seconds
- NavCelestialCalcFixMaxTime = 2700.0
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=0
- #DESCRIPTION=Navigator show position on the maps after he calculates current position (plots a new navigation fix). Used only in real navigation
- #VALUES=
- #DEFAULT=True
- #; does navigator show position on the maps after he calculates current position (plots a new navigation fix)?
- #; change below to either True or False
- NavShowPositionOnMapsAfterCalc = True
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The time the Navigator shows the calculated position on the map if NavShowPositionOnMapsAfterCalc is True. Used only in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=20.0
- #; if NavShowPositionOnMapsAfterCalc enabled, how long does the navigator show the calculated position on the map?
- #; below in seconds
- NavShowPositionOnMapsAfterCalcTime = 20.0
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=3
- #DESCRIPTION=The max error (expressed as %) a dead-reckoning fix incurs based on distance between fixes. This value is fed into a random function as a -min value and max value. Used only in real navigation
- #VALUES=MIN|0
- #DEFAULT=15
- #; the max error (expressed as %) a dead-reckoning fix incurs based on distance between fixes (used in real navigation only). This value is fed into a random function as a -min value and max value
- NavDeadReckoningMaxCalcFixError = 15
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The minimum time it takes Navigator to plot position based on dead-reckoning. Used only in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=15.0
- #; minimum time it takes Navigator to plot position based on dead-reckoning
- #; below is a float value only! (in seconds)
- NavDeadReckoningMinCalcTime = 15.0
- #[OPTION]
- #CATEGORY=RealNav
- #TYPE=2
- #DESCRIPTION=The maximum time it takes Navigator to plot position based on dead-reckoning. Used only in real navigation
- #VALUES=MIN|0.0
- #DEFAULT=60.0
- #; maximum time it takes Navigator to plot position based on dead-reckoning
- #; below is a float value only! (in seconds)
- NavDeadReckoningMaxCalcTime = 60.0
- #;###################### Navigation fixes, Super marks, and Destroyed marks ###########################
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=7
- #DESCRIPTION=Hotkey for removing a mark on the map
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
- #; the hotkey used to remove a mark from the map
- DeleteMarksHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=7
- #DESCRIPTION=Hotkey for repositioning a mark on the map
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.C, False, False, False, False ]
- #; the hotkey used to reposition a mark on the map
- RepositionMarksHotKey = [ True, MenuKeyManagerWrapper.Keys.C, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=7
- #DESCRIPTION=Hotkey for editing text associated with a mark on the map
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.V, False, False, False, False ]
- #; the hotkey used to edit the mark text associated with the mark on the map
- EditMarksTextHotKey = [ True, MenuKeyManagerWrapper.Keys.V, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=7
- #DESCRIPTION=Hotkey for editing text associated with a mark on the map (keeping existing text)
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.V, True, False, False, False ]
- #; the hotkey used to edit the mark text associated with the mark on the map
- EditMarksTextKeepExistingHotKey = [ True, MenuKeyManagerWrapper.Keys.V, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=9
- #DESCRIPTION=Supermarks color and opacity (RGBA format)
- #VALUES=
- #DEFAULT=0xFFFFFFFF
- #; the super marks color and opacity (specified as RGBA format)
- #; default color is white 0xFFFFFF with 100% opacity FF
- SuperMarksColor = 0xFFFFFFFF
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=9
- #DESCRIPTION=Navigation fixes color and opacity (RGBA format)
- #VALUES=
- #DEFAULT=0xFFFFFFFF
- #; the navigation fixes color and opacity (specified as RGBA format)
- #; default color is white 0xFFFFFF with 100% opacity FF
- NavFixesColor = 0xFFFFFFFF
- #[OPTION]
- #CATEGORY=Marks
- #TYPE=9
- #DESCRIPTION=Destroyed marks color and opacity (RGBA format)
- #VALUES=
- #DEFAULT=0xB00000FF
- #; the destroyed marks color and opacity (specified as RGBA format)
- #; default color is medium red 0xB00000 with 100% opacity FF
- DestroyedMarksColor = 0xB00000FF
- #;########################################### Digital Clock ###########################################
- #[OPTION]
- #CATEGORY=Clock
- #TYPE=0
- #DESCRIPTION=Digital clock starts in local time at game start vice GMT time
- #VALUES=
- #DEFAULT=True
- #; does the digital clock start out reading local time or GMT time?
- #; change below to either True or False
- DigitalClockStartsInLocalTime = True
- #[OPTION]
- #CATEGORY=Clock
- #TYPE=6
- #DESCRIPTION=Clock visible when time compression greater than this value
- #VALUES=MIN|1
- #DEFAULT=1024
- #; Above this specified TC level the clock will be visible (levels are in powers of 2)
- AboveThisTCLevelShowClock = 1024
- #;########################################### SOAN ####################################################
- #[OPTION]
- #CATEGORY=SOAN
- #TYPE=0
- #DESCRIPTION=SOAN enabled
- #VALUES=
- #DEFAULT=True
- #; is SOAN visible in game?
- #; change below to either True or False
- SOANEnabled = True
- #[OPTION]
- #CATEGORY=SOAN
- #TYPE=0
- #DESCRIPTION=Automatically enable charts (if not enabled) and open SOAN to identified unit (WEPS-->Torpedo attack-->Identify target)
- #VALUES=
- #DEFAULT=False
- AutoEnableChartsOpenSOANToIdentifiedUnit = False
- #;################################## Automation #######################################################
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling Automation visibility
- #VALUES=
- #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
- #; the hotkey used to toggle the visibility of the Automation screen (can also be toggled using the 'gears' icon in top right lower bar)
- #; Format:
- #;
- #; AutomationHotKey = [ True, None, False, False, False, False ]
- #; True = enabled
- #; None = key used
- #; False = shift required
- #; False = control required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this without shift, ctrl, and alt required:
- #; AutomationHotKey = [ True, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; AutomationHotKey = [ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
- #;
- AutomationHotKey = [ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ] # change the Q to whatever you want
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=0
- #DESCRIPTION=Automation debugging enabled
- #VALUES=
- #DEFAULT=False
- #; Is Automation debugging enabled?
- AutomationDebuggingEnabled = False
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=0
- #DESCRIPTION=Automation start, stop, paused, loop, etc. messages displayed in the message box
- #VALUES=
- #DEFAULT=False
- #; Are Automation start, stop, paused, loop, etc. messages displayed in the message box?
- AutomationActionMessagesDisplayed = False
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=7
- #DESCRIPTION=Hotkey for Automation's hotkey 1
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #; the hotkey used to activate the script associated with Automation hotkey x (1-4)
- #; Format:
- #;
- #; AutomationScriptHotKeyx = [ True, None, False, False, False, False ]
- #; True = enabled
- #; None = key used
- #; False = shift required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this without shift, crtl, and alt required:
- #; AutomationScriptHotKeyx = [ True, MenuKeyManagerWrapper.Keys.J, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; AutomationScriptHotKeyx = [ False, MenuKeyManagerWrapper.Keys.J, False, False, False, False ]
- #;
- #; NOTE: set the ones using SHIFT first!
- #;
- AutomationScriptHotKey1 = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ] # change the None to whatever you want
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=7
- #DESCRIPTION=Hotkey for Automation's hotkey 2
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- AutomationScriptHotKey2 = [ False, None, False, False, False, False ] # change the None to whatever you want
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=7
- #DESCRIPTION=Hotkey for Automation's hotkey 3
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- AutomationScriptHotKey3 = [ False, None, False, False, False, False ] # change the None to whatever you want
- #[OPTION]
- #CATEGORY=Automation
- #TYPE=7
- #DESCRIPTION=Hotkey for Automation's hotkey 4
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- AutomationScriptHotKey4 = [ False, None, False, False, False, False ] # change the None to whatever you want
- #;################################## Time Delays ######################################################
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The time delay (in seconds) associated with opening torpedo tube door during realistic torpedo launch
- #VALUES=MIN|0.0
- #DEFAULT=7.5
- #; opening tube time delay for realistic torpedo launches (in seconds)
- RealisticOpenTubeTDBase = 7.5
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The time delay (in seconds) to account for heavy seas to prevent unnecessary switching of items (items that depend on whether submerged/surfaced to control state)
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; the time delay to account for heavy seas to prevent unnecessary switching of items (items that depend on whether submerged/surfaced to control state) (in seconds)
- WaterLevelTD = 5.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The time delay (in seconds) before checking to see if battery recharge needs to be ordered up when surfacing
- #VALUES=MIN|0.0
- #DEFAULT=180.0
- #; when surfacing, the time delay before checking to see if batteries need to be recharged and then automatic sending of the recharge order (in seconds)
- #; this value must be greater than WaterLevelTD or you will get an error!
- SwitchToRechargePropulsionTDBase = 180.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The time delay (in seconds) before automatic switching to standard propulsion when submerging (must be greater than WaterLevelTD)
- #VALUES=MIN|0.0
- #DEFAULT=180.0
- #; when submerging, the time delay before automatic switching to standard propulsion (in seconds):
- #; this value must be greater than WaterLevelTD or you will get an error!
- SwitchToStdPropulsionTDBase = 180.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The base time (in seconds) it takes the Navigator to compute the AOB and speed of a target from 2 range measurements
- #VALUES=MIN|0.0
- #DEFAULT=10.0
- #; the base time (in seconds) it takes the Navigator to compute the AOB and Speed of a target from 2 range measurements. There is a random amount added to this
- #; that is in the range (0, 1.0) * value (i.e. realtimedelay = NavCalcTimeAOBSpeedFromRangeMeasurementsBase + (Random * NavCalcTimeAOBSpeedFromRangeMeasurementsBase)
- NavCalcTimeAOBSpeedFromRangeMeasurementsBase = 10.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The base time (in seconds) it takes the Navigator to compute the speed of a target from time measurements
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; the base time (in seconds) it takes the Navigator to compute the Speed of a target from time measurements. There is a random amount added to this that is in the range
- #; (0, 1.0) * value (i.e. realtimedelay = NavCalcTimeSpeedFromTimeMeasurementsBase + (Random * NavCalcTimeSpeedFromTimeMeasurementsBase)
- NavCalcTimeSpeedFromTimeMeasurementsBase = 5.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The minimum base time (in seconds) to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is True
- #VALUES=MIN|0
- #DEFAULT=3.0
- #; the min and max base time to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is enabled:
- #; have to be int values!
- #; values are in seconds of time
- NewSpeedThrottleDelayMin = 3.0
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=0
- #DESCRIPTION=Delay incurred when new speed/throttle is requested (simulate crew response of answering ordered bells)
- #VALUES=
- #DEFAULT=False
- #; is a delay incurred between when new speed/throttle is requested and when activated (simulate crew response of answering ordered bells)?
- #; change below to either True or False
- DelayNewSpeedThrottleCommand = False
- #[OPTION]
- #CATEGORY=Time delays
- #TYPE=2
- #DESCRIPTION=The maximum base time (in seconds) to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is True
- #VALUES=MIN|0
- #DEFAULT=6.0
- NewSpeedThrottleDelayMax = 6.0
- #;#################################### Crash Dive (SH3/4/5 Modes) #####################################
- #[OPTION]
- #CATEGORY=Crash dive
- #TYPE=7
- #DESCRIPTION=Hotkey for crash dive
- #VALUES=
- #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
- #; the hotkey used for crash dive
- #; Format:
- #;
- #; CrashDiveKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; so if you wanted the crash dive hot key to be shift + P:
- #; CrashDiveKey = [ True, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
- #;
- #; if you didn't want to assign a hotkey for crash dive:
- #; CrashDiveKey = [ False, MenuKeyManagerWrapper.Keys.P, False, False, False, False ]
- CrashDiveKey = [ False, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Crash dive
- #TYPE=0
- #DESCRIPTION=Teleport on crash dive (If True and sub is submerged then no teleporting will take place)
- #VALUES=
- #DEFAULT=True
- #; teleport on crash dive? If enabled and you are currently submerged then no teleporting will take place
- #; change below to either True or False
- TeleportOnCrashDive = True
- #[OPTION]
- #CATEGORY=Crash dive
- #TYPE=2
- #DESCRIPTION=Time delay (in seconds) before crash dive order is given (simulates crew clearing the topside deck). If sub is submerged then time delay is ignored
- #VALUES=MIN|0.0
- #DEFAULT=20.0
- #; time interval to wait before giving the crash dive command (simulates crew clearing the topside deck) (this value is in seconds - i.e. 5.5 would be 5 and a half seconds). If submerged then there is no delay
- TeleportOnCrashDiveWaitTime = 20.0
- #[OPTION]
- #CATEGORY=Crash dive
- #TYPE=5
- #DESCRIPTION=Station to teleport to when crash diving (if TeleportOnCrashDive is True)
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT="TelToRadar"
- #; the station to teleport to when crash diving
- #; possible values are:
- #; "TelToObsScope" - teleport to obs scope
- #; "TelToAttackScope" - teleport to attack scope
- #; "TelToRadar" - telelport to radar station
- #; "TelToHydrophone" - teleport to hydrophone station
- #; "TelToCaptainsBed" - teleport to Captain's bed
- #; None - do not teleport
- CrashDiveTeleportToStation = "TelToRadar"
- #;#################################### Follow Target (SH3/5 Modes) ####################################
- #[OPTION]
- #CATEGORY=Follow target
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling follow target (when you have a target selected you can enable this to have the camera automatically follow the target as it moves.)
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #; the hotkey used to toggle follow target (when you have a target selected you can enable this to have the camera
- #; automatically follow the target as it moves.)
- #; Format:
- #;
- #; FollowSelectedTargetHotKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this:
- #; FollowSelectedTargetHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; FollowSelectedTargetHotKey = [ False, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
- #;
- FollowSelectedTargetHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ] # change the X to whatever you want
- #[OPTION]
- #CATEGORY=Follow target
- #TYPE=7
- #DESCRIPTION=Hotkey for increasing follow selected target offset
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, True, False, False, False ]
- #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
- #; the hotkeys used to increase/decrease follow selected target offset value
- IncreaseFollowSelectedTargetOffsetHotKey = [ True, MenuKeyManagerWrapper.Keys.E, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Follow target
- #TYPE=7
- #DESCRIPTION=Hotkey for decreasing follow selected target offset
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, True, False, False, False ]
- DecreaseFollowSelectedTargetOffsetHotKey = [ True, MenuKeyManagerWrapper.Keys.Q, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Follow target
- #TYPE=0
- #DESCRIPTION=When locking onto a new contact does follow selected target offset reset to 0?
- #VALUES=
- #DEFAULT=True
- FollowSelectedTargetOffsetResetOnNewLockedContact = True
- #;####################################### Hydro Follow Target #########################################
- #[OPTION]
- #CATEGORY=Hydro follow target
- #TYPE=2
- #DESCRIPTION=When the sonarman is ordered to follow a contact this is the time interval (in seconds) that he will make a log entry denoting the contact's bearing. Specify 0.0 to disable feature
- #VALUES=MIN|0.0
- #DEFAULT=300.0
- #; below is in seconds
- HydroFollowContactUpdateInterval = 300.0
- #[OPTION]
- #CATEGORY=Hydro follow target
- #TYPE=2
- #DESCRIPTION=When the sonarman is ordered to follow a contact and the delta bearing to sub exceeds this amount (in degrees) he makes a log entry. Specify 0.0 to disable feature
- #VALUES=MIN|0.0
- #DEFAULT=0.0
- #; below is in degrees
- HydroFollowContactDeltaBearing = 0.0
- #[OPTION]
- #CATEGORY=Hydro follow target
- #TYPE=2
- #DESCRIPTION=When the sonarman is ordered to follow nearest contact this is the sweep range (+- in degrees) from current hydrophone needle position
- #VALUES=MIN|1.0,MAX|45.0
- #DEFAULT=22.5
- #; below is in degrees
- HydroFollowNearestContactSweepRange = 22.5
- #[OPTION]
- #CATEGORY=Hydro follow target
- #TYPE=2
- #DESCRIPTION=When the sonarman is ordered to follow nearest contact this is the maximum range from the sub the contact can be (in meters)
- #VALUES=MIN|0.0,MAX|30000.0
- #DEFAULT=7500.0
- #; below is in degrees
- HydroFollowNearestContactMaxRange = 7500.0
- #;#################################### Message Box (SH3/4/5 modes) ####################################
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=2
- #DESCRIPTION=Message box minimum width
- #VALUES=MIN|180.0
- #DEFAULT=315.0
- #; controls the minimum width the messagebox is set to. On game start messagebox will be set to this width.
- #; minimum value for below is 180.0
- MessageBoxMinimumWidth = 315.0
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=2
- #DESCRIPTION=Message box width factor (controls maximum width of message box)
- #VALUES=MIN|1.0
- #DEFAULT=2.25
- #; these control the maximum height and width of the message box. They are multiplied by a set value so increment in small values!
- #; when messagebox is maximized, only the height will go to the max value. Width will stay at user dragged (or game start if hasn't been dragged) value
- #; they define the maximum size of the message box by: MessageBoxMinimumWidth * MessageBoxWidthFactor (width in pixels), PageDefaultHud_Feedback_BottomBar.Height * MessageBoxHeightFactor (height in pixels)
- #; minimum value for below is 1
- MessageBoxWidthFactor = 2.25 # stock is 2
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=2
- #DESCRIPTION=Message box height factor (controls maximum height of message box)
- #VALUES=MIN|1.0
- #DEFAULT=5.0
- #; minimum value for below is 1
- MessageBoxHeightFactor = 5.0 # stock is 3
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Message box starts expanded (vertically) on game start
- #VALUES=
- #DEFAULT=True
- #; this will cause the message box to start in the expanded mode (vertically) when the game starts
- #; change below to either True or False
- MessageBoxStartsExpanded = True
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Message box starts expanded (horizontally) on game start
- #VALUES=
- #DEFAULT=False
- #; this will cause the message box to start in widened mode (horizontally) when the game starts
- #; change below to either True or False
- MessageBoxStartsWidened = False
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Message box visible on game start
- #VALUES=
- #DEFAULT=True
- #; is the message box displayed at game start?
- #; change below to either True or False
- DisplayTheMessageBox = True
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling message box visibility (pressing shift + this hotkey toggles the message box between vertically minimized and maximized states)
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
- #; the hotkey used to toggle the messagebox visibility
- #; Format:
- #;
- #; DisplayTheMessageBoxHotKey = [ False, None, None, False, False, False ]
- #; False = enabled
- #; None = key used
- #; None = disabled (will always be disabled. Pressing shift with this hotkey toggles the messagebox height)
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; if you wanted to enable this:
- #; DisplayTheMessageBoxHotKey = [ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
- #;
- #; if you wanted to disable this:
- #; DisplayTheMessageBoxHotKey = [ False, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
- #;
- DisplayTheMessageBoxHotKey = [ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ] # change the L to whatever key you want
- #; to toggle the messagebox between minimized and maximized states use the hotkey used to toggle visibility with the shift key
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=6
- #DESCRIPTION=The minimum time compression level when message box is shown and maximized
- #VALUES=MIN|1
- #DEFAULT=32
- #; at what TC level do we ensure the messagebox is shown and maximized (it will show when the TC level is greater than or equal to this value)?
- #; below is in powers of 2 only!
- ShowMessageBoxAndExpandAtTCLevel = 32
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Restore message box to previous state when time compression level drops below ShowMessageBoxAndExpandAtTCLevel
- #VALUES=
- #DEFAULT=True
- #; when we drop below the ShowMessageBoxAndExpandAtTCLevel do we restore the messagebox?
- #; change below to either True or False
- RestoreMessageBoxAfterTCLevel = True
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=3
- #DESCRIPTION=Number of messages to keep in the message box. After this number is exceeded, older messages are removed from the list
- #VALUES=MIN|1
- #DEFAULT=20
- #; number of messages to keep in the messageboxlist. After this number is exceeded, the oldest message is removed from the list. Stock value is 20
- #; minimum value is 1
- NumberMessagesToKeepInMessageBox = 20
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Message box draggable
- #VALUES=
- #DEFAULT=False
- #; is the messagebox draggable?
- #; change below to either True or False
- MessageBoxIsDraggable = False
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=11
- #DESCRIPTION=The message box messages (defined in \data\Menu\menu.txt) that trigger TCxOnMessageBoxText
- #VALUES=
- #DEFAULT=[ 9200,9201,9202,9203,9204,9205,817,4800,4801,9206,9207,9208,9209,9210,9211,9212,7666,7667 ]
- #; if TCxOnMessageBoxText is enabled then it will trigger on the following numbers from menu.txt:
- #; NOTE: all must be placed on single line with no breaks for options exporter to work correctly!
- TCxOnMessageBoxTextNumbers = [ 9200,9201,9202,9203,9204,9205,817,4800,4801,9206,9207,9208,9209,9210,9211,9212,7666,7667 ]
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=6
- #DESCRIPTION=The time compression level set when TCxOnMessageBoxText triggers
- #VALUES=MIN|1
- #DEFAULT=1
- #; if TCxOnMessageBoxText is enabled and one of the texts from TCxOnMessageBoxTextNumbers is found, what TC level do we go to?
- TCxOnMessageBoxTextDesiredTCLevel = 1
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Set time compression level to level defined by TCxOnMessageBoxTextDesiredTCLevel when one of the messages defined in TCxOnMessageBoxTextNumbers is encountered
- #VALUES=
- #DEFAULT=False
- #; do we go to TCx (where x is defined by TCxOnMessageBoxTextDesiredTCLevel) when one of the following messages is posted in the messagebox?
- #; change below to either True or False
- TCxOnMessageBoxText = False
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Set time compression level to 1 on any message box text
- #VALUES=
- #DEFAULT=False
- #; do we go to TC1 on any messagebox text?
- #; change below to either True or False
- TC1OnAnyMessageBoxText = False
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=0
- #DESCRIPTION=Message box scrolls (hides when moused out and shows when moused in)
- #VALUES=
- #DEFAULT=False
- #; does the messagebox show when moused in and hide when moused out?
- #; change below to either True or False
- MessageBoxScrolls = False
- #[OPTION]
- #CATEGORY=Message box
- #TYPE=2
- #DESCRIPTION=The time delay before hiding the message box if MessageBoxScrolls is True
- #VALUES=
- #DEFAULT=5.0
- #; if MessageBoxScrolls is enabled, this is the time delay before hiding the messagebox when moused out:
- #; below is in seconds
- MessageBoxHideTD = 5.0
- #;#################################### Ships Journal ##################################################
- #[OPTION]
- #CATEGORY=Ships Journal
- #TYPE=1
- #DESCRIPTION=The Uboat's hull number (Note: you have to edit \Documents\SH5\data\cfg\playersettings.cfg file to make the uboat hull number there match the entry above. Find this line: UnitName=x-xxx and make it say the correct uboat hull number)
- #VALUES=
- #DEFAULT="U021"
- #; ship's hull number
- UboatHullNumber = "U021"
- #; you have to edit \Documents\SH5\data\cfg\playersettings.cfg file to make the uboat hull number there match the entry above. Find this line:
- #; UnitName=x-xxx
- #; make it say the correct uboat hull number
- #[OPTION]
- #CATEGORY=Ships Journal
- #TYPE=1
- #DESCRIPTION=The Uboat's captain name
- #VALUES=
- #DEFAULT="TheDarkWraith"
- #; ship's captain name
- UboatCaptainName = "TheDarkWraith"
- #[OPTION]
- #CATEGORY=Ships Journal
- #TYPE=10
- #DESCRIPTION=Ship's journal/message box mode at game start
- #VALUES=entries saved to ship's journal,entries displayed in ship's journal,entries displayed in messagebox,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
- #DEFAULT=0x7
- #; what mode is the ship's journal/messagebox at game start?
- #; this is a bit pattern value where:
- #; bit 0 defines whether entries are saved to ship's journal file
- #; bit 1 defines whether entries are displayed in ship's journal
- #; bit 2 defines whether entries are displayed in messagebox
- #; a value of 0x7 will show entries in messagebox and ship's journal and save entries to ship's journal file
- ShipsJournalLogging = 0x7
- #[OPTION]
- #CATEGORY=Ships Journal
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling ship's journal visibility
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, False, False, False, False ]
- #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
- #; the hotkey used to toggle the ship's journal visibility
- ShipsJournalHotKey = [ True, MenuKeyManagerWrapper.Keys.Q, False, False, False, False ]
- #;#################################### Mini-Map (aka TAI map) (SH3/4/5 modes) ######################################
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Activate waypoint tool when sub is clicked (Setting to False will totally disable ability to set waypoints)
- #VALUES=
- #DEFAULT=True
- #; change below to either True or False for each
- #;
- #; Activates the waypoint tool for setting waypoints when the sub is clicked. Setting to False will totally disable the user from setting any waypoints
- TAISetCourseWhenSubIsClicked = True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Activate waypoint tool when waypoint clicked
- #VALUES=
- #DEFAULT=True
- #; When a waypoint is clicked the waypoint tool will be activated allowing user to select new waypoints
- TAIActivateWaypointToolWhenWaypointClicked = True
- #; appears it doesn't work for when enabled it does nothing!
- TAIKeepPlayerLookingUp = False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show highlighted hydrophone sensor region around contact (medium-orange shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted hydrophone sensor region extending from the contact (medium-orange shading)
- TAIHydrophoneEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show highlighted sonar sensor region around contact (red shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted sonar sensor region extending from the contact (red shading)
- TAISonarEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show highlighted visual sensor region around contact (dark grey/black shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted visual sensor region extending from the contact (dark-grey/black shading)
- TAIVisualEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show highlighted radar sensor region around contact
- #VALUES=
- #DEFAULT=True
- #; ??
- TAIRadarEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show maximum sensor ranges
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIMaximumSensorRangesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show torpedo solution line
- #VALUES=
- #DEFAULT=True
- #; shows the torpedo solution line
- TAITorpedoSolutionEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Map scale enabled
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIMapScaleEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show map coordinates
- #VALUES=
- #DEFAULT=False
- #; latitude and longitude coordinates
- TAIMapCoordinatesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show highlighted view cone extending out from sub denoting current view/bearing
- #VALUES=
- #DEFAULT=True
- #; highlighted view cone extending out from sub denoting current view bearing
- TAICameraPositionAndOrientationEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show shell impact animated circles
- #VALUES=
- #DEFAULT=False
- #; draws an animated circle where the shell hit
- TAIShellHitEnabled = False # stock False
- #; causes CTD - DO NOT ENABLE!
- TAIKGridEnabled = False # stock False - DO NOT ENABLE AS CAUSES CTD!!
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show radar contacts
- #VALUES=
- #DEFAULT=True
- #; ??
- TAIRadarContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show visual contacts
- #VALUES=
- #DEFAULT=True
- #; shows visual contacts in the map
- TAIVisualContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show hydrophone contacts
- #VALUES=
- #DEFAULT=True
- #; shows the hydrophone contact lines to the contacts
- TAIHydrophoneContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Show sonar contacts
- #VALUES=
- #DEFAULT=True
- #; ??
- TAISonarContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=View cones enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIViewConesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Macro objectives enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIMacroObjectivesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Strategic objectives enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIStrategicObjectivesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Strategic units enabled (?)
- #VALUES=
- #DEFAULT=False
- #; Is enabled by page navigation map when it's needed
- TAIStrategicUnitsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Contact info text enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIContactInfoTextEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Torpedo solution line round numbers (1, 2, 3) enabled
- #VALUES=
- #DEFAULT=False
- #; the round numbers on the torpedo solution line (1, 2, 3, etc. )
- TAITorpedoImpactPointsEnabled = False # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Locations in TAI enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAILocationsInTAIEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Tactical map enabled
- #VALUES=
- #DEFAULT=True
- #; map mode for TAI is enabled
- TAIIsTacticalMapEnabled = True # stock True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Highlight sonar targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIHighlightSonarTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Highlight radar targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIHighlightRadarTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Highlight visual targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- TAIHighlightVisualTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Minefields enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- TAIMinefieldsEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Shallow waters enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- TAIShallowWatersEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Resupply ship enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- TAIResupplyShipEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Contact spotted info available (shows course, speed, datetime stamp, etc.)
- #VALUES=
- #DEFAULT=True
- #;
- #; is the contact spotted info available? (shows course, speed, datetime stamp, etc.)
- TAIContactSpottedEnabled = True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Selected contact GUI enabled (?)
- #VALUES=
- #DEFAULT=False
- #;
- #; others
- #; leave TAISelectedContactGUIEnabled as False
- TAISelectedContactGUIEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Contact parallel course button enabled
- #VALUES=
- #DEFAULT=True
- TAIParallelCourseButtonEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Contact intercept course button enabled
- #VALUES=
- #DEFAULT=True
- TAIInterceptCourseButtonEnabled = True # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Depth group highlight bitmap enabled (?)
- #VALUES=
- #DEFAULT=False
- #;
- DepthGroupHighlightBitmapEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Throttle highlight bitmap enabled (?)
- #VALUES=
- #DEFAULT=False
- ThrottleHighlightBitmapEnabled = False # stock False
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Switch to TAI mode when obs, attack, or UZO station actived (if False then will minimize when obs, attack, or UZO station activated)
- #VALUES=
- #DEFAULT=True
- #; should the mini-map switch to TAI mode when the obs, attack, or UZO station is selected?
- #; set to False to have the mini-map switch to minimized mode on obs, attack, or UZO station selected. When set to True
- #; the mini-map will set to TAI mode on those stations selected.
- #; change below to either True or False
- TAIModeOnScopeUZOStationSelected = True
- #; enums for TAIMode on game start (DO NOT CHANGE)
- TAIModeMinimized = 0
- TAIModeTAI = 1
- TAIModeMaximized = 2
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=5
- #DESCRIPTION=Mini-map mode at game start
- #VALUES=TAIModeMinimized,TAIModeTAI,TAIModeMaximized
- #DEFAULT=TAIModeTAI
- #; When game starts, what the status of the mini-map? Does user want it minimized, TAI mode, or maximized?
- #; change below to either Minimized, TAI, or Maximized
- TAIModeOnGameStart = TAIModeTAI
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=0
- #DESCRIPTION=Mini-map (TAI) enabled at game start
- #VALUES=
- #DEFAULT=True
- #; is the mini-map enabled (visible)? If set to False then the mini-map will not be visible at game start
- #; change below to either True or False
- TAIEnabledInGame = True
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=3
- #DESCRIPTION=Mini-map (TAI) initial width (applies to mini-map mode of TAIModeTAI)
- #VALUES=MIN|0
- #DEFAULT=490
- #; the mini-map has 3 states - minimized, TAI, and maximized. What is the TAI initial width and height?
- #; below are in screen pixels (Note: in order for map contacts info to show width must be >= 490 and height must be >= 200)
- TAIInitialWidth = 490
- #[OPTION]
- #CATEGORY=TAI Options
- #TYPE=3
- #DESCRIPTION=Mini-map (TAI) initial height (applies to mini-map mode of TAIModeTAI)
- #VALUES=MIN|0
- #DEFAULT=450
- TAIInitialHeight = 450
- #;#################################### Nav-Map (aka Navigation Map) (SH3/4/5 modes) ######################################
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Activate waypoint tool when sub is clicked (Setting to False will totally disable ability to set waypoints)
- #VALUES=
- #DEFAULT=True
- #; change below to either True or False for each
- #;
- #; Activates the waypoint tool for setting waypoints when the sub is clicked. Setting to False will totally disable the user from setting any waypoints
- NavSetCourseWhenSubIsClicked = True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Activate waypoint tool when waypoint clicked
- #VALUES=
- #DEFAULT=True
- #; When a waypoint is clicked the waypoint tool will be activated allowing user to select new waypoints
- NavActivateWaypointToolWhenWaypointClicked = True
- #; appears it doesn't work for when enabled it does nothing!
- NavKeepPlayerLookingUp = False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show highlighted hydrophone sensor region around contact (medium-orange shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted hydrophone sensor region extending from the contact (medium-orange shading)
- NavHydrophoneEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show highlighted sonar sensor region around contact (red shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted sonar sensor region extending from the contact (red shading)
- NavSonarEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show highlighted visual sensor region around contact (dark grey/black shading)
- #VALUES=
- #DEFAULT=True
- #; shows the highlighted visual sensor region extending from the contact (dark-grey/black shading)
- NavVisualEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show highlighted radar sensor region around contact
- #VALUES=
- #DEFAULT=True
- #; ??
- NavRadarEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show maximum sensor ranges
- #VALUES=
- #DEFAULT=False
- #; ??
- NavMaximumSensorRangesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show torpedo solution line
- #VALUES=
- #DEFAULT=True
- #; shows the torpedo solution line
- NavTorpedoSolutionEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Map scale enabled
- #VALUES=
- #DEFAULT=False
- #; ??
- NavMapScaleEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show map coordinates
- #VALUES=
- #DEFAULT=True
- #; latitude and longitude coordinates
- NavMapCoordinatesEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show highlighted view cone extending out from sub denoting current view/bearing
- #VALUES=
- #DEFAULT=False
- #; highlighted view cone extending out from sub denoting current view bearing
- NavCameraPositionAndOrientationEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show shell impact animated circles
- #VALUES=
- #DEFAULT=False
- #; draws an animated circle where the shell hit
- NavShellHitEnabled = False # stock False
- #; causes CTD - DO NOT ENABLE!
- NavKGridEnabled = False # stock False - DO NOT ENABLE AS CAUSES CTD!!
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show radar contacts
- #VALUES=
- #DEFAULT=True
- #; ??
- NavRadarContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show visual contacts
- #VALUES=
- #DEFAULT=True
- #; shows visual contacts in the map
- NavVisualContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show hydrophone contacts
- #VALUES=
- #DEFAULT=True
- #; shows the hydrophone contact lines to the contacts
- NavHydrophoneContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Show sonar contacts
- #VALUES=
- #DEFAULT=True
- #; ??
- NavSonarContactsEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=View cones enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavViewConesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Macro objectives enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavMacroObjectivesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Strategic objectives enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavStrategicObjectivesEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Strategic units enabled (?)
- #VALUES=
- #DEFAULT=False
- #; Is enabled by page navigation map when it's needed
- NavStrategicUnitsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Contact info text enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavContactInfoTextEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Torpedo solution line round numbers (1, 2, 3) enabled
- #VALUES=
- #DEFAULT=False
- #; the round numbers on the torpedo solution line (1, 2, 3, etc. )
- NavTorpedoImpactPointsEnabled = False # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Locations in NavMap enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- NavLocationsInTAIEnabled = True # stock True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Tactical map enabled
- #VALUES=
- #DEFAULT=False
- #; tactical map mode enabled
- NavIsTacticalMapEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Highlight sonar targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavHighlightSonarTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Highlight radar targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavHighlightRadarTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Highlight visual targets enabled (?)
- #VALUES=
- #DEFAULT=False
- #; ??
- NavHighlightVisualTargetsEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Minefields enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- NavMinefieldsEnabled = True # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Shallow waters enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- NavShallowWatersEnabled = True # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Resupply ship enabled (?)
- #VALUES=
- #DEFAULT=True
- #; ??
- NavResupplyShipEnabled = True # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Contact spotted info available (shows course, speed, datetime stamp, etc.)
- #VALUES=
- #DEFAULT=True
- #;
- #; is the contact spotted info available? (shows course, speed, datetime stamp, etc.)
- NavContactSpottedEnabled = True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Selected contact GUI enabled (?)
- #VALUES=
- #DEFAULT=False
- #;
- #; others
- #; leave NavSelectedContactGUIEnabled as False
- NavSelectedContactGUIEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Contact parallel course button enabled
- #VALUES=
- #DEFAULT=False
- NavParallelCourseButtonEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Contact intercept course button enabled
- #VALUES=
- #DEFAULT=False
- NavInterceptCourseButtonEnabled = False # stock False
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Display navigation fixes
- #VALUES=
- #DEFAULT=True
- NavDisplayNavFixes = True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Display supermarks
- #VALUES=
- #DEFAULT=True
- NavDisplaySuperMarks = True
- #[OPTION]
- #CATEGORY=NavMap Options
- #TYPE=0
- #DESCRIPTION=Display destroyed marks
- #VALUES=
- #DEFAULT=True
- NavDisplayDestroyedMarks = True
- #;#################################### Player Guidance (SH3/4/5 modes) ####################################
- #[OPTION]
- #CATEGORY=Player guidance
- #TYPE=0
- #DESCRIPTION=Player guidance events enabled
- #VALUES=
- #DEFAULT=False
- #; are player guidance events enabled? (are they shown)
- #; change below to either True or False
- PlayerGuidanceEnabled = False
- #;#################################### Player Objectives (SH3/4/5 modes) ###################################
- #[OPTION]
- #CATEGORY=Player objectives
- #TYPE=0
- #DESCRIPTION=Player objective events enabled
- #VALUES=
- #DEFAULT=False
- #; are player objective events enabled? (are they shown)
- #; change below to either True or False
- PlayerObjectivesEnabled = False
- #[OPTION]
- #CATEGORY=Player objectives
- #TYPE=0
- #DESCRIPTION=Player objectives enabled at game start during a tutorial mission (overrides PlayerObjectivesEnabled at game start)
- #VALUES=
- #DEFAULT=True
- #; if the mission is a tutorial, are Player Objectives enabled at game start? (overrides PlayerObjectivesEnabled at game start)
- #; change below to either True or False
- IfTutPlayerObjsEnabledAtGameStart=False
- #;#################################### XO TDC Dialog box (SH3/4/5 modes) ###################################
- #[OPTION]
- #CATEGORY=XO TDC
- #TYPE=0
- #DESCRIPTION=XO TDC dialog box visible at UZO, attack, and observation scope stations
- #VALUES=
- #DEFAULT=True
- #; is the XO and his dialog box visible on the UZO, attack, and obs scopes views?
- #; change below to either True or False
- XOTDCDialogEnabled = True
- #[OPTION]
- #CATEGORY=XO TDC
- #TYPE=0
- #DESCRIPTION=XO TDC dialog box allowed to pop up when you lock onto a target when disabled
- #VALUES=
- #DEFAULT=True
- #; if the XO and his dialog box are disabled, are they allowed to pop up when you lock onto a target?
- #; change below to either True or False
- XOTDCDialogAllowedToPop = True
- #[OPTION]
- #CATEGORY=XO TDC
- #TYPE=0
- #DESCRIPTION=XO TDC dialog box draggable (if True then feature of XO TDC dialog box dynamically repositioning based on messagebox visibility is disabled)
- #VALUES=
- #DEFAULT=False
- #; Is the XO TDC dialog box draggable?
- #; If the XO TDC dialog box is draggable then the feature of the XO TDC dialog box dynamically repositioning
- #; based on messagebox visibility is disabled.
- #; change below to either True or False
- XOTDCDialogDraggable = False
- #[OPTION]
- #CATEGORY=XO TDC
- #TYPE=0
- #DESCRIPTION=Manual targeting enforced (if True then the option to 'Turn TDC Off' is disabled and not visible)
- #VALUES=
- #DEFAULT=False
- #; is manual targeting enforced? If True then the option to 'Turn TDC Off' is disabled and not visible
- #; change below to either True or False
- XOTDCManualTargetingEnforced = False
- #;#################################### Item Notes ##########################################################
- #[OPTION]
- #CATEGORY=Item notes
- #TYPE=0
- #DESCRIPTION=Item notes enabled (item notes are the text that displays above the message box when you mouse over certain items)
- #VALUES=
- #DEFAULT=False
- #; this enables or disables the item notes from showing. The item notes is the text that displays above
- #; the message box when you mouse over certain items
- #;
- #; change below to either True or False
- ShowItemNotes = False
- #;################################## Officers and Orders Bars and Order Categories (SH3/5 modes) ##################################
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=Officers enabled (render the officer icons thus enabling orders to be given through clicking of order categories/orders)
- #VALUES=
- #DEFAULT=True
- #; are the officers enabled (are the officer icons allowed to be rendered)?
- #; change below to either True or False
- RenderOfficerIcons = True
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=10
- #DESCRIPTION=Officers to show in the officer's bar (if enabled)
- #VALUES=Chief Engineer,Navigator,Weapons,Sonarman,Radioman,Watch Officer,,,,,,,,,,,,,,,,,,,,,,,,,,
- #DEFAULT=0x3F
- #; which officers are shown?
- #; this is a bit pattern to show them (has to be in hex). You can use the Windows Calculator to configure the bit pattern and transform to Hex
- #; bit 0 = chief engineer
- #; bit 1 = navigation
- #; bit 2 = weapons
- #; bit 3 = sonar
- #; bit 4 = radio
- #; bit 5 = watch officer
- #;
- #; value of 0x3F will display all officers
- OfficersToRender = 0x3F
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=Officer bar pinned to the bottom of the screen (if you only want to be able to drag it horizontally then set to True)
- #VALUES=
- #DEFAULT=True
- #; is the officer bar pinned to the bottom of the screen (if you only want to be able to drag it horizontally then set to True)
- #; change below to either True or False
- OfficersPinnedToBottomOfScreen = True
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=Hide officer's order bar when order clicked
- #VALUES=
- #DEFAULT=False
- #; set to True to have order bar hide itself when order selected
- #; change below to either True or False
- HideOrderBarOnOrderClicked = False
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=Hide officer's order bar on key press
- #VALUES=
- #DEFAULT=False
- #; when user presses a key, does the order bar hide itself or stay visible?
- #; set to True to have order bar hide itself when key is pressed
- #; change below to either True or False
- HideOrderBarOnKeyPress = False
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=officer's order categories scroll out of view on mouse out and into view on mouse in
- #VALUES=
- #DEFAULT=False
- #; do the order categories scroll down when moused out and scroll up when moused in?
- #; set to True to have the order categories scroll
- #; change below to either True or False
- OrderCategoriesScroll = False
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=officer's scroll out of view on mouse out and into view on mouse in
- #VALUES=
- #DEFAULT=False
- #; do the officers scroll down when moused out and scroll up when moused in?
- #; change below to either True or False
- OfficersScroll = False
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=2
- #DESCRIPTION=The time delay before officer's scroll out of view on mouse out when OfficersScroll is True
- #VALUES=MIN|0.0
- #DEFAULT=5.0
- #; if OfficersScroll is enabled, this is the time delay before hiding the officers when moused out:
- #; below is in seconds
- OfficersHideTD = 5.0
- #; allow debug popups for debugging wounded officers not changing their icons to wounded
- #; If you enable the debugging of this you need to ensure that your \My Documents\SH5\data\cfg\main.cfg file is setup correctly:
- #; find this section and ensure that it's setup this way:
- #;
- #; [DEVELOPING]
- #; Modding=Yes
- #; MenuEditor=Yes
- #; DebugScripts=Yes
- #;
- #; change below to either True or False
- WoundedOfficersDebugging = False
- #[OPTION]
- #CATEGORY=Officers
- #TYPE=0
- #DESCRIPTION=Navigator's order 'Report fix (lat and long)' displays the lat and long as degrees
- #VALUES=
- #DEFAULT=True
- #; does the Navigator's order 'Report fix (lat and long)' display the lat and long as degrees?
- #; change below to either True or False
- NavReportFixAsDegrees = True
- #;##################################### Teleporting ##############################################
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to observation periscope station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- #; the hotkeys assigned to the teleport commands
- #;
- #; Format:
- #;
- #; TeleportToObsScope = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; so if you wanted the teleport to obs scope hot key to be shift + T:
- #; TeleportToObsScope = [ True, MenuKeyManagerWrapper.Keys.T, True, False, False, False ]
- #;
- #; if you didn't want to assign a hotkey for teleport to obs scope:
- #; TeleportToObsScope = [ False, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
- #;
- TeleportToObsScope = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to attack periscope station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToAttackScope = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to UZO station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToUZO = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to radar station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToRadar = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to hydrophone station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToHydrophone = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to deckgun station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToDeckGun = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for teleporting to flakgun station
- #VALUES=
- #DEFAULT=[ False, None, False, False, False, False ]
- TeleportToFlakGun = [ False, None, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling the visibility of the teleporting bar
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
- #; the hotkey used to bring up the Teleporting order bar
- #; Format:
- #;
- #; DisplayTeleportingOrderBarKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; so if you wanted the teleport to obs scope hot key to be shift + T:
- #; DisplayTeleportingOrderBarKey = [ True, MenuKeyManagerWrapper.Keys.T, True, False, False, False ]
- #;
- #; if you didn't want to assign a hotkey for teleport to obs scope:
- #; DisplayTeleportingOrderBarKey = [ False, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
- #;
- DisplayTeleportingOrderBarKey = [ True, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=0
- #DESCRIPTION=If teleported to observation or attack scope station and you leave the station teleport back to bridge
- #VALUES=
- #DEFAULT=True
- #; if teleported to obs or attack scope and you leave the station, do you teleport back to bridge?
- #; change below to either True or False
- ObsAndAttackReturnToBridge = True
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=0
- #DESCRIPTION=Pressing the attack scope's fully lower periscope button causes player to leave station and return to bridge
- #VALUES=
- #DEFAULT=False
- #; attack scope's fully lower button causes you to leave station and return to bridge?
- #; change below to either True or False
- AttackFullyLowerButtonLeavesStationForBridge = False
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=5
- #DESCRIPTION=Station to teleport to when Dive icon is pressed
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT=None
- #; teleporting on the depth buttons
- #; possible values are:
- #; "TelToObsScope" - teleport to obs scope
- #; "TelToAttackScope" - teleport to attack scope
- #; "TelToRadar" - telelport to radar station
- #; "TelToHydrophone" - teleport to hydrophone station
- #; "TelToCaptainsBed" - teleport to Captain's bed
- #; None - do not teleport anywhere
- #;
- #; the dive button
- DiveTeleportToStation = None
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=5
- #DESCRIPTION=Station to teleport to when Periscope depth icon is pressed
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT=None
- #; the periscope depth button
- PeriscopeDepthTeleportToStation = None
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=5
- #DESCRIPTION=Station to teleport to when Snorkel depth icon is pressed
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT=None
- #; snorkel depth button
- SnorkelDepthTeleportToStation = None
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=5
- #DESCRIPTION=Station to teleport to when Emergency surface icon is pressed
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT=None
- #; emergency surface button
- EmergencySurfaceTeleportToStation = None
- #[OPTION]
- #CATEGORY=Teleporting
- #TYPE=5
- #DESCRIPTION=Station to teleport to when Surface icon is pressed
- #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
- #DEFAULT=None
- #; the surface button
- SurfaceDepthTeleportToStation = None
- #;####################################### Contact Spotted ########################################
- MMDDYYTimeFormat = 0
- DDMMYYTimeFormat = 1
- MMDDYYMilitaryTimeFormat = 2
- DDMMYYMilitaryTimeFormat = 3
- #[OPTION]
- #CATEGORY=Contact spotted
- #TYPE=5
- #DESCRIPTION=Format to display the game's date and time
- #VALUES=MMDDYYTimeFormat,DDMMYYTimeFormat,MMDDYYMilitaryTimeFormat,DDMMYYMilitaryTimeFormat
- #DEFAULT=MMDDYYMilitaryTimeFormat
- #; enum of the available date time formats
- #;
- ContactDateTimeStampFormat = MMDDYYMilitaryTimeFormat
- #;######################################## Charts ################################################
- #[OPTION]
- #CATEGORY=Charts
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling the visibility of the charts (and SOAN)
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, False, False, False, False ]
- #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
- #; the hotkey used to toggle the charts (and thus SOAN) visibility
- ChartsHotKey = [ True, MenuKeyManagerWrapper.Keys.E, False, False, False, False ]
- #[OPTION]
- #CATEGORY=Charts
- #TYPE=0
- #DESCRIPTION=Does user chart's category section start expanded?
- #VALUES=
- #DEFAULT=False
- UserChartsCategoriesStartExpanded = False
- #[OPTION]
- #CATEGORY=Charts
- #TYPE=0
- #DESCRIPTION=Does user chart's charts section start expanded?
- #VALUES=
- #DEFAULT=False
- UserChartsChartsStartExpanded = False
- #;#################################### others MODs ###############################################
- #[OPTION]
- #CATEGORY=emtguf
- #TYPE=0
- #DESCRIPTION=emtguf's periscope rework enabled (adds support for his mod)
- #VALUES=
- #DEFAULT=False
- #; emtguf's periscope rework enabled (adds support for his mod)
- #; change below to either True or False
- emtgufPeriscopeReworkEnabled = False
- #[OPTION]
- #CATEGORY=Chalkboard
- #TYPE=7
- #DESCRIPTION=Hotkey for toggling the visibility of otto's chalkboard
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
- #;+-------------------------------------- ottos chalkboard --------------------------------------
- #; the hotkey used to bring up ottos chalkboard
- #; Format:
- #;
- #; ShowChalkBoardHotKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; so if you wanted to show the chalkboard and hot key to be shift + B:
- #; ShowChalkBoardHotKey = [ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
- #;
- #; if you didn't want to assign a hotkey for ottos chalkboard:
- #; ShowChalkBoardHotKey = [ False, MenuKeyManagerWrapper.Keys.B, False, False, False, False ]
- #;
- ShowChalkBoardHotKey = [ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Chalkboard
- #TYPE=7
- #DESCRIPTION=Hotkey for increasing chalkboard count in otto's chalkboard mod
- #VALUES=
- #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
- #; the hotkey used to increase the chalkboard count
- #; Format:
- #;
- #; IncreaseChalkBoardCountHotKey = [ False, None, False, False, False, False ]
- #; False = enabled
- #; None = key used
- #; False = shift key required
- #; False = ctrl required
- #; False = alt required
- #; False = handled
- #;
- #; so if you wanted the increase chalkboard count hot key to be shift + I:
- #; IncreaseChalkBoardCountHotKey = [ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
- #;
- #; if you didn't want to assign a hotkey for ottos chalkboard:
- #; IncreaseChalkBoardCountHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
- #;
- IncreaseChalkBoardCountHotKey = [ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
- #[OPTION]
- #CATEGORY=Chalkboard
- #TYPE=4
- #DESCRIPTION=Message to display on the chalkboard
- #VALUES=COUNT|3
- #DEFAULT=[ "Hier ist ein U-Boat Cocktail!!", "ChalkBoard Tally", "edit your favorite" ]
- #; the message displayed on the chalkboard
- #; you have to use all 3 messages or you will get error!
- #; if you want one line to not have a message then use ""
- #; NOTE: all must be placed on single line with no breaks for options exporter to work correctly!
- OttosChalkBoardMessage = [ "Hier ist ein U-Boat Cocktail!!", "ChalkBoard Tally", "edit your favorite" ]
- #;####################################### Debugging ####################################
- #; for Debugging use only! Do not use!
- #;
- DisplaySapiensKey = MenuKeyManagerWrapper.Keys.Key3
- DisplayKeyPressedKey = MenuKeyManagerWrapper.Keys.Key4
- DisplayKeyReleasedKey = MenuKeyManagerWrapper.Keys.Key5
- DisplayCurrentStationsKey = MenuKeyManagerWrapper.Keys.Key6
- DisplayActiveStationKey = MenuKeyManagerWrapper.Keys.Key7
- DisplayActiveCameraKey = MenuKeyManagerWrapper.Keys.Key8
- ToggleDisplaySubmarineCommandsKey = MenuKeyManagerWrapper.Keys.Key9
- ToggleDisplaySubmarineDelayedCommandsKey = MenuKeyManagerWrapper.Keys.Key0
- DisplayMouseData = MenuKeyManagerWrapper.Keys.Key2
- #;######################################################################################
- #END USER OPTIONS
- #; DO NOT CHANGE ANYTHING BELOW!!
- #;####################################### Accessors ############################################
- SnorkelEnabled = True
- tdwsound = None
- tdwmouse = None
- tdwsoan = None
- CrashDepth = 150
- DamageControlTeamActive = False
- SinglePlayerMode = False
- BitmapIndex_NotAvailable = 0
- BitmapIndex_NotSelected = 1
- BitmapIndex_Selected = 2
- BitmapIndex_MouseOver = 3
- FollowSelectedTargetWithCamera = False
- AttackPeriscopeLevelSH5Handle = None
- ObsPeriscopeLevelSH5Handle = None
- AllowedToSelectTarget = False
- AllowedToPhotographTarget = False
- SilentRunning = False
- SnorkelRaised = False
- BattlestationsActivated = False
- SubIsUnderwater = False
- ShowNavMapTDC = False
- ShipsJournal = []
- RadioMessages = None
- IgnoreNewLogMessages = True
- GameStartDate = None
- SH5InstallPath = None
- UserOptionsFilePathname = "data\\Scripts\\Menu\\TheDarkWraithUserOptions.py"
- ShipsJournalPath = "Logs\\"
- ShipsJournalFile = None
- ShipsJournalChanged = False
- TutorialsPath = "data\\Tutorials"
- TutorialToStart = None
- TutorialMissionName = None
- AutomationPath = "data\\Automation"
- MagicString = "TheDarkWraithSH5_new7"
- SelectedTorpTubes = [ 0 ]
- TorpDoorsStatus = [ False, False, False, False, False, False ]
- TorpDoorsEnabled = [ True, True, True, True, True, True ]
- SH5EHeadingRudderDialVisible = False
- CurrentlySelectedTube = 0
- InSalvoMode = False
- RealisticTorpFiringInProgress = False
- TDCIsOn = False
- CrewDialogLines = None
- Automation = None
- AutomationIDForTutorial = None
- TimerID_UpdateTutorial = 975316316
- RadarOneSweep = 0
- RadarContinuousSweep = 1
- RadarConstantBearing = 2
- RadarSweepMode = RadarConstantBearing
- #
- RadarIsOn = 0
- RadarIsOff = 1
- RadarMode = RadarIsOff
- #
- RadarShortRange = 0
- RadarMediumRange = 1
- RadarRangeMode = RadarShortRange
- #
- WatchCrewMode = 0
- ManDeckGunMode = 1
- ManFlakGunMode = 2
- ManDeckAndFlakGunMode = 3
- CrewOnDeckMode = WatchCrewMode
- #
- DGunFireModeHold = 0
- DGunFireModeFireAtWill = 1
- DGunFireMode = DGunFireModeHold
- #
- DGunRangeModeShort = 0
- DGunRangeModeMedium = 1
- DGunRangeModeLong = 2
- DGunRangeMode = DGunRangeModeShort
- #
- DGunAimModeCmdDeck = 0
- DGunAimModeWeapons = 1
- DGunAimModeWaterline = 2
- DGunAimModeHull = 3
- DGunAimMode = DGunAimModeWaterline
- #
- AAGunFireModeHold = 0
- AAGunFireModeFireAtWill = 1
- AAGunFireMode = AAGunFireModeHold
- #
- AAGunRangeModeShort = 0
- AAGunRangeModeMedium = 1
- AAGunRangeModeLong = 2
- AAGunRangeMode = AAGunRangeModeShort
- #
- AAGunPriorityModeFighters = 0
- AAGunPriorityModeBombers = 1
- AAGunPriorityModeAnyAircraft = 2
- AAGunPriorityMode = AAGunPriorityModeAnyAircraft
- #
- AAGunAimModeClosingTargets = 0
- AAGunAimModeAnyTarget = 1
- AAGunAimMode = AAGunAimModeAnyTarget
- #
- RealNavigation = False
- subscurrentpositionvisible = False
- #
- navigationfixes = []
- settingnavmapmarker = False
- markshavekeyboard = False
- navfixrepositioning = None
- navfixestocreate = None
- timezonemodifier = 0
- #
- supermarks = []
- settingsupermark = False
- supermarkrepositioning = None
- supermarkstocreate = None
- #
- destroyedmarks = []
- #
- SpeechEngineFound = False
- timeislocaltime = False
- #
- tdwdestroyedmarks = None
- #
- hydrofollowcontact = None
- TimerID_HydroFollowContactBearing = 597031054
- TimerID_HydroFollowContactDeltaBearing = 597031055
- #
- # electric propulsion only
- ElectricsOnly = False
- #
- # using stadimeter as sextant
- sextantactive = False
- def GetPatchDecksAwashEnabled():
- global PatchDecksAwashEnabled
- return PatchDecksAwashEnabled
- def GetDecksAwashDepth():
- global DecksAwashDepth
- return DecksAwashDepth
- def GetPatchIndependentEngineControlsEnabled():
- global PatchIndependentEngineControlsEnabled
- return PatchIndependentEngineControlsEnabled
- def GetIndependentEnginesGameUpdateHotKey():
- global IndependentEnginesGameUpdateHotKey
- return IndependentEnginesGameUpdateHotKey
- def GetCrashDepth():
- global CrashDepth
- return abs( int( CrashDepth ) )
- def GetDamageControlTeamActive():
- global DamageControlTeamActive
- return DamageControlTeamActive
- def SetDamageControlTeamActive( value ):
- global DamageControlTeamActive
- DamageControlTeamActive = value
- def GetSnorkelEnabled():
- global SnorkelEnabled
- return SnorkelEnabled
- def SetSnorkelEnabled( value ):
- global SnorkelEnabled
- SnorkelEnabled = value
- def GetUIStyle():
- global UIStyle
- return UIStyle
- def GetHeadingBarIncreaseHeadingKey():
- global HeadingBarIncreaseHeadingKey
- return HeadingBarIncreaseHeadingKey
- def GetHeadingBarDecreaseHeadingKey():
- global HeadingBarDecreaseHeadingKey
- return HeadingBarDecreaseHeadingKey
- def GetHeadingBarUserDelay():
- global HeadingBarUserDelay
- return HeadingBarUserDelay
- def GetHeadingRudderKey():
- global HeadingRudderKey
- return HeadingRudderKey
- def GetIntegrateLevels():
- global IntegrateLevels
- return IntegrateLevels
- def GetFollowSelectedTargetHotKey():
- global FollowSelectedTargetHotKey
- return FollowSelectedTargetHotKey
- def GetIncreaseFollowSelectedTargetOffsetHotKey():
- global IncreaseFollowSelectedTargetOffsetHotKey
- return IncreaseFollowSelectedTargetOffsetHotKey
- def GetDecreaseFollowSelectedTargetOffsetHotKey():
- global DecreaseFollowSelectedTargetOffsetHotKey
- return DecreaseFollowSelectedTargetOffsetHotKey
- def GetFollowSelectedTargetOffsetResetOnNewLockedContact():
- global FollowSelectedTargetOffsetResetOnNewLockedContact
- return FollowSelectedTargetOffsetResetOnNewLockedContact
- def GetNomographVisibleOnMiniMapHotKey():
- global NomographVisibleOnMiniMapHotKey
- return NomographVisibleOnMiniMapHotKey
- def GetToolHelperOnAtGameStart():
- global ToolHelperOnAtGameStart
- return ToolHelperOnAtGameStart
- def GetTeleportOnCrashDive():
- global TeleportOnCrashDive
- return TeleportOnCrashDive
- def GetTeleportOnCrashDiveWaitTime():
- global TeleportOnCrashDiveWaitTime
- return TeleportOnCrashDiveWaitTime
- def GetCrashDiveTeleportToStation():
- global CrashDiveTeleportToStation
- return CrashDiveTeleportToStation
- def GetPeriscopeDepthTeleportToStation():
- global PeriscopeDepthTeleportToStation
- return PeriscopeDepthTeleportToStation
- def GetSnorkelDepthTeleportToStation():
- global SnorkelDepthTeleportToStation
- return SnorkelDepthTeleportToStation
- def GetEmergencySurfaceTeleportToStation():
- global EmergencySurfaceTeleportToStation
- return EmergencySurfaceTeleportToStation
- def GetSurfaceDepthTeleportToStation():
- global SurfaceDepthTeleportToStation
- return SurfaceDepthTeleportToStation
- def GetTC1OnNewRadioNavMapContact():
- global TC1OnNewRadioNavMapContact
- return TC1OnNewRadioNavMapContact
- def SetTC1OnNewRadioNavMapContact( value ):
- global TC1OnNewRadioNavMapContact
- TC1OnNewRadioNavMapContact = value
- def GetNightFiltersEnabled():
- global NightFiltersEnabled
- return NightFiltersEnabled
- def GetRenderOfficerIcons():
- global RenderOfficerIcons
- return RenderOfficerIcons
- def GetOfficersToRender():
- global OfficersToRender
- return OfficersToRender
- def GetAttackTDCMode():
- global AttackTDCMode
- return AttackTDCMode
- def SetAttackTDCMode( value ):
- global AttackTDCMode
- AttackTDCMode = value
- def GetObsTDCMode():
- global ObsTDCMode
- return ObsTDCMode
- def SetObsTDCMode( value ):
- global ObsTDCMode
- ObsTDCMode = value
- def GetUZOTDCMode():
- global UZOTDCMode
- return UZOTDCMode
- def SetUZOTDCMode( value ):
- global UZOTDCMode
- UZOTDCMode = value
- def GetDialsAnimationSpeed():
- global DialsAnimationSpeed
- return DialsAnimationSpeed
- def GetBaseZoomThrottle():
- global BaseZoomThrottle
- return BaseZoomThrottle
- def GetBaseZoomSpeed():
- global BaseZoomSpeed
- return BaseZoomSpeed
- def GetBaseZoomHeading():
- global BaseZoomHeading
- return BaseZoomHeading
- def GetBaseZoomRudder():
- global BaseZoomRudder
- return BaseZoomRudder
- def GetBaseZoomDepth260():
- global BaseZoomDepth260
- return BaseZoomDepth260
- def GetBaseZoomDepth25():
- global BaseZoomDepth25
- return BaseZoomDepth25
- def GetBaseZoomSH5EHeading():
- global BaseZoomSH5EHeading
- return BaseZoomSH5EHeading
- def GetBaseZoomSH5ERudder():
- global BaseZoomSH5ERudder
- return BaseZoomSH5ERudder
- def GetThrottleCanZoom():
- global ThrottleCanZoom
- return ThrottleCanZoom
- def GetSpeedCanZoom():
- global SpeedCanZoom
- return SpeedCanZoom
- def GetHeadingCanZoom():
- global HeadingCanZoom
- return HeadingCanZoom
- def GetRudderCanZoom():
- global RudderCanZoom
- return RudderCanZoom
- def GetDepth260CanZoom():
- global Depth260CanZoom
- return Depth260CanZoom
- def GetDepth25CanZoom():
- global Depth25CanZoom
- return Depth25CanZoom
- def GetSH5EHeadingCanZoom():
- global SH5EHeadingCanZoom
- return SH5EHeadingCanZoom
- def GetSH5ERudderCanZoom():
- global SH5ERudderCanZoom
- return SH5ERudderCanZoom
- def GetDialsBaseZoomOffsetYAdjustment():
- global DialsBaseZoomOffsetYAdjustment
- return DialsBaseZoomOffsetYAdjustment
- def GetDialsBaseZoomOffsetXAdjustment():
- global DialsBaseZoomOffsetXAdjustment
- return DialsBaseZoomOffsetXAdjustment
- def GetSH5EHeadingRudderOffsetY():
- global SH5EHeadingRudderOffsetY
- return SH5EHeadingRudderOffsetY
- def GetMessageBoxMinimumWidth():
- global MessageBoxMinimumWidth
- return MessageBoxMinimumWidth
- def SetMessageBoxMinimumWidth( value ):
- global MessageBoxMinimumWidth
- MessageBoxMinimumWidth = value
- def GetMessageBoxWidthFactor():
- global MessageBoxWidthFactor
- return MessageBoxWidthFactor
- def SetMessageBoxWidthFactor( value ):
- global MessageBoxWidthFactor
- MessageBoxWidthFactor = value
- def GetMessageBoxHeightFactor():
- global MessageBoxHeightFactor
- return MessageBoxHeightFactor
- def SetMessageBoxHeightFactor( value ):
- global MessageBoxHeightFactor
- MessageBoxHeightFactor = value
- def GetMessageBoxStartsExpanded():
- global MessageBoxStartsExpanded
- return MessageBoxStartsExpanded
- def GetMessageBoxStartsWidened():
- global MessageBoxStartsWidened
- return MessageBoxStartsWidened
- def GetDisplayTheMessageBox():
- global DisplayTheMessageBox
- return DisplayTheMessageBox
- def SetDisplayTheMessageBox( value ):
- global DisplayTheMessageBox
- DisplayTheMessageBox = value
- def GetDisplayTheMessageBoxHotKey():
- global DisplayTheMessageBoxHotKey
- return DisplayTheMessageBoxHotKey
- def GetShowMessageBoxAndExpandAtTCLevel():
- global ShowMessageBoxAndExpandAtTCLevel
- return ShowMessageBoxAndExpandAtTCLevel
- def SetShowMessageBoxAndExpandAtTCLevel( value ):
- global ShowMessageBoxAndExpandAtTCLevel
- ShowMessageBoxAndExpandAtTCLevel = value
- def GetRestoreMessageBoxAfterTCLevel():
- global RestoreMessageBoxAfterTCLevel
- return RestoreMessageBoxAfterTCLevel
- def GetTAISetCourseWhenSubIsClicked():
- global TAISetCourseWhenSubIsClicked
- return TAISetCourseWhenSubIsClicked
- def SetTAISetCourseWhenSubIsClicked( value ):
- global TAISetCourseWhenSubIsClicked
- TAISetCourseWhenSubIsClicked = value
- def GetTAIActivateWaypointToolWhenWaypointClicked():
- global TAIActivateWaypointToolWhenWaypointClicked
- return TAIActivateWaypointToolWhenWaypointClicked
- def SetTAIActivateWaypointToolWhenWaypointClicked( value ):
- global TAIActivateWaypointToolWhenWaypointClicked
- TAIActivateWaypointToolWhenWaypointClicked = value
- def GetTAIKeepPlayerLookingUp():
- global TAIKeepPlayerLookingUp
- return TAIKeepPlayerLookingUp
- def SetTAIKeepPlayerLookingUp( value ):
- global TAIKeepPlayerLookingUp
- TAIKeepPlayerLookingUp = value
- def GetTAIHydrophoneEnabled():
- global TAIHydrophoneEnabled
- return TAIHydrophoneEnabled
- def SetTAIHydrophoneEnabled( value ):
- global TAIHydrophoneEnabled
- TAIHydrophoneEnabled = value
- def GetTAISonarEnabled():
- global TAISonarEnabled
- return TAISonarEnabled
- def SetTAISonarEnabled( value ):
- global TAISonarEnabled
- TAISonarEnabled = value
- def GetTAIVisualEnabled():
- global TAIVisualEnabled
- return TAIVisualEnabled
- def SetTAIVisualEnabled( value ):
- global TAIVisualEnabled
- TAIVisualEnabled = value
- def GetTAIRadarEnabled():
- global TAIRadarEnabled
- return TAIRadarEnabled
- def SetTAIRadarEnabled( value ):
- global TAIRadarEnabled
- TAIRadarEnabled = value
- def GetTAIMaximumSensorRangesEnabled():
- global TAIMaximumSensorRangesEnabled
- return TAIMaximumSensorRangesEnabled
- def SetTAIMaximumSensorRangesEnabled( value ):
- global TAIMaximumSensorRangesEnabled
- TAIMaximumSensorRangesEnabled = value
- def GetTAITorpedoSolutionEnabled():
- global TAITorpedoSolutionEnabled
- return TAITorpedoSolutionEnabled
- def SetTAITorpedoSolutionEnabled( value ):
- global TAITorpedoSolutionEnabled
- TAITorpedoSolutionEnabled = value
- def GetTAIMapScaleEnabled():
- global TAIMapScaleEnabled
- return TAIMapScaleEnabled
- def SetTAIMapScaleEnabled( value ):
- global TAIMapScaleEnabled
- TAIMapScaleEnabled = value
- def GetTAIMapCoordinatesEnabled():
- global TAIMapCoordinatesEnabled
- return TAIMapCoordinatesEnabled
- def SetTAIMapCoordinatesEnabled( value ):
- global TAIMapCoordinatesEnabled
- TAIMapCoordinatesEnabled = value
- def GetTAICameraPositionAndOrientationEnabled():
- global TAICameraPositionAndOrientationEnabled
- return TAICameraPositionAndOrientationEnabled
- def SetTAICameraPositionAndOrientationEnabled( value ):
- global TAICameraPositionAndOrientationEnabled
- TAICameraPositionAndOrientationEnabled = value
- def GetTAIShellHitEnabled():
- global TAIShellHitEnabled
- return TAIShellHitEnabled
- def SetTAIShellHitEnabled( value ):
- global TAIShellHitEnabled
- TAIShellHitEnabled = value
- def GetTAIKGridEnabled():
- global TAIKGridEnabled
- return TAIKGridEnabled
- def SetTAIKGridEnabled( value ):
- global TAIKGridEnabled
- TAIKGridEnabled = value
- def GetTAIRadarContactsEnabled():
- global TAIRadarContactsEnabled
- return TAIRadarContactsEnabled
- def SetTAIRadarContactsEnabled( value ):
- global TAIRadarContactsEnabled
- TAIRadarContactsEnabled = value
- def GetTAIVisualContactsEnabled():
- global TAIVisualContactsEnabled
- return TAIVisualContactsEnabled
- def SetTAIVisualContactsEnabled( value ):
- global TAIVisualContactsEnabled
- TAIVisualContactsEnabled = value
- def GetTAIHydrophoneContactsEnabled():
- global TAIHydrophoneContactsEnabled
- return TAIHydrophoneContactsEnabled
- def SetTAIHydrophoneContactsEnabled( value ):
- global TAIHydrophoneContactsEnabled
- TAIHydrophoneContactsEnabled = value
- def GetTAISonarContactsEnabled():
- global TAISonarContactsEnabled
- return TAISonarContactsEnabled
- def SetTAISonarContactsEnabled( value ):
- global TAISonarContactsEnabled
- TAISonarContactsEnabled = value
- def GetTAIViewConesEnabled():
- global TAIViewConesEnabled
- return TAIViewConesEnabled
- def SetTAIViewConesEnabled( value ):
- global TAIViewConesEnabled
- TAIViewConesEnabled = value
- def GetTAIMacroObjectivesEnabled():
- global TAIMacroObjectivesEnabled
- return TAIMacroObjectivesEnabled
- def SetTAIMacroObjectivesEnabled( value ):
- global TAIMacroObjectivesEnabled
- TAIMacroObjectivesEnabled = value
- def GetTAIStrategicObjectivesEnabled():
- global TAIStrategicObjectivesEnabled
- return TAIStrategicObjectivesEnabled
- def SetTAIStrategicObjectivesEnabled( value ):
- global TAIStrategicObjectivesEnabled
- TAIStrategicObjectivesEnabled = value
- def GetTAIStrategicUnitsEnabled():
- global TAIStrategicUnitsEnabled
- return TAIStrategicUnitsEnabled
- def SetTAIStrategicUnitsEnabled( value ):
- global TAIStrategicUnitsEnabled
- TAIStrategicUnitsEnabled = value
- def GetTAIContactInfoTextEnabled():
- global TAIContactInfoTextEnabled
- return TAIContactInfoTextEnabled
- def SetTAIContactInfoTextEnabled( value ):
- global TAIContactInfoTextEnabled
- TAIContactInfoTextEnabled = value
- def GetTAITorpedoImpactPointsEnabled():
- global TAITorpedoImpactPointsEnabled
- return TAITorpedoImpactPointsEnabled
- def SetTAITorpedoImpactPointsEnabled( value ):
- global TAITorpedoImpactPointsEnabled
- TAITorpedoImpactPointsEnabled = value
- def GetTAILocationsInTAIEnabled():
- global TAILocationsInTAIEnabled
- return TAILocationsInTAIEnabled
- def SetTAILocationsInTAIEnabled( value ):
- global TAILocationsInTAIEnabled
- TAILocationsInTAIEnabled = value
- def GetTAIIsTacticalMapEnabled():
- global TAIIsTacticalMapEnabled
- return TAIIsTacticalMapEnabled
- def SetTAIIsTacticalMapEnabled( value ):
- global TAIIsTacticalMapEnabled
- TAIIsTacticalMapEnabled = value
- def GetTAIHighlightSonarTargetsEnabled():
- global TAIHighlightSonarTargetsEnabled
- return TAIHighlightSonarTargetsEnabled
- def SetTAIHighlightSonarTargetsEnabled( value ):
- global TAIHighlightSonarTargetsEnabled
- TAIHighlightSonarTargetsEnabled = value
- def GetTAIHighlightRadarTargetsEnabled():
- global TAIHighlightRadarTargetsEnabled
- return TAIHighlightRadarTargetsEnabled
- def SetTAIHighlightRadarTargetsEnabled( value ):
- global TAIHighlightRadarTargetsEnabled
- TAIHighlightRadarTargetsEnabled = value
- def GetTAIHighlightVisualTargetsEnabled():
- global TAIHighlightVisualTargetsEnabled
- return TAIHighlightVisualTargetsEnabled
- def SetTAIHighlightVisualTargetsEnabled( value ):
- global TAIHighlightVisualTargetsEnabled
- TAIHighlightVisualTargetsEnabled = value
- def GetTAIMinefieldsEnabled():
- global TAIMinefieldsEnabled
- return TAIMinefieldsEnabled
- def SetTAIMinefieldsEnabled( value ):
- global TAIMinefieldsEnabled
- TAIMinefieldsEnabled = value
- def GetTAIShallowWatersEnabled():
- global TAIShallowWatersEnabled
- return TAIShallowWatersEnabled
- def SetTAIShallowWatersEnabled( value ):
- global TAIShallowWatersEnabled
- TAIShallowWatersEnabled = value
- def GetTAIResupplyShipEnabled():
- global TAIResupplyShipEnabled
- return TAIResupplyShipEnabled
- def SetTAIResupplyShipEnabled( value ):
- global TAIResupplyShipEnabled
- TAIResupplyShipEnabled = value
- def GetTAIContactSpottedEnabled():
- global TAIContactSpottedEnabled
- return TAIContactSpottedEnabled
- def SetTAIContactSpottedEnabled( value ):
- global TAIContactSpottedEnabled
- TAIContactSpottedEnabled = value
- def GetTAISelectedContactGUIEnabled():
- global TAISelectedContactGUIEnabled
- return TAISelectedContactGUIEnabled
- def SetTAISelectedContactGUIEnabled( value ):
- global TAISelectedContactGUIEnabled
- TAISelectedContactGUIEnabled = value
- def GetTAIParallelCourseButtonEnabled():
- global TAIParallelCourseButtonEnabled
- return TAIParallelCourseButtonEnabled
- def SetTAIParallelCourseButtonEnabled( value ):
- global TAIParallelCourseButtonEnabled
- TAIParallelCourseButtonEnabled = value
- def GetTAIInterceptCourseButtonEnabled():
- global TAIInterceptCourseButtonEnabled
- return TAIInterceptCourseButtonEnabled
- def SetTAIInterceptCourseButtonEnabled( value ):
- global TAIInterceptCourseButtonEnabled
- TAIInterceptCourseButtonEnabled = value
- def GetDepthGroupHighlightBitmapEnabled():
- global DepthGroupHighlightBitmapEnabled
- return DepthGroupHighlightBitmapEnabled
- def GetThrottleHighlightBitmapEnabled():
- global ThrottleHighlightBitmapEnabled
- return ThrottleHighlightBitmapEnabled
- def GetTAIModeOnScopeUZOStationSelected():
- global TAIModeOnScopeUZOStationSelected
- return TAIModeOnScopeUZOStationSelected
- def GetTAIModeOnGameStart():
- global TAIModeOnGameStart
- return TAIModeOnGameStart
- def GetNavSetCourseWhenSubIsClicked():
- global NavSetCourseWhenSubIsClicked
- return NavSetCourseWhenSubIsClicked
- def SetNavSetCourseWhenSubIsClicked( value ):
- global NavSetCourseWhenSubIsClicked
- NavSetCourseWhenSubIsClicked = value
- def GetNavActivateWaypointToolWhenWaypointClicked():
- global NavActivateWaypointToolWhenWaypointClicked
- return NavActivateWaypointToolWhenWaypointClicked
- def SetNavActivateWaypointToolWhenWaypointClicked( value ):
- global NavActivateWaypointToolWhenWaypointClicked
- NavActivateWaypointToolWhenWaypointClicked = value
- def GetNavKeepPlayerLookingUp():
- global NavKeepPlayerLookingUp
- return NavKeepPlayerLookingUp
- def SetNavKeepPlayerLookingUp( value ):
- global NavKeepPlayerLookingUp
- NavKeepPlayerLookingUp = value
- def GetNavHydrophoneEnabled():
- global NavHydrophoneEnabled
- return NavHydrophoneEnabled
- def SetNavHydrophoneEnabled( value ):
- global NavHydrophoneEnabled
- NavHydrophoneEnabled = value
- def GetNavSonarEnabled():
- global NavSonarEnabled
- return NavSonarEnabled
- def SetNavSonarEnabled( value ):
- global NavSonarEnabled
- NavSonarEnabled = value
- def GetNavVisualEnabled():
- global NavVisualEnabled
- return NavVisualEnabled
- def SetNavVisualEnabled( value ):
- global NavVisualEnabled
- NavVisualEnabled = value
- def GetNavRadarEnabled():
- global NavRadarEnabled
- return NavRadarEnabled
- def SetNavRadarEnabled( value ):
- global NavRadarEnabled
- NavRadarEnabled = value
- def GetNavMaximumSensorRangesEnabled():
- global NavMaximumSensorRangesEnabled
- return NavMaximumSensorRangesEnabled
- def SetNavMaximumSensorRangesEnabled( value ):
- global NavMaximumSensorRangesEnabled
- NavMaximumSensorRangesEnabled = value
- def GetNavTorpedoSolutionEnabled():
- global NavTorpedoSolutionEnabled
- return NavTorpedoSolutionEnabled
- def SetNavTorpedoSolutionEnabled( value ):
- global NavTorpedoSolutionEnabled
- NavTorpedoSolutionEnabled = value
- def GetNavMapScaleEnabled():
- global NavMapScaleEnabled
- return NavMapScaleEnabled
- def SetNavMapScaleEnabled( value ):
- global NavMapScaleEnabled
- NavMapScaleEnabled = value
- def GetNavMapCoordinatesEnabled():
- global NavMapCoordinatesEnabled
- return NavMapCoordinatesEnabled
- def SetNavMapCoordinatesEnabled( value ):
- global NavMapCoordinatesEnabled
- NavMapCoordinatesEnabled = value
- def GetNavCameraPositionAndOrientationEnabled():
- global NavCameraPositionAndOrientationEnabled
- return NavCameraPositionAndOrientationEnabled
- def SetNavCameraPositionAndOrientationEnabled( value ):
- global NavCameraPositionAndOrientationEnabled
- NavCameraPositionAndOrientationEnabled = value
- def GetNavShellHitEnabled():
- global NavShellHitEnabled
- return NavShellHitEnabled
- def SetNavShellHitEnabled( value ):
- global NavShellHitEnabled
- NavShellHitEnabled = value
- def GetNavKGridEnabled():
- global NavKGridEnabled
- return NavKGridEnabled
- def SetNavKGridEnabled( value ):
- global NavKGridEnabled
- NavKGridEnabled = value
- def GetNavRadarContactsEnabled():
- global NavRadarContactsEnabled
- return NavRadarContactsEnabled
- def SetNavRadarContactsEnabled( value ):
- global NavRadarContactsEnabled
- NavRadarContactsEnabled = value
- def GetNavVisualContactsEnabled():
- global NavVisualContactsEnabled
- return NavVisualContactsEnabled
- def SetNavVisualContactsEnabled( value ):
- global NavVisualContactsEnabled
- NavVisualContactsEnabled = value
- def GetNavHydrophoneContactsEnabled():
- global NavHydrophoneContactsEnabled
- return NavHydrophoneContactsEnabled
- def SetNavHydrophoneContactsEnabled( value ):
- global NavHydrophoneContactsEnabled
- NavHydrophoneContactsEnabled = value
- def GetNavSonarContactsEnabled():
- global NavSonarContactsEnabled
- return NavSonarContactsEnabled
- def SetNavSonarContactsEnabled( value ):
- global NavSonarContactsEnabled
- NavSonarContactsEnabled = value
- def GetNavViewConesEnabled():
- global NavViewConesEnabled
- return NavViewConesEnabled
- def SetNavViewConesEnabled( value ):
- global NavViewConesEnabled
- NavViewConesEnabled = value
- def GetNavMacroObjectivesEnabled():
- global NavMacroObjectivesEnabled
- return NavMacroObjectivesEnabled
- def SetNavMacroObjectivesEnabled( value ):
- global NavMacroObjectivesEnabled
- NavMacroObjectivesEnabled = value
- def GetNavStrategicObjectivesEnabled():
- global NavStrategicObjectivesEnabled
- return NavStrategicObjectivesEnabled
- def SetNavStrategicObjectivesEnabled( value ):
- global NavStrategicObjectivesEnabled
- NavStrategicObjectivesEnabled = value
- def GetNavStrategicUnitsEnabled():
- global NavStrategicUnitsEnabled
- return NavStrategicUnitsEnabled
- def SetNavStrategicUnitsEnabled( value ):
- global NavStrategicUnitsEnabled
- NavStrategicUnitsEnabled = value
- def GetNavContactInfoTextEnabled():
- global NavContactInfoTextEnabled
- return NavContactInfoTextEnabled
- def SetNavContactInfoTextEnabled( value ):
- global NavContactInfoTextEnabled
- NavContactInfoTextEnabled = value
- def GetNavTorpedoImpactPointsEnabled():
- global NavTorpedoImpactPointsEnabled
- return NavTorpedoImpactPointsEnabled
- def SetNavTorpedoImpactPointsEnabled( value ):
- global NavTorpedoImpactPointsEnabled
- NavTorpedoImpactPointsEnabled = value
- def GetNavLocationsInTAIEnabled():
- global NavLocationsInTAIEnabled
- return NavLocationsInTAIEnabled
- def SetNavLocationsInTAIEnabled( value ):
- global NavLocationsInTAIEnabled
- NavLocationsInTAIEnabled = value
- def GetNavIsTacticalMapEnabled():
- global NavIsTacticalMapEnabled
- return NavIsTacticalMapEnabled
- def SetNavIsTacticalMapEnabled( value ):
- global NavIsTacticalMapEnabled
- NavIsTacticalMapEnabled = value
- def GetNavHighlightSonarTargetsEnabled():
- global NavHighlightSonarTargetsEnabled
- return NavHighlightSonarTargetsEnabled
- def SetNavHighlightSonarTargetsEnabled( value ):
- global NavHighlightSonarTargetsEnabled
- NavHighlightSonarTargetsEnabled = value
- def GetNavHighlightRadarTargetsEnabled():
- global NavHighlightRadarTargetsEnabled
- return NavHighlightRadarTargetsEnabled
- def SetNavHighlightRadarTargetsEnabled( value ):
- global NavHighlightRadarTargetsEnabled
- NavHighlightRadarTargetsEnabled = value
- def GetNavHighlightVisualTargetsEnabled():
- global NavHighlightVisualTargetsEnabled
- return NavHighlightVisualTargetsEnabled
- def SetNavHighlightVisualTargetsEnabled( value ):
- global NavHighlightVisualTargetsEnabled
- NavHighlightVisualTargetsEnabled = value
- def GetNavMinefieldsEnabled():
- global NavMinefieldsEnabled
- return NavMinefieldsEnabled
- def SetNavMinefieldsEnabled( value ):
- global NavMinefieldsEnabled
- NavMinefieldsEnabled = value
- def GetNavShallowWatersEnabled():
- global NavShallowWatersEnabled
- return NavShallowWatersEnabled
- def SetNavShallowWatersEnabled( value ):
- global NavShallowWatersEnabled
- NavShallowWatersEnabled = value
- def GetNavResupplyShipEnabled():
- global NavResupplyShipEnabled
- return NavResupplyShipEnabled
- def SetNavResupplyShipEnabled( value ):
- global NavResupplyShipEnabled
- NavResupplyShipEnabled = value
- def GetNavContactSpottedEnabled():
- global NavContactSpottedEnabled
- return NavContactSpottedEnabled
- def SetNavContactSpottedEnabled( value ):
- global NavContactSpottedEnabled
- NavContactSpottedEnabled = value
- def GetNavSelectedContactGUIEnabled():
- global NavSelectedContactGUIEnabled
- return NavSelectedContactGUIEnabled
- def SetNavSelectedContactGUIEnabled( value ):
- global NavSelectedContactGUIEnabled
- NavSelectedContactGUIEnabled = value
- def GetNavParallelCourseButtonEnabled():
- global NavParallelCourseButtonEnabled
- return NavParallelCourseButtonEnabled
- def SetNavParallelCourseButtonEnabled( value ):
- global NavParallelCourseButtonEnabled
- NavParallelCourseButtonEnabled = value
- def GetNavInterceptCourseButtonEnabled():
- global NavInterceptCourseButtonEnabled
- return NavInterceptCourseButtonEnabled
- def SetNavInterceptCourseButtonEnabled( value ):
- global NavInterceptCourseButtonEnabled
- NavInterceptCourseButtonEnabled = value
- def GetNavDisplayNavFixes():
- global NavDisplayNavFixes
- return NavDisplayNavFixes
- def SetNavDisplayNavFixes( value ):
- global NavDisplayNavFixes
- NavDisplayNavFixes = value
- for fix in navigationfixes:
- fix[ 0 ].Visible = value
- def GetNavDisplaySuperMarks():
- global NavDisplaySuperMarks
- return NavDisplaySuperMarks
- def SetNavDisplaySuperMarks( value ):
- global NavDisplaySuperMarks
- NavDisplaySuperMarks = value
- for fix in supermarks:
- fix[ 0 ].Visible = value
- def GetNavDisplayDestroyedMarks():
- global NavDisplayDestroyedMarks
- return NavDisplayDestroyedMarks
- def SetNavDisplayDestroyedMarks( value ):
- global NavDisplayDestroyedMarks
- NavDisplayDestroyedMarks = value
- for fix in destroyedmarks:
- fix[ 0 ].Visible = value
- def GetPlayerGuidanceEnabled():
- global PlayerGuidanceEnabled
- return PlayerGuidanceEnabled
- def SetPlayerGuidanceEnabled( value ):
- global PlayerGuidanceEnabled
- PlayerGuidanceEnabled = value
- def GetPlayerObjectivesEnabled():
- global PlayerObjectivesEnabled
- return PlayerObjectivesEnabled
- def SetPlayerObjectivesEnabled( value ):
- global PlayerObjectivesEnabled
- PlayerObjectivesEnabled = value
- def GetIfTutPlayerObjsEnabledAtGameStart():
- global IfTutPlayerObjsEnabledAtGameStart
- return IfTutPlayerObjsEnabledAtGameStart
- def GetXOTDCDialogEnabled():
- global XOTDCDialogEnabled
- return XOTDCDialogEnabled
- def SetXOTDCDialogEnabled( value ):
- global XOTDCDialogEnabled
- XOTDCDialogEnabled = value
- def GetXOTDCDialogDraggable():
- global XOTDCDialogDraggable
- return XOTDCDialogDraggable
- def GetShowItemNotes():
- global ShowItemNotes
- return ShowItemNotes
- def SetShowItemNotes( value ):
- global ShowItemNotes
- ShowItemNotes = value
- def GetHideOrderBarOnOrderClicked():
- global HideOrderBarOnOrderClicked
- return HideOrderBarOnOrderClicked
- def GetHideOrderBarOnKeyPress():
- global HideOrderBarOnKeyPress
- return HideOrderBarOnKeyPress
- def GetOrderCategoriesScroll():
- global OrderCategoriesScroll
- return OrderCategoriesScroll
- def SetOrderCategoriesScroll( value ):
- global OrderCategoriesScroll
- OrderCategoriesScroll = value
- # do something else to update it
- def GetOfficersScroll():
- global OfficersScroll
- return OfficersScroll
- def GetOfficersHideTD():
- global OfficersHideTD
- return OfficersHideTD
- def GetNavReportFixAsDegrees():
- global NavReportFixAsDegrees
- return NavReportFixAsDegrees
- def GetShowLockBreakLock():
- global ShowLockBreakLock
- return ShowLockBreakLock
- def SetShowLockBreakLock( value ):
- global ShowLockBreakLock
- ShowLockBreakLock = value
- def GetDisplayShipNames():
- global DisplayShipNames
- return DisplayShipNames
- def SetDisplayShipNames( value ):
- global DisplayShipNames
- DisplayShipNames = value
- def GetContactSpottedInfoOnUnlockedTarget():
- global ContactSpottedInfoOnUnlockedTarget
- return ContactSpottedInfoOnUnlockedTarget
- def GetAutoEnableChartsOnScopeStation():
- global AutoEnableChartsOnScopeStation
- return AutoEnableChartsOnScopeStation
- def GetAutoDisableChartsOnScopeStationLeave():
- global AutoDisableChartsOnScopeStationLeave
- return AutoDisableChartsOnScopeStationLeave
- def GetTeleportToObsScope():
- global TeleportToObsScope
- return TeleportToObsScope
- def GetTeleportToAttackScope():
- global TeleportToAttackScope
- return TeleportToAttackScope
- def GetTeleportToUZO():
- global TeleportToUZO
- return TeleportToUZO
- def GetTeleportToRadar():
- global TeleportToRadar
- return TeleportToRadar
- def GetTeleportToHydrophone():
- global TeleportToHydrophone
- return TeleportToHydrophone
- def GetTeleportToDeckGun():
- global TeleportToDeckGun
- return TeleportToDeckGun
- def GetTeleportToFlakGun():
- global TeleportToFlakGun
- return TeleportToFlakGun
- def GetDisplayTeleportingOrderBarKey():
- global DisplayTeleportingOrderBarKey
- return DisplayTeleportingOrderBarKey
- def GetObsAndAttackReturnToBridge():
- global ObsAndAttackReturnToBridge
- return ObsAndAttackReturnToBridge
- def GetContactDateTimeStampFormat():
- global ContactDateTimeStampFormat
- return ContactDateTimeStampFormat
- def GetemtgufPeriscopeReworkEnabled():
- global emtgufPeriscopeReworkEnabled
- return emtgufPeriscopeReworkEnabled
- def GetShowChalkBoardHotKey():
- global ShowChalkBoardHotKey
- return ShowChalkBoardHotKey
- def GetIncreaseChalkBoardCountHotKey():
- global IncreaseChalkBoardCountHotKey
- return IncreaseChalkBoardCountHotKey
- def GetOttosChalkBoardMessage():
- global OttosChalkBoardMessage
- return OttosChalkBoardMessage
- def GetSinglePlayerMode():
- global SinglePlayerMode
- return SinglePlayerMode
- def SetSinglePlayerMode( value ):
- global SinglePlayerMode
- SinglePlayerMode = value
- def GetBitmapIndex_NotAvailable():
- global BitmapIndex_NotAvailable
- return BitmapIndex_NotAvailable
- def GetBitmapIndex_NotSelected():
- global BitmapIndex_NotSelected
- return BitmapIndex_NotSelected
- def GetBitmapIndex_Selected():
- global BitmapIndex_Selected
- return BitmapIndex_Selected
- def GetBitmapIndex_MouseOver():
- global BitmapIndex_MouseOver
- return BitmapIndex_MouseOver
- def GetNomographVisibleOnMiniMap():
- global NomographVisibleOnMiniMap
- return NomographVisibleOnMiniMap
- def SetNomographVisibleOnMiniMap( value ):
- global NomographVisibleOnMiniMap
- NomographVisibleOnMiniMap = value
- def GetNomographVisibleOnNavMap():
- global NomographVisibleOnNavMap
- return NomographVisibleOnNavMap
- def SetNomographVisibleOnNavMap( value ):
- global NomographVisibleOnNavMap
- NomographVisibleOnNavMap = value
- def GetFollowSelectedTargetWithCamera():
- global FollowSelectedTargetWithCamera
- return FollowSelectedTargetWithCamera
- def SetFollowSelectedTargetWithCamera( value ):
- global FollowSelectedTargetWithCamera
- FollowSelectedTargetWithCamera = value
- def GetAttackPeriscopeLevelSH5Handle():
- global AttackPeriscopeLevelSH5Handle
- return AttackPeriscopeLevelSH5Handle
- def SetAttackPeriscopeLevelSH5Handle( value ):
- global AttackPeriscopeLevelSH5Handle
- AttackPeriscopeLevelSH5Handle = value
- def GetObsPeriscopeLevelSH5Handle():
- global ObsPeriscopeLevelSH5Handle
- return ObsPeriscopeLevelSH5Handle
- def SetObsPeriscopeLevelSH5Handle( value ):
- global ObsPeriscopeLevelSH5Handle
- ObsPeriscopeLevelSH5Handle = value
- def GetAllowedToSelectTarget():
- global AllowedToSelectTarget
- return AllowedToSelectTarget
- def SetAllowedToSelectTarget( value ):
- global AllowedToSelectTarget
- AllowedToSelectTarget = value
- def GetAllowedToPhotographTarget():
- global AllowedToPhotographTarget
- return AllowedToPhotographTarget
- def SetAllowedToPhotographTarget( value ):
- global AllowedToPhotographTarget
- AllowedToPhotographTarget = value
- def GetSilentRunning():
- global SilentRunning
- return SilentRunning
- def SetSilentRunning( value ):
- global SilentRunning
- SilentRunning = value
- def GetSnorkelRaised():
- global SnorkelRaised
- return SnorkelRaised
- def SetSnorkelRaised( value ):
- global SnorkelRaised
- SnorkelRaised = value
- def GetBattlestationsActivated():
- global BattlestationsActivated
- return BattlestationsActivated
- def SetBattlestationsActivated( value ):
- global BattlestationsActivated
- BattlestationsActivated = value
- def GetSubIsUnderwater():
- global SubIsUnderwater
- return SubIsUnderwater
- def SetSubIsUnderwater( value ):
- global SubIsUnderwater
- SubIsUnderwater = value
- def GetNumberMessagesToKeepInMessageBox():
- global NumberMessagesToKeepInMessageBox
- return NumberMessagesToKeepInMessageBox
- def SetNumberMessagesToKeepInMessageBox( value ):
- global NumberMessagesToKeepInMessageBox
- NumberMessagesToKeepInMessageBox = value
- def GetTC1OnRadioMessageReceived():
- global TC1OnRadioMessageReceived
- return TC1OnRadioMessageReceived
- def SetTC1OnRadioMessageReceived( value ):
- global TC1OnRadioMessageReceived
- TC1OnRadioMessageReceived = value
- def GetShowNavMapTDC():
- global ShowNavMapTDC
- return ShowNavMapTDC
- def SetShowNavMapTDC( value ):
- global ShowNavMapTDC
- ShowNavMapTDC = value
- def GetAboveThisTCLevelShowClock():
- global AboveThisTCLevelShowClock
- return AboveThisTCLevelShowClock
- def SetAboveThisTCLevelShowClock( value ):
- global AboveThisTCLevelShowClock
- AboveThisTCLevelShowClock = value
- def GetBelowThisDepthDontReceiveRadio():
- global BelowThisDepthDontReceiveRadio
- return BelowThisDepthDontReceiveRadio
- def SetBelowThisDepthDontReceiveRadio( value ):
- global BelowThisDepthDontReceiveRadio
- BelowThisDepthDontReceiveRadio = value
- def GetMaxRadioContactRange():
- global MaxRadioContactRange
- return MaxRadioContactRange
- def SetMaxRadioContactRange( value ):
- global MaxRadioContactRange
- MaxRadioContactRange = value
- def GetRadioContactReportsAlwaysClipped():
- global RadioContactReportsAlwaysClipped
- return RadioContactReportsAlwaysClipped
- def SetRadioContactReportsAlwaysClipped( value ):
- global RadioContactReportsAlwaysClipped
- RadioContactReportsAlwaysClipped = value
- def GetShipsJournal():
- global ShipsJournal
- return ShipsJournal
- def SetShipsJournal( value ):
- global ShipsJournal
- ShipsJournal = value
- def GetUboatHullNumber():
- global UboatHullNumber
- return UboatHullNumber
- def SetUboatHullNumber( value ):
- global UboatHullNumber
- UboatHullNumber = value
- def GetUboatCaptainName():
- global UboatCaptainName
- return UboatCaptainName
- def SetUboatCaptainName( value ):
- global UboatCaptainName
- UboatCaptainName = value
- def GetRadioMessages():
- global RadioMessages
- return RadioMessages
- def GetOfficersPinnedToBottomOfScreen():
- global OfficersPinnedToBottomOfScreen
- return OfficersPinnedToBottomOfScreen
- def SetOfficersPinnedToBottomOfScreen( value ):
- global OfficersPinnedToBottomOfScreen
- OfficersPinnedToBottomOfScreen = value
- def GetTAIEnabledInGame():
- global TAIEnabledInGame
- return TAIEnabledInGame
- def SetTAIEnabledInGame( value ):
- global TAIEnabledInGame
- TAIEnabledInGame = value
- def GetBinocularCrosshairEnabled():
- global BinocularCrosshairEnabled
- return BinocularCrosshairEnabled
- def SetBinocularCrosshairEnabled( value ):
- global BinocularCrosshairEnabled
- BinocularCrosshairEnabled = value
- def GetIgnoreNewLogMessages():
- global IgnoreNewLogMessages
- return IgnoreNewLogMessages
- def SetIgnoreNewLogMessages( value ):
- global IgnoreNewLogMessages
- IgnoreNewLogMessages = value
- def GetShowContactsActualSpeed():
- global ShowContactsActualSpeed
- return ShowContactsActualSpeed
- def SetShowContactsActualSpeed( value ):
- global ShowContactsActualSpeed
- ShowContactsActualSpeed = value
- def GetRangeStartUpdatingContacts():
- global RangeStartUpdatingContacts
- return RangeStartUpdatingContacts
- def SetRangeStartUpdatingContacts( value ):
- global RangeStartUpdatingContacts
- RangeStartUpdatingContacts = value
- def GetTC1OnNewRadioMessage():
- global TC1OnNewRadioMessage
- return TC1OnNewRadioMessage
- def SetTC1OnNewRadioMessage( value ):
- global TC1OnNewRadioMessage
- TC1OnNewRadioMessage = value
- def GetRangeShipSendingSubSightedMessage():
- global RangeShipSendingSubSightedMessage
- return RangeShipSendingSubSightedMessage
- def SetRangeShipSendingSubSightedMessage( value ):
- global RangeShipSendingSubSightedMessage
- RangeShipSendingSubSightedMessage = value
- def GetInformRadioMessages():
- global InformRadioMessages
- return InformRadioMessages
- def SetInformRadioMessages( value ):
- global InformRadioMessages
- InformRadioMessages = value
- def GetInformSubSightedMessages():
- global InformSubSightedMessages
- return InformSubSightedMessages
- def SetInformSubSightedMessages( value ):
- global InformSubSightedMessages
- InformSubSightedMessages = value
- def GetInformBDUMessages():
- global InformBDUMessages
- return InformBDUMessages
- def SetInformBDUMessages( value ):
- global InformBDUMessages
- InformBDUMessages = value
- def GetInformDestroyedMessages():
- global InformDestroyedMessages
- return InformDestroyedMessages
- def SetInformDestroyedMessages( value ):
- global InformDestroyedMessages
- InformDestroyedMessages = value
- def GetRadioMessagesInterceptChance():
- global RadioMessagesInterceptChance
- return RadioMessagesInterceptChance
- def GetRadioMessagesFlashTime():
- global RadioMessagesFlashTime
- return RadioMessagesFlashTime
- def GetRadioMessagesHotKey():
- global RadioMessagesHotKey
- return RadioMessagesHotKey
- def GetShowContactsActualCourse():
- global ShowContactsActualCourse
- return ShowContactsActualCourse
- def SetShowContactsActualCourse( value ):
- global ShowContactsActualCourse
- ShowContactsActualCourse = value
- def GetGameStartDate():
- global GameStartDate
- return GameStartDate
- def SetGameStartDate( value ):
- global GameStartDate
- GameStartDate = value
- def GetSH5InstallPath():
- global SH5InstallPath
- return SH5InstallPath
- def SetSH5InstallPath( value ):
- global SH5InstallPath
- SH5InstallPath = value
- def GetUserOptionsFilePathname():
- global UserOptionsFilePathname
- global SH5InstallPath
- path = SH5InstallPath + "\\" + UserOptionsFilePathname
- return path
- def GetAdditionalInfoSeaImagesPath():
- global SH5InstallPath
- path = SH5InstallPath + "\\data\\menu\\gui\\Additional info sea images"
- return path
- def GetShipsJournalPath():
- global ShipsJournalPath
- global SH5InstallPath
- path = SH5InstallPath + "\\" + ShipsJournalPath
- return path
- def GetShipsJournalFile():
- global ShipsJournalFile
- return ShipsJournalFile
- def SetShipsJournalFile( value ):
- global ShipsJournalFile
- if value != None:
- if value[ len( value ) - 1 ] == "\\":
- value = value[ 0 : len( value ) - 1 ]
- ShipsJournalFile = value
- def GetShipsJournalChanged():
- global ShipsJournalChanged
- return ShipsJournalChanged
- def SetShipsJournalChanged( value ):
- global ShipsJournalChanged
- ShipsJournalChanged = value
- def GetTutorialsPath():
- global TutorialsPath
- global SH5InstallPath
- path = SH5InstallPath + "\\" + TutorialsPath
- return path
- def GetTutorialToStart():
- global TutorialToStart
- return TutorialToStart
- def SetTutorialToStart( value ):
- global TutorialToStart
- TutorialToStart = value
- def GetTutorialMissionName():
- global TutorialMissionName
- return TutorialMissionName
- def SetTutorialMissionName( value ):
- global TutorialMissionName
- TutorialMissionName = value
- def GetTutorialImagePath():
- global SH5InstallPath
- path = SH5InstallPath + "\\data\\Menu\\Gui\\Tutorial Images"
- return path
- def GetTutorialImageName():
- return "TutorialImage.dds"
- def GetAutomationPath():
- global AutomationPath
- global SH5InstallPath
- path = SH5InstallPath + "\\" + AutomationPath
- return path
- def GetMagicString():
- global MagicString
- return MagicString
- def GetPeriscopeLevelSH5Visible():
- global PeriscopeLevelSH5Visible
- return PeriscopeLevelSH5Visible
- def SetPeriscopeLevelSH5Visible( value ):
- global PeriscopeLevelSH5Visible
- PeriscopeLevelSH5Visible = value
- def GetDepthAndMapToolsBarsVisible():
- global DepthAndMapToolsBarsVisible
- return DepthAndMapToolsBarsVisible
- def SetDepthAndMapToolsBarsVisible( value ):
- global DepthAndMapToolsBarsVisible
- DepthAndMapToolsBarsVisible = value
- def GetJournalEntryIntervalTime():
- global JournalEntryIntervalTime
- return JournalEntryIntervalTime
- def SetJournalEntryIntervalTime( value ):
- global JournalEntryIntervalTime
- JournalEntryIntervalTime = value
- def GetJournalEntryWithSubsDataIntervalTime():
- global JournalEntryWithSubsDataIntervalTime
- return JournalEntryWithSubsDataIntervalTime
- def SetJournalEntryWithSubsDataIntervalTime( value ):
- global JournalEntryWithSubsDataIntervalTime
- JournalEntryWithSubsDataIntervalTime = value
- def GetWatchOfficerCheckForContactsOnTCxSet():
- global WatchOfficerCheckForContactsOnTCxSet
- return WatchOfficerCheckForContactsOnTCxSet
- def SetWatchOfficerCheckForContactsOnTCxSet( value ):
- global WatchOfficerCheckForContactsOnTCxSet
- WatchOfficerCheckForContactsOnTCxSet = value;
- def GetAutomaticallySwitchBatteryFuelLevels():
- global AutomaticallySwitchBatteryFuelLevels
- return AutomaticallySwitchBatteryFuelLevels
- def GetAutomaticallySwitchBackToBatteryFuelLevelTD():
- global AutomaticallySwitchBackToBatteryFuelLevelTD
- return AutomaticallySwitchBackToBatteryFuelLevelTD
- def GetShipsJournalLogging():
- global ShipsJournalLogging
- return ShipsJournalLogging
- def SetShipsJournalLogging( value ):
- global ShipsJournalLogging
- ShipsJournalLogging = value
- def GetShipsJournalHotKey():
- global ShipsJournalHotKey
- return ShipsJournalHotKey
- def GetSelectedTorpTubes():
- global SelectedTorpTubes
- return SelectedTorpTubes
- def SetSelectedTorpTubes( value ):
- global SelectedTorpTubes
- SelectedTorpTubes = value
- def GetTorpDoorsStatus():
- global TorpDoorsStatus
- return TorpDoorsStatus
- def SetTorpDoorsStatus( value ):
- global TorpDoorsStatus
- TorpDoorsStatus = value
- def GetTorpDoorsEnabled():
- global TorpDoorsEnabled
- return TorpDoorsEnabled
- def SetTorpDoorsEnabled( value ):
- global TorpDoorsEnabled
- TorpDoorsEnabled = value
- def GetRealisticTorpedoFirings():
- global RealisticTorpedoFirings
- return RealisticTorpedoFirings
- def SetRealisticTorpedoFirings( value ):
- global RealisticTorpedoFirings
- RealisticTorpedoFirings = value
- def GetRealisticOpenTubeTDBase():
- global RealisticOpenTubeTDBase
- return RealisticOpenTubeTDBase
- def SetRealisticOpenTubeTDBase( value ):
- global RealisticOpenTubeTDBase
- RealisticOpenTubeTDBase = value
- def GetWaterLevelTD():
- global WaterLevelTD
- return WaterLevelTD
- def SetWaterLevelTD( value ):
- global WaterLevelTD
- WaterLevelTD = value
- def GetSwitchToRechargePropulsionTDBase():
- global SwitchToRechargePropulsionTDBase
- return SwitchToRechargePropulsionTDBase
- def SetSwitchToRechargePropulsionTDBase( value ):
- global SwitchToRechargePropulsionTDBase
- SwitchToRechargePropulsionTDBase = value
- def GetSwitchToStdPropulsionTDBase():
- global SwitchToStdPropulsionTDBase
- return SwitchToStdPropulsionTDBase
- def SetSwitchToStdPropulsionTDBase( value ):
- global SwitchToStdPropulsionTDBase
- SwitchToStdPropulsionTDBase = value
- def GetSH5EHeadingRudderDialVisible():
- global SH5EHeadingRudderDialVisible
- return SH5EHeadingRudderDialVisible
- def SetSH5EHeadingRudderDialVisible( value ):
- global SH5EHeadingRudderDialVisible
- SH5EHeadingRudderDialVisible = value
- def GetCurrentlySelectedTube():
- global CurrentlySelectedTube
- return CurrentlySelectedTube
- def SetCurrentlySelectedTube( value ):
- global CurrentlySelectedTube
- CurrentlySelectedTube = value
- def GetInSalvoMode():
- global InSalvoMode
- return InSalvoMode
- def SetInSalvoMode( value ):
- global InSalvoMode
- InSalvoMode = value
- def GetAutomaticallyRaiseAttackScope():
- global AutomaticallyRaiseAttackScope
- return AutomaticallyRaiseAttackScope
- def GetRealisticTorpFiringInProgress():
- global RealisticTorpFiringInProgress
- return RealisticTorpFiringInProgress
- def SetRealisticTorpFiringInProgress( value ):
- global RealisticTorpFiringInProgress
- RealisticTorpFiringInProgress = value
- def GetAutomaticallyFullyLowerAttackScope():
- global AutomaticallyFullyLowerAttackScope
- return AutomaticallyFullyLowerAttackScope
- def GetAutomaticallyFullyLowerObsScope():
- global AutomaticallyFullyLowerObsScope
- return AutomaticallyFullyLowerObsScope
- def GetXOTDCDialogAllowedToPop():
- global XOTDCDialogAllowedToPop
- return XOTDCDialogAllowedToPop
- def GetCrashDiveKey():
- global CrashDiveKey
- return CrashDiveKey
- def GetXOTDCManualTargetingEnforced():
- global XOTDCManualTargetingEnforced
- return XOTDCManualTargetingEnforced
- def GetTDCIsOn():
- global TDCIsOn
- return TDCIsOn
- def SetTDCIsOn( value ):
- global TDCIsOn
- TDCIsOn = value
- def GetAutomaticallyOrderRechargeModeUponSurfacing():
- global AutomaticallyOrderRechargeModeUponSurfacing
- return AutomaticallyOrderRechargeModeUponSurfacing
- def GetAutomaticallyOrderRechargeModeWhenSnorkeling():
- global AutomaticallyOrderRechargeModeWhenSnorkeling
- return AutomaticallyOrderRechargeModeWhenSnorkeling
- def GetAutoShowClockOnFollowTarget():
- global AutoShowClockOnFollowTarget
- return AutoShowClockOnFollowTarget
- def GetAutoShowClockOnTorpFire():
- global AutoShowClockOnTorpFire
- return AutoShowClockOnTorpFire
- def GetNavigatorAssistAOBSpeedCalcs():
- global NavigatorAssistAOBSpeedCalcs
- return NavigatorAssistAOBSpeedCalcs
- def GetTorpedoAutoloadingEnabled():
- global TorpedoAutoloadingEnabled
- return TorpedoAutoloadingEnabled
- def GetMaxSpeedWhenSnorkelRaised():
- global MaxSpeedWhenSnorkelRaised
- return MaxSpeedWhenSnorkelRaised
- def GetUpdateJournalWithSubsPosition():
- global UpdateJournalWithSubsPosition
- return UpdateJournalWithSubsPosition
- def GetTAIInitialWidth():
- global TAIInitialWidth
- return TAIInitialWidth
- def GetTAIInitialHeight():
- global TAIInitialHeight
- return TAIInitialHeight
- def GetNavCalcTimeAOBSpeedFromRangeMeasurementsBase():
- global NavCalcTimeAOBSpeedFromRangeMeasurementsBase
- return NavCalcTimeAOBSpeedFromRangeMeasurementsBase
- def GetNavCalcTimeSpeedFromTimeMeasurementsBase():
- global NavCalcTimeSpeedFromTimeMeasurementsBase
- return NavCalcTimeSpeedFromTimeMeasurementsBase
- def GetAttackFullyLowerButtonLeavesStationForBridge():
- global AttackFullyLowerButtonLeavesStationForBridge
- return AttackFullyLowerButtonLeavesStationForBridge
- def GetDiveTeleportToStation():
- global DiveTeleportToStation
- return DiveTeleportToStation
- def GetAttackRAOBFEnabled():
- global AttackRAOBFEnabled
- return AttackRAOBFEnabled
- def SetAttackRAOBFEnabled( value ):
- global AttackRAOBFEnabled
- AttackRAOBFEnabled = value
- def GetObsRAOBFEnabled():
- global ObsRAOBFEnabled
- return ObsRAOBFEnabled
- def SetObsRAOBFEnabled( value ):
- global ObsRAOBFEnabled
- ObsRAOBFEnabled = value
- def GetUZORAOBFEnabled():
- global UZORAOBFEnabled
- return UZORAOBFEnabled
- def SetUZORAOBFEnabled( value ):
- global UZORAOBFEnabled
- UZORAOBFEnabled = value
- def GetAttackAttackDiskEnabled():
- global AttackAttackDiskEnabled
- return AttackAttackDiskEnabled
- def SetAttackAttackDiskEnabled( value ):
- global AttackAttackDiskEnabled
- AttackAttackDiskEnabled = value
- def GetObsAttackDiskEnabled():
- global ObsAttackDiskEnabled
- return ObsAttackDiskEnabled
- def SetObsAttackDiskEnabled( value ):
- global ObsAttackDiskEnabled
- ObsAttackDiskEnabled = value
- def GetUZOAttackDiskEnabled():
- global UZOAttackDiskEnabled
- return UZOAttackDiskEnabled
- def SetUZOAttackDiskEnabled( value ):
- global UZOAttackDiskEnabled
- UZOAttackDiskEnabled = value
- def GetNavMapAttackDiskEnabled():
- global NavMapAttackDiskEnabled
- return NavMapAttackDiskEnabled
- def SetNavMapAttackDiskEnabled( value ):
- global NavMapAttackDiskEnabled
- NavMapAttackDiskEnabled = value
- def GetMessageBoxIsDraggable():
- global MessageBoxIsDraggable
- return MessageBoxIsDraggable
- def GetHideTDCDialsWhenUsingRAOBF():
- global HideTDCDialsWhenUsingRAOBF
- return HideTDCDialsWhenUsingRAOBF
- def GetScopesDepthIndicatorScrolls():
- global ScopesDepthIndicatorScrolls
- return ScopesDepthIndicatorScrolls
- def GetScopesDepthIndicatorScrollsTD():
- global ScopesDepthIndicatorScrollsTD
- return ScopesDepthIndicatorScrollsTD
- def GetScopesTorpedoBoxScrolls():
- global ScopesTorpedoBoxScrolls
- return ScopesTorpedoBoxScrolls
- def GetScopesTorpedoBoxScrollsTD():
- global ScopesTorpedoBoxScrollsTD
- return ScopesTorpedoBoxScrollsTD
- def GetTCxOnMessageBoxText():
- global TCxOnMessageBoxText
- return TCxOnMessageBoxText
- def SetTCxOnMessageBoxText( value ):
- global TCxOnMessageBoxText
- TCxOnMessageBoxText = value
- def GetTCxOnMessageBoxTextNumbers():
- global TCxOnMessageBoxTextNumbers
- return TCxOnMessageBoxTextNumbers
- def GetTCxOnMessageBoxTextDesiredTCLevel():
- global TCxOnMessageBoxTextDesiredTCLevel
- return TCxOnMessageBoxTextDesiredTCLevel
- def GetAutomation():
- global Automation
- return Automation
- def GetAutomationIDForTutorial():
- global AutomationIDForTutorial
- return AutomationIDForTutorial
- def SetAutomationIDForTutorial( value ):
- global AutomationIDForTutorial
- AutomationIDForTutorial = value
- def GetAutomationHotKey():
- global AutomationHotKey
- return AutomationHotKey
- def GetRadarSweepMode():
- global RadarSweepMode
- return RadarSweepMode
- def SetRadarSweepMode( value ):
- global RadarSweepMode
- RadarSweepMode = value
- def GetRadarMode():
- global RadarMode
- return RadarMode
- def SetRadarMode( value ):
- global RadarMode
- RadarMode = value
- def GetRadarRangeMode():
- global RadarRangeMode
- return RadarRangeMode
- def SetRadarRangeMode( value ):
- global RadarRangeMode
- RadarRangeMode = value
- def GetAutomationDebuggingEnabled():
- global AutomationDebuggingEnabled
- return AutomationDebuggingEnabled
- def GetDelayNewSpeedThrottleCommand():
- global DelayNewSpeedThrottleCommand
- return DelayNewSpeedThrottleCommand
- def GetNewSpeedThrottleDelayMin():
- global NewSpeedThrottleDelayMin
- return int( NewSpeedThrottleDelayMin )
- def GetNewSpeedThrottleDelayMax():
- global NewSpeedThrottleDelayMax
- return int( NewSpeedThrottleDelayMax )
- def GetTC1OnAnyMessageBoxText():
- global TC1OnAnyMessageBoxText
- return TC1OnAnyMessageBoxText
- def SetTC1OnAnyMessageBoxText( value ):
- global TC1OnAnyMessageBoxText
- TC1OnAnyMessageBoxText = value
- def GetMessageBoxScrolls():
- global MessageBoxScrolls
- return MessageBoxScrolls
- def GetMessageBoxHideTD():
- global MessageBoxHideTD
- return MessageBoxHideTD
- def GetCrewOnDeckMode():
- global CrewOnDeckMode
- return CrewOnDeckMode
- def SetCrewOnDeckMode( value ):
- global CrewOnDeckMode
- CrewOnDeckMode = value
- def GetDGunFireMode():
- global DGunFireMode
- return DGunFireMode
- def SetDGunFireMode( value ):
- global DGunFireMode
- DGunFireMode = value
- def GetDGunRangeMode():
- global DGunRangeMode
- return DGunRangeMode
- def SetDGunRangeMode( value ):
- global DGunRangeMode
- DGunRangeMode = value
- def GetDGunAimMode():
- global DGunAimMode
- return DGunAimMode
- def SetDGunAimMode( value ):
- global DGunAimMode
- DGunAimMode = value
- def GetAAGunFireMode():
- global AAGunFireMode
- return AAGunFireMode
- def SetAAGunFireMode( value ):
- global AAGunFireMode
- AAGunFireMode = value
- def GetAAGunRangeMode():
- global AAGunRangeMode
- return AAGunRangeMode
- def SetAAGunRangeMode( value ):
- global AAGunRangeMode
- AAGunRangeMode = value
- def GetAAGunPriorityMode():
- global AAGunPriorityMode
- return AAGunPriorityMode
- def SetAAGunPriorityMode( value ):
- global AAGunPriorityMode
- AAGunPriorityMode = value
- def GetAAGunAimMode():
- global AAGunAimMode
- return AAGunAimMode
- def SetAAGunAimMode( value ):
- global AAGunAimMode
- AAGunAimMode = value
- def GetRealNavigation():
- global RealNavigation
- return RealNavigation
- def GetSubsCurrentPositionVisible():
- global subscurrentpositionvisible
- return subscurrentpositionvisible
- def SetSubsCurrentPositionVisible( value ):
- global subscurrentpositionvisible
- subscurrentpositionvisible = value
- def GetHeadingBarIsExpanded():
- global HeadingBarIsExpanded
- return HeadingBarIsExpanded
- def GetHeadingBarStartAdvanced():
- global HeadingBarStartAdvanced
- return HeadingBarStartAdvanced
- def GetAdvancedHudIsEnabled():
- global AdvancedHudIsEnabled
- return AdvancedHudIsEnabled
- def GetMostFuelEfficientSpeed():
- global MostFuelEfficientSpeed
- return MostFuelEfficientSpeed
- def GetTopRightBarsScroll():
- global TopRightBarsScroll
- return TopRightBarsScroll
- def GetTopRightBarsHideTD():
- global TopRightBarsHideTD
- return TopRightBarsHideTD
- def GetEssentialControlsScroll():
- global EssentialControlsScroll
- return EssentialControlsScroll
- def GetEssentialControlsHideTD():
- global EssentialControlsHideTD
- return EssentialControlsHideTD
- def GetCameraBarVisible():
- global CameraBarVisible
- return CameraBarVisible
- def SetCameraBarVisible( value ):
- global CameraBarVisible
- CameraBarVisible = value
- def GetCameraBarScrolls():
- global CameraBarScrolls
- return CameraBarScrolls
- def GetWarningsScroll():
- global WarningsScroll
- return WarningsScroll
- def SetWarningsScroll( value ):
- global WarningsScroll
- WarningsScroll = value
- def GetDepthGroupBarVisible():
- global DepthGroupBarVisible
- return DepthGroupBarVisible
- def SetDepthGroupBarVisible( value ):
- global DepthGroupBarVisible
- DepthGroupBarVisible = value
- def GetMapToolsAsObjects():
- global MapToolsAsObjects
- return MapToolsAsObjects
- def GetTCxOnContactDistanceEnabledTCLevel():
- global TCxOnContactDistanceEnabledTCLevel
- return TCxOnContactDistanceEnabledTCLevel
- def SetTCxOnContactDistanceEnabledTCLevel( value ):
- global TCxOnContactDistanceEnabledTCLevel
- TCxOnContactDistanceEnabledTCLevel = value
- def GetTCxOnContactDistanceRadius():
- global TCxOnContactDistanceRadius
- return TCxOnContactDistanceRadius
- def SetTCxOnContactDistanceRadius( value ):
- global TCxOnContactDistanceRadius
- TCxOnContactDistanceRadius = value
- def GetTCxOnContactDistanceTCLevel():
- global TCxOnContactDistanceTCLevel
- return TCxOnContactDistanceTCLevel
- def SetTCxOnContactDistanceTCLevel( value ):
- global TCxOnContactDistanceTCLevel
- TCxOnContactDistanceTCLevel = value
- def GetTravelModeEnabled():
- global TravelModeEnabled
- return TravelModeEnabled
- def GetNavCelestialMaxCalcFixError():
- global NavCelestialMaxCalcFixError
- return NavCelestialMaxCalcFixError
- def GetNavCelestialCalcFixMinTime():
- global NavCelestialCalcFixMinTime
- return NavCelestialCalcFixMinTime
- def GetNavCelestialCalcFixMaxTime():
- global NavCelestialCalcFixMaxTime
- return NavCelestialCalcFixMaxTime
- def GetNavShowPositionOnMapsAfterCalc():
- global NavShowPositionOnMapsAfterCalc
- return NavShowPositionOnMapsAfterCalc
- def GetNavShowPositionOnMapsAfterCalcTime():
- global NavShowPositionOnMapsAfterCalcTime
- return NavShowPositionOnMapsAfterCalcTime
- def GetNavDeadReckoningMaxCalcFixError():
- global NavDeadReckoningMaxCalcFixError
- return NavDeadReckoningMaxCalcFixError
- def GetNavDeadReckoningMinCalcTime():
- global NavDeadReckoningMinCalcTime
- return NavDeadReckoningMinCalcTime
- def GetNavDeadReckoningMaxCalcTime():
- global NavDeadReckoningMaxCalcTime
- return NavDeadReckoningMaxCalcTime
- def GetDeleteMarksHotKey():
- global DeleteMarksHotKey
- return DeleteMarksHotKey
- def GetRepositionMarksHotKey():
- global RepositionMarksHotKey
- return RepositionMarksHotKey
- def GetEditMarksTextHotKey():
- global EditMarksTextHotKey
- return EditMarksTextHotKey
- def GetEditMarksTextKeepExistingHotKey():
- global EditMarksTextKeepExistingHotKey
- return EditMarksTextKeepExistingHotKey
- def GetSuperMarksColor():
- global SuperMarksColor
- return SuperMarksColor
- def GetNavFixesColor():
- global NavFixesColor
- return NavFixesColor
- def GetDestroyedMarksColor():
- global DestroyedMarksColor
- return DestroyedMarksColor
- def GetDigitalClockStartsInLocalTime():
- global DigitalClockStartsInLocalTime
- return DigitalClockStartsInLocalTime
- def GetSOANEnabled():
- global SOANEnabled
- return SOANEnabled
- def SetSOANEnabled( value ):
- global SOANEnabled
- SOANEnabled = value
- def GetAutoEnableChartsOpenSOANToIdentifiedUnit():
- global AutoEnableChartsOpenSOANToIdentifiedUnit
- return AutoEnableChartsOpenSOANToIdentifiedUnit
- def GetChartsHotKey():
- global ChartsHotKey
- return ChartsHotKey
- def GetUserChartsCategoriesStartExpanded():
- global UserChartsCategoriesStartExpanded
- return UserChartsCategoriesStartExpanded
- def GetUserChartsChartsStartExpanded():
- global UserChartsChartsStartExpanded
- return UserChartsChartsStartExpanded
- def GetMostFuelEfficientSpeedHotKey():
- global MostFuelEfficientSpeedHotKey
- return MostFuelEfficientSpeedHotKey
- def GetAutomationActionMessagesDisplayed():
- global AutomationActionMessagesDisplayed
- return AutomationActionMessagesDisplayed
- def GetAutomationScriptHotKey1():
- global AutomationScriptHotKey1
- return AutomationScriptHotKey1
- def GetAutomationScriptHotKey2():
- global AutomationScriptHotKey2
- return AutomationScriptHotKey2
- def GetAutomationScriptHotKey3():
- global AutomationScriptHotKey3
- return AutomationScriptHotKey3
- def GetAutomationScriptHotKey4():
- global AutomationScriptHotKey4
- return AutomationScriptHotKey4
- def GetNavigationFixes():
- global navigationfixes
- return navigationfixes
- def SetNavigationFixes( value ):
- global navigationfixes
- navigationfixes = value
- def GetSettingNavMapMarker():
- global settingnavmapmarker
- return settingnavmapmarker
- def SetSettingNavMapMarker( value ):
- global settingnavmapmarker
- settingnavmapmarker = value
- def GetMarksHaveKeyboard():
- global markshavekeyboard
- return markshavekeyboard
- def SetMarksHaveKeyboard( value ):
- global markshavekeyboard
- markshavekeyboard = value
- def GetNavFixRepositioning():
- global navfixrepositioning
- return navfixrepositioning
- def SetNavFixRepositioning( value ):
- global navfixrepositioning
- navfixrepositioning = value
- def GetTimeZoneModifier():
- global timezonemodifier
- return timezonemodifier
- def SetTimeZoneModifier( value ):
- global timezonemodifier
- timezonemodifier = value
- def GetSuperMarks():
- global supermarks
- return supermarks
- def SetSuperMarks( value ):
- global supermarks
- supermarks = value
- def GetSettingSuperMark():
- global settingsupermark
- return settingsupermark
- def SetSettingSuperMark( value ):
- global settingsupermark
- settingsupermark = value
- def GetSuperMarkRepositioning():
- global supermarkrepositioning
- return supermarkrepositioning
- def SetSuperMarkRepositioning( value ):
- global supermarkrepositioning
- supermarkrepositioning = value
- def GetSuperMarksToCreate():
- global supermarkstocreate
- return supermarkstocreate
- def SetSuperMarksToCreate( value ):
- global supermarkstocreate
- supermarkstocreate = value
- def GetNavFixesToCreate():
- global navfixestocreate
- return navfixestocreate
- def SetNavFixesToCreate( value ):
- global navfixestocreate
- navfixestocreate = value
- def GetDestroyedMarks():
- global destroyedmarks
- return destroyedmarks
- def SetDestroyedMarks( value ):
- global destroyedmarks
- destroyedmarks = value
- def GetTDWSound():
- global tdwsound
- return tdwsound
- def GetTDWMouse():
- global tdwmouse
- return tdwmouse
- def GetTDWSoan():
- global tdwsoan
- return tdwsoan
- def GetSpeechEngineFound():
- global SpeechEngineFound
- return SpeechEngineFound
- def SetSpeechEngineFound( value ):
- global SpeechEngineFound
- SpeechEngineFound = value
- def GetTimeIsLocalTime():
- global timeislocaltime
- return timeislocaltime
- def SetTimeIsLocalTime( value ):
- global timeislocaltime
- timeislocaltime = value
- def GetTDWDestroyedMarks():
- global tdwdestroyedmarks
- return tdwdestroyedmarks
- def GetHydroFollowContact():
- global hydrofollowcontact
- return hydrofollowcontact
- def SetHydroFollowContact( value ):
- global hydrofollowcontact
- hydrofollowcontact = value
- from Pagelayout import Pagelayout_HPTimer
- if hydrofollowcontact == None or HydroFollowContactUpdateInterval == 0:
- Pagelayout_HPTimer.RemoveItem( TimerID_HydroFollowContactBearing, -1 )
- else:
- Pagelayout_HPTimer.RemoveThenAddItem( TimerID_HydroFollowContactBearing, -1, HydroFollowContactUpdateInterval, True, True )
- if hydrofollowcontact == None or HydroFollowContactDeltaBearing == 0:
- Pagelayout_HPTimer.RemoveItem( TimerID_HydroFollowContactDeltaBearing, -1 )
- else:
- Pagelayout_HPTimer.RemoveThenAddItem( TimerID_HydroFollowContactDeltaBearing, -1, 1, True, True )
- if hydrofollowcontact != None and HydroFollowContactDeltaBearing != 0:
- from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
- sub = PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact
- angle = sub.HeadingDEGToContact( GetHydroFollowContact() ) - TDWUtils.GetContactHeading( sub.HeadingDEG ) + 0.25
- while angle < 0:
- angle += 360
- hydrofollowcontact[ "DeltaBearingToSub" ] = angle
- def GetHydroFollowContactUpdateInterval():
- global HydroFollowContactUpdateInterval
- return HydroFollowContactUpdateInterval
- def SetHydroFollowContactUpdateInterval( value ):
- global HydroFollowContactUpdateInterval
- HydroFollowContactUpdateInterval = value
- def GetHydroFollowContactDeltaBearing():
- global HydroFollowContactDeltaBearing
- return HydroFollowContactDeltaBearing
- def SetHydroFollowContactDeltaBearing( value ):
- global HydroFollowContactDeltaBearing
- HydroFollowContactDeltaBearing = value
- def GetHydroFollowNearestContactSweepRange():
- global HydroFollowNearestContactSweepRange
- return HydroFollowNearestContactSweepRange
- def SetHydroFollowNearestContactSweepRange( value ):
- global HydroFollowNearestContactSweepRange
- HydroFollowNearestContactSweepRange = value
- def GetHydroFollowNearestContactMaxRange():
- global HydroFollowNearestContactMaxRange
- return HydroFollowNearestContactMaxRange
- def SetHydroFollowNearestContactMaxRange( value ):
- global HydroFollowNearestContactMaxRange
- HydroFollowNearestContactMaxRange = value
- def GetElectricsOnly():
- global ElectricsOnly
- return ElectricsOnly
- def SetElectricsOnly( value ):
- global ElectricsOnly
- ElectricsOnly = value
- def GetSextantActive():
- global sextantactive
- return sextantactive
- def SetSextantActive( value ):
- global sextantactive
- sextantactive = value
- ScriptManagerManaged.Trace( "TDWUO: sextant active=" + str( value ) )
- #def GetCrewDialogLines():
- # global CrewDialogLines
- # return CrewDialogLines
- ########################################################## Debugging #################################################################
- MasterDebugEnabled = False
- def GetMasterDebugEnabled():
- global MasterDebugEnabled
- return MasterDebugEnabled
- def SetMasterDebugEnabled( value ):
- global MasterDebugEnabled
- MasterDebugEnabled = value
- def GetDisplaySapiensKey():
- global DisplaySapiensKey
- return DisplaySapiensKey
- def SetDisplaySapiensKey( value ):
- global DisplaySapiensKey
- DisplaySapiensKey = value
- def GetDisplayKeyPressedKey():
- global DisplayKeyPressedKey
- return DisplayKeyPressedKey
- def SetDisplayKeyPressedKey( value ):
- global DisplayKeyPressedKey
- DisplayKeyPressedKey = value
- def GetDisplayKeyReleasedKey():
- global DisplayKeyReleasedKey
- return DisplayKeyReleasedKey
- def SetDisplayKeyReleasedKey( value ):
- global DisplayKeyReleasedKey
- DisplayKeyReleasedKey = value
- def GetDisplayCurrentStationsKey():
- global DisplayCurrentStationsKey
- return DisplayCurrentStationsKey
- def SetDisplayCurrentStationsKey( value ):
- global DisplayCurrentStationsKey
- DisplayCurrentStationsKey = value
- def GetDisplayActiveStationKey():
- global DisplayActiveStationKey
- return DisplayActiveStationKey
- def SetDisplayActiveStationKey( value ):
- global DisplayActiveStationKey
- DisplayActiveStationKey = value
- def GetDisplayActiveCameraKey():
- global DisplayActiveCameraKey
- return DisplayActiveCameraKey
- def SetDisplayActiveCameraKey( value ):
- global DisplayActiveCameraKey
- DisplayActiveCameraKey = value
- def GetToggleDisplaySubmarineCommandsKey():
- global ToggleDisplaySubmarineCommandsKey
- return ToggleDisplaySubmarineCommandsKey
- def SetToggleDisplaySubmarineCommandsKey( value ):
- global ToggleDisplaySubmarineCommandsKey
- ToggleDisplaySubmarineCommandsKey = value
- def GetToggleDisplaySubmarineDelayedCommandsKey():
- global ToggleDisplaySubmarineDelayedCommandsKey
- return ToggleDisplaySubmarineDelayedCommandsKey
- def SetToggleDisplaySubmarineDelayedCommandsKey( value ):
- global ToggleDisplaySubmarineDelayedCommandsKey
- ToggleDisplaySubmarineDelayedCommandsKey = value
- def GetDisplayMouseDataKey():
- global DisplayMouseData
- return DisplayMouseData
- ####################################################################################################################################
- import clr
- clr.AddReference( "System" )
- clr.AddReference( "TDWSound" )
- clr.AddReference( "TDWMouse" )
- clr.AddReference( "TDWUtils" )
- clr.AddReference( "TDWFileUtils" )
- clr.AddReference( "TDWSoan" )
- clr.AddReference( "TDWRadioMessages" )
- clr.AddReference( "TDWDestroyedMarks" )
- #clr.AddReference( "TDWTest" )
- from TheDarkWraith.SilentHunter5 import TDWSound
- from TheDarkWraith.SilentHunter5 import TDWMouse
- from TheDarkWraith.SilentHunter5 import TDWUtils
- from TheDarkWraith.SilentHunter5 import TDWFileUtils
- from TheDarkWraith.SilentHunter5 import TDWSoan
- from TheDarkWraith.SilentHunter5 import TDWRadioMessages
- from TheDarkWraith.SilentHunter5 import TDWDestroyedMarks
- #from TheDarkWraith.SilentHunter5 import TDWTest
- from System import String, Text, Array, DateTime, Int32, UInt32, Random, Math, Single
- from System.IO import Directory, File, FileMode, FileStream, StreamReader, BinaryReader, BinaryWriter, FileAccess, SeekOrigin
- from System.Text import Encoding
- from System.Collections.Generic import Dictionary, List
- from System.Globalization import CultureInfo
- clr.AddReference("System.Drawing")
- from System.Drawing import PointF
- #clr.AddReference( "System.Windows.Forms" )
- #from System.Windows.Forms import DialogResult, FolderBrowserDialog
- from game import Game
- from menu import Menu
- from TheDarkWraithAutomation import TheDarkWraithAutomation
- TheDarkWraithAutomation.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )
- from TheDarkWraithAutomation import TDWAutomation
- ########################################################################################################
- #tdwtest = None
- def InitializeScript():
- ScriptManagerManaged.Trace( "TheDarkWraithUserOptions InitializeScript" )
- installpath = TDWFileUtils.DetermineSH5InstallPathFromRegistry()
- SetSH5InstallPath(installpath)
- # show sh5 exe file version
- sh5exefileversion = TDWFileUtils.GetSHEXEVersion( 5, installpath )
- if sh5exefileversion == "":
- ScriptManagerManaged.Trace( "Unable to determine sh5.exe file version" )
- else:
- ScriptManagerManaged.Trace( "sh5.exe file version is " + sh5exefileversion )
- # show DLL file versions
- ScriptManagerManaged.Trace( "\nTDW DLL versions:" )
- for fdll in Directory.GetFiles( GetSH5InstallPath(), "TDW*.dll" ):
- ScriptManagerManaged.Trace( fdll + "=" + TDWFileUtils.GetDLLVersion( fdll ) )
- # read in JSGME info
- jsgmeinfo = GetSH5InstallPath() + "\\JSGME.ini"
- if File.Exists( jsgmeinfo ):
- jsgmemods = TDWFileUtils.FindEntryInFileStartingAtHeader( jsgmeinfo, "[MODS FOLDER]", "Name", True, ";" )
- if jsgmemods != None:
- jsgmeinfo2 = GetSH5InstallPath() + "\\" + jsgmemods + "\\JSGME.ini"
- if File.Exists( jsgmeinfo2 ):
- sf = None
- sr = None
- try:
- sf = File.Open( jsgmeinfo2, FileMode.Open, FileAccess.Read )
- sr = StreamReader( sf )
- contents = sr.ReadToEnd()
- ScriptManagerManaged.Trace( "\nMODS installed:\n" + contents )
- except:
- pass
- if sr != None:
- sr.Close()
- ScriptManagerManaged.Trace( "" )
- global Automation
- global RadioMessages
- from TheDarkWraithAutomation import TheDarkWraithAutomation
- # set TDWAutomation class globals
- TDWAutomation.useroptionsfilepath = GetUserOptionsFilePathname()
- TDWAutomation.sh5installpath = SH5InstallPath
- TDWAutomation.automationdebuggingenabled = AutomationDebuggingEnabled
- TDWAutomation.automationactionmessagesdisplayed = AutomationActionMessagesDisplayed
- TDWAutomation.automationpath = GetAutomationPath()
- TDWAutomation.tutorialimagepath = GetTutorialImagePath()
- TDWAutomation.tutorialimagename = GetTutorialImageName()
- Automation = TDWAutomation( TheDarkWraithAutomation )
- global tdwsound
- tdwsound = TDWSound()
- #tdwsound.PlaySound( "C:\Games\Ubisoft\Silent Hunter 5\\data\\Sound\\Blur.wav", 0.8 )
- global RadioMessagesEnabled
- if RadioMessagesEnabled:
- global RadioMessageLanguage
- global RadioMessagesContactReportMaxRadius
- global RadioMessagesContactReportMinRadius
- global RadioMessagesContactReportChance
- RadioMessages = TDWRadioMessages( tdwsound, GetTC1OnNewRadioMessage, GetInformBDUMessages, GetInformRadioMessages, GetInformSubSightedMessages, GetInformDestroyedMessages, GetAllowedToSelectTarget, GetSubIsUnderwater, Game, Menu, RadioMessageLanguage, GetSH5InstallPath(), GetUboatHullNumber(), GetBelowThisDepthDontReceiveRadio(), GetRadioMessagesInterceptChance(), GetRadioMessagesFlashTime(), RadioMessagesContactReportMaxRadius, RadioMessagesContactReportMinRadius, RadioMessagesContactReportChance )
- else:
- RadioMessages = None
- # get the ships of all nations
- if SOANEnabled:
- global tdwsoan
- tdwsoan = TDWSoan( GetSH5InstallPath() )
- #GetCrewDialogLinesFromFiles()
- TDWUO_InitializeVariables()
- global SpeechEngineFound
- SpeechEngineFound = False
- # check to see if real navigation or not
- global RealNavigation
- if File.Exists( GetSH5InstallPath() + "\\data\\Real_navigation.txt" ):
- ScriptManagerManaged.Trace( "Using real navigation" )
- RealNavigation = True
- global NavSetCourseWhenSubIsClicked
- NavSetCourseWhenSubIsClicked = False
- global NavActivateWaypointToolWhenWaypointClicked
- NavActivateWaypointToolWhenWaypointClicked = False
- global NavHydrophoneEnabled
- NavHydrophoneEnabled = False
- global NavSonarEnabled
- NavSonarEnabled = False
- global NavVisualEnabled
- NavVisualEnabled = False
- global NavRadarEnabled
- NavRadarEnabled = False
- global NavTorpedoSolutionEnabled
- NavTorpedoSolutionEnabled = False
- global NavCameraPositionAndOrientationEnabled
- NavCameraPositionAndOrientationEnabled = False
- global NavTorpedoImpactPointsEnabled
- NavTorpedoImpactPointsEnabled = False
- global NavParallelCourseButtonEnabled
- NavParallelCourseButtonEnabled = False
- global NavInterceptCourseButtonEnabled
- NavInterceptCourseButtonEnabled = False
- global TAISetCourseWhenSubIsClicked
- TAISetCourseWhenSubIsClicked = False
- global TAIActivateWaypointToolWhenWaypointClicked
- TAIActivateWaypointToolWhenWaypointClicked = False
- global TAIHydrophoneEnabled
- TAIHydrophoneEnabled = False
- global TAISonarEnabled
- TAISonarEnabled = False
- global TAIVisualEnabled
- TAIVisualEnabled = False
- global TAIRadarEnabled
- TAIRadarEnabled = False
- global TAITorpedoSolutionEnabled
- TAITorpedoSolutionEnabled = False
- global TAICameraPositionAndOrientationEnabled
- TAICameraPositionAndOrientationEnabled = False
- global TAITorpedoImpactPointsEnabled
- TAITorpedoImpactPointsEnabled = False
- global TAIParallelCourseButtonEnabled
- TAIParallelCourseButtonEnabled = False
- global TAIInterceptCourseButtonEnabled
- TAIInterceptCourseButtonEnabled = False
- global tdwmouse
- tdwmouse = TDWMouse()
- if tdwmouse == None:
- ScriptManagerManaged.Trace( "TDWMouse == None!" )
- TDWFileUtils.SetInstallPath( GetSH5InstallPath() )
- TDWFileUtils.SetMenuReference( Menu )
- global tdwdestroyedmarks
- tdwdestroyedmarks = TDWDestroyedMarks( Game, Menu, RealNavigation )
- # global tdwtest
- # tdwtest = TDWTest( IPTest, Menu.TimeCompression )
- #
- # tup = tdwtest.GetTuple()
- # ScriptManagerManaged.Trace( "tup=" + str( tup ) + "\n" + str( tup[ 0 ] ) + " " + tup[ 1 ] + str( tup[ 2 ] ) + "\n" + str( tup[ 0 ].GetType() ) + " " + str( tup[ 1 ].GetType() ) + " " + str( tup[ 2 ].GetType() ) )
- ########################################################################################################
- def StartGame():
- ScriptManagerManaged.Trace( "TheDarkWraithUserOptions StartGame" )
- global TDCIsOn
- TDCIsOn = Game.GetGameplaySettings( GameWrapper.GameplaySettingsEntries.ManualTargetingSystem )
- Automation.Initialize()
- global RadioMessagesEnabled
- if RadioMessagesEnabled:
- from menu import event
- if not TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ]:
- TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = event()
- TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ].make_caller()
- global RadioMessages
- from PageDefaultHud import Game_NewPlayerLogMessageCSharp
- from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
- from PageDefaultHud import PageDefaultHud_MenuGroup_QuickAccess_RadioTraffic
- from PageRadioMessages import PageRadioMessages
- from Pagenavigationmap import Pagenavigationmap
- from menu import BlinkMenuItemTransparency, StopBlinkMenuItemTransparency, BlinkContinuousMenuItemTransparency, StopBlinkContinuousMenuItemTransparency
- RadioMessages.Initialize( Game_NewPlayerLogMessageCSharp, TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ], PageRadioMessages, Pagenavigationmap, PageDefaultHud_MapGroup_Mapcontrol, PageDefaultHud_MenuGroup_QuickAccess_RadioTraffic, BlinkContinuousMenuItemTransparency, StopBlinkContinuousMenuItemTransparency, BlinkMenuItemTransparency, StopBlinkMenuItemTransparency )
- else:
- TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = None
- TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = None
- #global tdwtest
- #tdwtest.SetTCLevel( 4 )
- #def IPTest():
- # global tdwtest
- # ScriptManagerManaged.Trace( "called from C# app! TC=" + str( tdwtest.GetTCLevel() ) )
- ########################################################################################################
- def TDWUO_InitializeVariables():
- ScriptManagerManaged.Trace( "TheDarkWraithUserOptions InitializeVariables" )
- global DamageControlTeamActive
- DamageControlTeamActive = False
- global SnorkelEnabled
- SnorkelEnabled = True
- global FollowSelectedTargetWithCamera
- FollowSelectedTargetWithCamera = False
- global SilentRunning
- SilentRunning = False
- global SnorkelRaised
- SnorkelRaised = False
- global BattlestationsActivated
- BattlestationsActivated = False
- global ShowNavMapTDC
- ShowNavMapTDC = False
- global IgnoreNewLogMessages
- IgnoreNewLogMessages = True
- global RealisticTorpFiringInProgress
- RealisticTorpFiringInProgress = False
- global SelectedTorpTubes
- SelectedTorpTubes = [ 0 ]
- global SH5EHeadingRudderDialVisible
- SH5EHeadingRudderDialVisible = False
- global TorpDoorsStatus
- TorpDoorsStatus = [ False, False, False, False, False, False ]
- global TorpDoorsEnabled
- TorpDoorsEnabled = [ True, True, True, True, True, True ]
- global CurrentlySelectedTube
- CurrentlySelectedTube = 0
- global InSalvoMode
- InSalvoMode = False
- global CrewOnDeckMode
- global WatchCrewMode
- CrewOnDeckMode = WatchCrewMode
- global DGunFireMode
- global DGunFireModeHold
- DGunFireMode = DGunFireModeHold
- global DGunRangeMode
- global DGunRangeModeShort
- DGunRangeMode = DGunRangeModeShort
- global DGunAimMode
- global DGunAimModeWaterline
- DGunAimMode = DGunAimModeWaterline
- global AAGunFireMode
- global AAGunFireModeHold
- AAGunFireMode = AAGunFireModeHold
- global AAGunRangeMode
- global AAGunRangeModeShort
- AAGunRangeMode = AAGunRangeModeShort
- global AAGunPriorityMode
- global AAGunPriorityModeAnyAircraft
- AAGunPriorityMode = AAGunPriorityModeAnyAircraft
- global AAGunAimMode
- global AAGunAimModeAnyTarget
- AAGunAimMode = AAGunAimModeAnyTarget
- global AutomationIDForTutorial
- AutomationIDForTutorial = None
- global TutorialToStart
- TutorialToStart = None
- global settingnavmapmarker
- settingnavmapmarker = False
- global markshavekeyboard
- markshavekeyboard = False
- global navfixrepositioning
- navfixrepositioning = None
- global settingsupermark
- settingsupermark = False
- global supermarkrepositioning
- supermarkrepositioning = None
- global timezonemodifier
- timezonemodifier = 0
- global TutorialMissionName
- TutorialMissionName = None
- global hydrofollowcontact
- hydrofollowcontact = None
- ########################################################################################################
- # handles the automation event for when a script completes
- def AutomationEvent( scriptname ):
- try:
- from PageAutomation import SetActivatedScriptStartStopPause
- SetActivatedScriptStartStopPause( scriptname )
- except:
- pass
- ########################################################################################################
- # clear all the user marks (navigation fixes and supermarks and destroyed marks)
- def ClearAllUserMarks():
- ScriptManagerManaged.Trace("Clearing all user marks")
- for fix in GetNavigationFixes():
- for ctrl in fix[ 0 ].Controls:
- Menu.DeleteItemOnEndOfFrame( ctrl )
- Menu.DeleteItemOnEndOfFrame( fix[ 0 ] )
- SetNavigationFixes( [] )
- from Pagenavigationmap import Pagenavigationmap_Mapcontrol
- for ctrl in Pagenavigationmap_Mapcontrol.Controls:
- if ctrl.Name == "MapFix" or ctrl.Name == "DestroyedShipFix" or ctrl.Name == "DestroyedSubFix" or ctrl.Name == "DestroyedAirFix" or ctrl.Name == "DestroyedLandFix":
- Menu.DeleteItemOnEndOfFrame( ctrl )
- global navigationfixes
- navigationfixes = []
- global navfixestocreate
- navfixestocreate = None
- global supermarks
- supermarks = []
- global supermarkstocreate
- supermarkstocreate = None
- global destroyedmarks
- destroyedmarks = []
- if tdwdestroyedmarks != None:
- tdwdestroyedmarks.Reset()
- ########################################################################################################
- # functions for the Ship's Journal
- def WriteShipsJournalToFile( publishname, saveentries, savesupermarks, savenavfixes ):
- IDSTR_FolderDoesntExist = 8824
- IDSTR_UnableToCreate = 8825
- IDSTR_CreatedSuccessfully = 8826
- savepath = GetShipsJournalPath()
- if not Directory.Exists( savepath ):
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_FolderDoesntExist ) + " " + savepath )
- Directory.CreateDirectory( savepath )
- savefilepath = ""
- if publishname == "":
- savefilepath = GetShipsJournalFile()
- else:
- savefilepath = savepath + publishname
- try:
- sf = File.Open( savefilepath, FileMode.Create, FileAccess.Write )
- except:
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToCreate ) + " " + savefilepath )
- return False
- ScriptManagerManaged.Trace( "Writing ships journal to file " + savefilepath )
- SortShipsJournal()
- bw = BinaryWriter( sf )
- # set the culture specifics
- usculture = CultureInfo( "en-US" )
- # create list of entries that need to be saved
- entriestosave = []
- journal = GetShipsJournal()
- if len( journal ) > 0:
- #ScriptManagerManaged.Trace( "Writing ship's journal:" )
- for entry in journal:
- if (entry[ 0 ] == 0 and ( entry[ 4 ] & 0x1 ) == 0x1 ):
- entriestosave.append( entry )
- elif (entry[ 0 ] == 1 or entry[ 0 ] == 2):
- entriestosave.append( entry )
- try:
- # write the 'magic' string
- bw.Write( GetMagicString() )
- bw.Write( GetUboatHullNumber() )
- bw.Write( GetUboatCaptainName() )
- journal = None
- journallen = UInt32( 0 )
- if saveentries:
- journallen = UInt32( len( entriestosave ) )
- # write number of journal entries
- bw.Write( journallen )
- ScriptManagerManaged.Trace( "Number of journal entries to save is " + str( journallen ) )
- if journallen > 0:
- for entry in entriestosave:
- #ScriptManagerManaged.Trace( str( entry ) )
- bw.Write( UInt32( entry[ 0 ] ) )
- # 0 = entry (DateTime, text, state) [state: bit 0 = add to ship's journal, bit 1 = show in ship's journal, bit 2 = show in message box]
- if entry[ 0 ] == 0:
- bw.Write( entry[ 1 ].ToBinary() )
- bw.Write( Single( entry[ 2 ] ) )
- bw.Write( entry[ 3 ] )
- bw.Write( UInt32( entry[ 4 ] ) )
- # 1 = Position (DateTime, x meters from game origin, y meters from game origin, course, depth, speed, fuel, fore battery level, aft battery level, CO2 level, compressed air level)
- elif entry[ 0 ] == 1:
- bw.Write( entry[ 1 ].ToBinary() )
- bw.Write( Single( entry[ 2 ] ) )
- bw.Write( entry[ 3 ].X )
- bw.Write( entry[ 3 ].Y )
- bw.Write( entry[ 4 ] )
- bw.Write( entry[ 5 ] )
- bw.Write( entry[ 6 ] )
- bw.Write( entry[ 7 ] )
- bw.Write( entry[ 8 ] )
- bw.Write( entry[ 9 ] )
- bw.Write( entry[ 10 ] )
- bw.Write( entry[ 11 ] )
- # Unknown
- else:
- ScriptManagerManaged.Trace("Unrecognized entry of " + str( entry[ 0 ] ) + " while saving journal")
- bw.Close()
- return False
- # write number of supermarks
- sms = GetSuperMarks()
- smslen = UInt32( 0 )
- if savesupermarks:
- smslen = UInt32( len( sms ) )
- bw.Write( smslen )
- ScriptManagerManaged.Trace( "Number of supermarks to save is " + str( smslen ) )
- if smslen > 0:
- # now write all the supermarks to the file
- for mark in sms:
- # write the supermark location
- bw.Write( mark[ 2 ].ToBinary() )
- #bw.Write( mark[ 3 ].ToBinary() )
- bw.Write( Single( mark[ 3 ] ) )
- bw.Write( mark[ 1 ].X )
- bw.Write( mark[ 1 ].Y )
- # write the text
- for ctrl in mark[ 0 ].Controls:
- if ctrl.Name == "Description":
- bw.Write( ctrl.Text )
- break
- # write number of navigation fixes
- nfs = GetNavigationFixes()
- nfslen = UInt32( 0 )
- if savenavfixes:
- nfslen = UInt32( len( nfs ) )
- bw.Write( nfslen )
- ScriptManagerManaged.Trace( "Number of nav fixes to save is " + str( nfslen ) )
- if nfslen > 0:
- # now write all the navigation fixes to the file
- for mark in nfs:
- # write the navfix location
- bw.Write( mark[ 3 ].ToBinary() )
- #bw.Write( mark[ 4 ].ToBinary() )
- bw.Write( Single( mark[ 4 ] ) )
- bw.Write( mark[ 5 ] )
- bw.Write( mark[ 1 ].X )
- bw.Write( mark[ 1 ].Y )
- # write the sub's actual location
- bw.Write( mark[ 2 ].X )
- bw.Write( mark[ 2 ].Y )
- # write the text
- for ctrl in mark[ 0 ].Controls:
- if ctrl.Name == "Description":
- bw.Write( ctrl.Text )
- break
- except:
- bw.Close()
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToCreate ) + " " + savefilepath )
- return False
- bw.Flush()
- bw.Close()
- ScriptManagerManaged.Trace( savefilepath + " " + Menu.GetLocalizedText( IDSTR_CreatedSuccessfully ) )
- return True
- def ReadShipsJournalFromFile( importname, readentries, readsupermarks, readnavfixes ):
- IDSTR_ImportFolder = 8828
- IDSTR_DoesntExist = 8829
- IDSTR_File = 8830
- IDSTR_UnableToOpen = 8831
- IDSTR_InvalidFileMagicString = 8833
- IDSTR_UnableToRead = 8834
- importpath = GetShipsJournalPath()
- if not Directory.Exists( importpath ):
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_ImportFolder ) + " " + importpath + " " + Menu.GetLocalizedText( IDSTR_DoesntExist ) )
- return False
- importfilepath = ""
- if importname == "":
- importfilepath = GetShipsJournalFile()
- else:
- importfilepath = importpath + importname
- if not File.Exists( importfilepath ):
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_File ) + " " + importfilepath + " " + Menu.GetLocalizedText( IDSTR_DoesntExist ) )
- return False
- try:
- rf = File.Open( importfilepath, FileMode.Open, FileAccess.Read )
- except:
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToOpen ) + " " + importfilepath )
- return False
- ScriptManagerManaged.Trace( "Reading ships journal from file " + importfilepath )
- br = BinaryReader( rf )
- # read the 'magic' string
- try:
- magicstring = br.ReadString()
- except:
- br.Close()
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_InvalidFileMagicString ) )
- return False
- oldstylefile = False
- v7style = True
- v6style = False
- v5style = False
- v4style = False
- v3style = False
- if magicstring == GetMagicString():
- ScriptManagerManaged.Trace( "found v7 ship's journal file" )
- else:
- if magicstring == "TheDarkWraithSH5_new6":
- v7style = False
- v6style = True
- ScriptManagerManaged.Trace( "found v6 ship's journal file" )
- elif magicstring == "TheDarkWraithSH5_new5":
- v6style = False
- v5style = True
- ScriptManagerManaged.Trace( "found v5 ship's journal file" )
- elif magicstring == "TheDarkWraithSH5_new4":
- v6style = False
- v5style = False
- v4style = True
- ScriptManagerManaged.Trace( "found v4 ship's journal file" )
- elif magicstring == "TheDarkWraithSH5_new3":
- v6style = False
- v5style = False
- v4style = False
- v3style = True
- ScriptManagerManaged.Trace( "found v3 ship's journal file" )
- elif magicstring == "TheDarkWraithSH5_new2":
- v6style = False
- v5style = False
- v4style = False
- v3style = False
- ScriptManagerManaged.Trace( "found v2 ship's journal file" )
- elif magicstring == "TheDarkWraithSH5_new":
- oldstylefile = True
- v3style = False
- v4style = False
- v5style = False
- v6style = False
- ScriptManagerManaged.Trace( "found old style ship's journal file" )
- else:
- br.Close()
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_InvalidFileMagicString ) )
- return False
- # read the uboat hull number
- br.ReadString()
- # read the captain's name
- if v3style or v4style or v5style or v6style or v7style:
- ScriptManagerManaged.Trace( "Captain's name is " + br.ReadString() )
- # set the culture specifics
- usculture = CultureInfo( "en-US" )
- newjournal = GetShipsJournal()
- if newjournal == None:
- newjournal = []
- if oldstylefile:
- try:
- while True:
- entry = []
- entry.append( UInt32( 0 ) )
- entry.append( DateTime.ParseExact( br.ReadString(), "g", usculture ) )
- entry.append( Single( 0 ) )
- entry.append( br.ReadString() )
- if br.ReadBoolean():
- entry.append( UInt32( 0x1 ) )
- else:
- entry.append( UInt32( 0x7 ) )
- if readentries:
- index = 0
- lessthan = False
- for oldentry in newjournal:
- if entry[ 1 ] < oldentry[ 1 ]:
- newjournal.insert( index, entry )
- lessthan = True
- break
- index += 1
- if lessthan:
- continue
- else:
- newjournal.append( entry )
- except EOFError:
- pass
- except:
- br.Close()
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToRead ) + " " + importfilepath )
- return False
- else:
- try:
- # get the number of journal entries
- numjes = br.ReadUInt32()
- ScriptManagerManaged.Trace( "Number of journal entries is " + str( numjes ) )
- # read all the journal entries
- while numjes > 0:
- numjes -= 1
- entry = []
- if v6style or v7style:
- type = br.ReadUInt32();
- if type == 0:
- # 0 = entry (DateTime, timezonemodifier, text, state) [state: bit 0 = add to ship's journal, bit 1 = show in ship's journal, bit 2 = show in message box]
- entry.append( UInt32( 0 ) )
- entry.append( DateTime.FromBinary( br.ReadInt64() ) )
- if v7style:
- entry.append( br.ReadSingle() )
- else:
- entry.append( Single( 0 ) )
- entry.append( br.ReadString() )
- entry.append( br.ReadUInt32() )
- if readentries:
- index = 0
- lessthan = False
- for oldentry in newjournal:
- if entry[ 1 ] < oldentry[ 1 ]:
- newjournal.insert( index, entry )
- lessthan = True
- break
- index += 1
- if lessthan:
- continue
- else:
- newjournal.append( entry )
- elif type == 1:
- # 1 = Position (DateTime, x meters from game origin, y meters from game origin, course, depth, speed, fuel, fore battery level, aft battery level, CO2 level, compressed air level)
- entry.append( UInt32( 1 ) )
- entry.append( DateTime.FromBinary( br.ReadInt64() ) )
- if v7style:
- entry.append( br.ReadSingle() )
- else:
- entry.append( Single( 0 ) )
- entry.append( PointF( br.ReadSingle(), br.ReadSingle() ) )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- entry.append( br.ReadDouble() )
- index = 0
- lessthan = False
- for oldentry in newjournal:
- if entry[ 1 ] < oldentry[ 1 ]:
- newjournal.insert( index, entry )
- lessthan = True
- break
- index += 1
- if lessthan:
- continue
- else:
- newjournal.append( entry )
- else:
- br.Close()
- ScriptManagerManaged.Trace( "Write ships journal to file: unrecognized type found of " + str( type ) )
- SetShipsJournal( [] )
- return False
- else:
- entry.append( UInt32( 0 ) )
- entry.append( DateTime.ParseExact( br.ReadString(), "g", usculture ) )
- entry.append( Single( 0 ) )
- entry.append( br.ReadString() )
- if v5style:
- entry.append( br.ReadUInt32() )
- else:
- if br.ReadBoolean():
- entry.append( UInt32( 0x1 ) )
- else:
- entry.append( UInt32( 0x7 ) )
- if readentries:
- index = 0
- lessthan = False
- for oldentry in newjournal:
- if entry[ 1 ] < oldentry[ 1 ]:
- newjournal.insert( index, entry )
- lessthan = True
- break
- index += 1
- if lessthan:
- continue
- else:
- newjournal.append( entry )
- # get the number of supermarks
- numsms = br.ReadUInt32()
- ScriptManagerManaged.Trace( "number of supermarks to read from journal file=" + str( numsms ) )
- from Pagemain import Pagemain
- pmvis = Pagemain.Visible
- global supermarkstocreate
- global navfixestocreate
- if readsupermarks:
- if pmvis:
- ScriptManagerManaged.Trace("supermarks flagged as needed to be read")
- supermarkstocreate = []
- else:
- supermarkstocreate = None
- else:
- ScriptManagerManaged.Trace("not reading the supermarks from journal file")
- if readnavfixes:
- if pmvis:
- ScriptManagerManaged.Trace("navfixes flagged as needed to be read")
- navfixestocreate = []
- else:
- navfixestocreate = None
- else:
- ScriptManagerManaged.Trace("not reading the navfixes from journal file")
- # read all the supermarks
- while numsms > 0:
- numsms -= 1
- smgmtdatetime = DateTime()
- smdatetime = DateTime()
- smtimezonemodifier = 0
- #if v6style or v7style:
- if v6style:
- smgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
- smdatetime = DateTime.FromBinary( br.ReadInt64() )
- smtimezonemodifier = Single( ( smdatetime - smgmtdatetime ).TotalSeconds )
- elif v7style:
- smgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
- smtimezonemodifier = br.ReadSingle()
- #ScriptManagerManaged.Trace( "Supermark: DateTime (GMT)=" + str( smgmtdatetime ) + "\ttimezonemodifier=" + str( smtimezonemodifier ) )
- location = PointF( br.ReadSingle(), br.ReadSingle() )
- txt = br.ReadString()
- if readsupermarks:
- createfix = True
- for supermark in GetSuperMarks():
- if location.X == supermark[ 1 ].X and location.Y == supermark[ 1 ].Y:
- createfix = False
- break
- if createfix:
- if pmvis:
- #supermarkstocreate.append( [ PointF( location.X, location.Y ), txt, smgmtdatetime, smdatetime ] )
- supermarkstocreate.append( [ PointF( location.X, location.Y ), txt, smgmtdatetime, smtimezonemodifier ] )
- else:
- from Pagelayout import CreateNewSuperMark
- #CreateNewSuperMark( location.X, location.Y, txt, smgmtdatetime, smdatetime )
- CreateNewSuperMark( location.X, location.Y, txt, smgmtdatetime, smtimezonemodifier )
- # get the number of navigation fixes
- numnfs = br.ReadUInt32()
- ScriptManagerManaged.Trace( "number of nav fixes to read from journal file=" + str( numnfs ) )
- # read all the navigation fixes
- while numnfs > 0:
- numnfs -= 1
- nfgmtdatetime = DateTime()
- nfdatetime = DateTime()
- nftimezonemodifier = 0
- iscelestialfix = False
- #if v6style or v7style:
- if v6style:
- nfgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
- nfdatetime = DateTime.FromBinary( br.ReadInt64() )
- nftimezonemodifier = Single( ( nfdatetime - nfgmtdatetime ).TotalSeconds )
- iscelestialfix = br.ReadBoolean()
- elif v7style:
- nfgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
- nftimezonemodifier = br.ReadSingle()
- iscelestialfix = br.ReadBoolean()
- #ScriptManagerManaged.Trace( "NavFix: DateTime (GMT)=" + str( nfgmtdatetime ) + "\ttimezonemodifier=" + str( nftimezonemodifier ) )
- fixlocation = PointF( br.ReadSingle(), br.ReadSingle() )
- sublocation = PointF( br.ReadSingle(), br.ReadSingle() )
- txt = br.ReadString()
- if readnavfixes:
- createfix = True
- for navfix in GetNavigationFixes():
- if fixlocation.X == navfix[ 1 ].X and fixlocation.Y == navfix[ 1 ].Y:
- createfix = False
- break
- if createfix:
- if pmvis:
- #navfixestocreate.append( [ PointF( fixlocation.X, fixlocation.Y ), PointF( sublocation.X, sublocation.Y ), txt, nfgmtdatetime, nfdatetime, iscelestialfix ] )
- navfixestocreate.append( [ PointF( fixlocation.X, fixlocation.Y ), PointF( sublocation.X, sublocation.Y ), txt, nfgmtdatetime, nftimezonemodifier, iscelestialfix ] )
- else:
- from Pagelayout import CreateNewNavFix
- #CreateNewNavFix( fixlocation.X, fixlocation.Y, sublocation.X, sublocation.Y, False, txt, nfgmtdatetime, nfdatetime, iscelestialfix )
- CreateNewNavFix( fixlocation.X, fixlocation.Y, sublocation.X, sublocation.Y, False, txt, nfgmtdatetime, nftimezonemodifier, iscelestialfix )
- # set the current position to the latest fix
- lasttime = None
- location = None
- for navfix in GetNavigationFixes():
- #info = navfix[ 0 ]
- #for ctrl in info.Controls:
- # if ctrl.Name == "Description":
- # txt = ctrl.Text.split( "\n" )
- # txt = txt[ 0 ].split( '(' )
- # txt = txt[ 0 ].Trim()
- # dt = DateTime.Parse( txt )
- #
- # if dt > lasttime or lasttime == None:
- # lasttime = dt
- # location = navfix[ 1 ]
- # break
- dt = navfix[ 3 ]
- if dt > lasttime or lasttime == None:
- lasttime = dt
- location = navfix[ 1 ]
- try:
- from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
- from Pagenavigationmap import Pagenavigationmap_Mapcontrol
- # keep track of current position
- Pagenavigationmap_Mapcontrol.SubmarineContact[ "CurrentPositionFix" ] = PointF( location.X, location.Y )
- PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact[ "CurrentPositionFix" ] = PointF( location.X, location.Y )
- # store the new sub's actual position
- PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact[ "LastPositionFixActualPosition" ] = PointF( location.X, location.Y )
- Pagenavigationmap_Mapcontrol.SubmarineContact[ "LastPositionFixActualPosition" ] = PointF( location.X, location.Y )
- except:
- pass
- except:
- br.Close()
- ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToRead ) + " " + importfilepath )
- return False
- br.Close()
- SetShipsJournal( newjournal )
- SortShipsJournal()
- #ScriptManagerManaged.Trace( "Read ship's journal:" )
- #sj = GetShipsJournal()
- #for entry in sj:
- # ScriptManagerManaged.Trace( str( entry ) )
- return True
- def SortShipsJournal():
- oldjournal = GetShipsJournal()
- ojl = len( oldjournal )
- if ojl < 2:
- return
- newjournal = []
- newjournal.append( oldjournal[ 0 ] )
- for i in range( 1, ojl ):
- index = 0
- inserted = False
- for entry in newjournal:
- if oldjournal[ i ][ 1 ] < entry[ 1 ]:
- newjournal.insert( index, oldjournal[ i ] )
- inserted = True
- break
- index += 1
- if not inserted:
- newjournal.append( oldjournal[ i ] )
- SetShipsJournal( newjournal )
- ########################################################################################################
- def EndGame():
- ScriptManagerManaged.Trace( "TheDarkWraithUserOptions EndGame" )
- TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = None
- TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = None
- Automation.StopAllScripts()
- ########################################################################################################
- def UnloadScript():
- ScriptManagerManaged.Trace( "Destroying Automation" )
- global Automation
- if Automation != None:
- Automation.Destroy()
- Automation = None
- ScriptManagerManaged.Trace( "Destroying TDWSoan" )
- global tdwsoan
- if tdwsoan != None:
- tdwsoan.Destroy()
- tdwsoan = None
- ScriptManagerManaged.Trace( "Destroying TDWSound" )
- global tdwsound
- if tdwsound != None:
- tdwsound.Destroy()
- tdwsound = None
- ScriptManagerManaged.Trace( "Destroying TDWRadioMessages" )
- global RadioMessages
- if RadioMessages != None:
- RadioMessages.Destroy()
- RadioMessages = None
- ScriptManagerManaged.Trace( "Destroying TDWMouse" )
- global tdwmouse
- if tdwmouse != None:
- tdwmouse.Destroy()
- tdwmouse = None
- ScriptManagerManaged.Trace( "Destroying TDWDestroyedMarks" )
- global tdwdestroyedmarks
- if tdwdestroyedmarks != None:
- tdwdestroyedmarks.Destroy()
- tdwdestroyedmarks = None
- ScriptManagerManaged.Trace( "Destroying TDWFileUtils" )
- TDWFileUtils.Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement