Advertisement
Guest User

Untitled

a guest
Sep 16th, 2016
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 201.74 KB | None | 0 0
  1. # Edited by TheDarkWraith for NewUIs_TDC_7_4_2
  2. # Edited on 5/26/2013 @ 1130
  3. #
  4. # Copyright notice:
  5. # The code in this file is the intellectual property of TheDarkWraith and may not be used, modified, or duplicated in whole,
  6. # or in part, without the express written permission of TheDarkWraith. The code in this file may not be used in any commercial
  7. # application of any form without the express written permission of TheDarkWraith.
  8.  
  9.  
  10. # User Options for TheDarkWraith's mods
  11. # Created by TheDarkWraith
  12.  
  13.  
  14. # NOTE!!!!
  15. # These are the keys the game recognizes:
  16. # A-Z of the alphabet (Capitalized!)
  17. # 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)
  18. # F1-F11 functions keys are unavailable even though MenuKeyManagerWrapper says they are available. Do not try to use F1-F11.
  19.  
  20. #[VERSION]
  21. #1
  22.  
  23. #;############################################## Patches #########################################
  24. #[OPTION]
  25. #CATEGORY=Patches
  26. #TYPE=0
  27. #DESCRIPTION=Is patch decks awash installed
  28. #VALUES=
  29. #DEFAULT=False
  30. PatchDecksAwashEnabled=True
  31.  
  32. #[OPTION]
  33. #CATEGORY=Patches
  34. #TYPE=2
  35. #DESCRIPTION=Decks awash depth
  36. #VALUES=MIN|0.0
  37. #DEFAULT=7.0
  38. DecksAwashDepth = 7.0
  39.  
  40. #[OPTION]
  41. #CATEGORY=Patches
  42. #TYPE=0
  43. #DESCRIPTION=Is patch independent engine controls installed
  44. #VALUES=
  45. #DEFAULT=False
  46. PatchIndependentEngineControlsEnabled=False
  47.  
  48. #[OPTION]
  49. #CATEGORY=Patches
  50. #TYPE=7
  51. #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.)
  52. #VALUES=
  53. #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  54. #; the hotkey used to toggle the nomograph visibility on the mini-map. Nomograph is always visible on nav-map
  55. #; Format:
  56. #;
  57. #; IndependentEnginesGameUpdateHotKey = [ False, None, False, False, False, False ]
  58. #; False = enabled
  59. #; None = key used
  60. #; False = shift key required
  61. #; False = ctrl required
  62. #; False = alt required
  63. #; False = handled
  64. #;
  65. #; if you wanted to enable this:
  66. #; IndependentEnginesGameUpdateHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  67. #;
  68. #; if you wanted to disable this:
  69. #; IndependentEnginesGameUpdateHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  70. #;
  71. IndependentEnginesGameUpdateHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ] # change the I to whatever you want
  72.  
  73.  
  74. #;#################################### UI Stuff (SH3/4/5 modes) ##################################
  75.  
  76. #;+++++++++++++ UI Style ++++++++++++++
  77. #; Possible UI Styles:
  78. SH5Enhanced = 0
  79. SH3Style = 1
  80. SH4Style = 2
  81.  
  82. #[OPTION]
  83. #CATEGORY=UI
  84. #TYPE=5
  85. #DESCRIPTION=UI style used in-game
  86. #VALUES=SH5Enhanced,SH3Style,SH4Style
  87. #DEFAULT=SH5Enhanced
  88. #; the current UI Style
  89. #; set below to either SH3Style, SH4Style, or SH5Enhanced
  90. UIStyle=SH5Enhanced
  91.  
  92. #[OPTION]
  93. #CATEGORY=UI
  94. #TYPE=0
  95. #DESCRIPTION=Night filters enable
  96. #VALUES=
  97. #DEFAULT=False
  98. #; Are all night filters enabled?
  99. #; change below to either True or False
  100. NightFiltersEnabled = False
  101.  
  102.  
  103. #;########################################### HUD #####################################################
  104.  
  105. #[OPTION]
  106. #CATEGORY=HUD
  107. #TYPE=0
  108. #DESCRIPTION=Integrates the fuel, battery, compressed air, and CO2 interface into the HUD in the bottom bar (applies only to SH5Enhanced UI style)
  109. #VALUES=
  110. #DEFAULT=True
  111. #;+++++++++++++ SH5 specific UI Items +++++++++++++++
  112. #; integrate the fuel, battery, compressed air, and CO2 interface into the bottom bar
  113. #; change below to either True or False
  114. IntegrateLevels = True
  115.  
  116. #[OPTION]
  117. #CATEGORY=HUD
  118. #TYPE=0
  119. #DESCRIPTION=Binocular crosshair visibility
  120. #VALUES=
  121. #DEFAULT=False
  122. #; is the binocular crosshair visible?
  123. #; change below to either True or False
  124. BinocularCrosshairEnabled = False
  125.  
  126. #[OPTION]
  127. #CATEGORY=HUD
  128. #TYPE=0
  129. #DESCRIPTION=Depth and map tools bars visible at game start
  130. #VALUES=
  131. #DEFAULT=True
  132. #; are the depth and map tools bars visible at game start?
  133. #; change below to either True or False
  134. DepthAndMapToolsBarsVisible = True
  135.  
  136. #[OPTION]
  137. #CATEGORY=HUD
  138. #TYPE=0
  139. #DESCRIPTION=Advanced HUD enabled at game start (applies only to SH5Enhanced UI style)
  140. #VALUES=
  141. #DEFAULT=False
  142. #; does the game start with Advanced HUD enabled?
  143. #; change below to either True or False
  144. AdvancedHudIsEnabled=True
  145.  
  146. #[OPTION]
  147. #CATEGORY=HUD
  148. #TYPE=0
  149. #DESCRIPTION=Top right hand side bars hide when you mouse out and show when you mouse in
  150. #VALUES=
  151. #DEFAULT=False
  152. #; Do the top right bars hide when you mouse out and show when you mouse in?
  153. #; change below to either True or False
  154. TopRightBarsScroll = False
  155.  
  156. #[OPTION]
  157. #CATEGORY=HUD
  158. #TYPE=2
  159. #DESCRIPTION=Time delay before hiding top right hand side bars when moused out (applies only when TopRightBarsScroll is True)
  160. #VALUES=MIN|0.0
  161. #DEFAULT=5.0
  162. #; if TopRightBarsScroll is enabled, this is the time delay before hiding the top right bars when moused out:
  163. #; below is in seconds
  164. TopRightBarsHideTD = 5.0
  165.  
  166. #[OPTION]
  167. #CATEGORY=HUD
  168. #TYPE=0
  169. #DESCRIPTION=Essential controls (depth, heading, etc.) hide when moused out and show when moused in
  170. #VALUES=
  171. #DEFAULT=False
  172. #; do the essential controls (depth, heading, etc.) hide when moused out and show when moused in?
  173. #; change below to either True or False
  174. EssentialControlsScroll = False
  175.  
  176. #[OPTION]
  177. #CATEGORY=HUD
  178. #TYPE=2
  179. #DESCRIPTION=Time delay before hiding the essential controls when moused out (applies only when EssentialControlsScroll is True)
  180. #VALUES=MIN|0.0
  181. #DEFAULT=5.0
  182. #; if EssentialControlsScroll is enabled, this is the time delay before hiding the essential controls when moused out:
  183. #; below is in seconds
  184. EssentialControlsHideTD = 5.0
  185.  
  186. #[OPTION]
  187. #CATEGORY=HUD
  188. #TYPE=8
  189. #DESCRIPTION=Warnings (icons to the left of the top right bar) hide when moused out and show when moused in
  190. #VALUES=
  191. #DEFAULT=False
  192. #; do the warnings (icons to the left of top right bar) hide when moused out and show when moused in?
  193. #; NOTE: DOES NOT WORK CURRENTLY!
  194. #; change below to either True or False
  195. WarningsScroll = False
  196.  
  197. #[OPTION]
  198. #CATEGORY=HUD
  199. #TYPE=0
  200. #DESCRIPTION=Camera bar visibility
  201. #VALUES=
  202. #DEFAULT=True
  203. #; Is the camera bar visible?
  204. #; change below to either True or False
  205. CameraBarVisible = True
  206.  
  207. #[OPTION]
  208. #CATEGORY=HUD
  209. #TYPE=0
  210. #DESCRIPTION=Camera bar scrolls out of view when moused out
  211. #VALUES=
  212. #DEFAULT=False
  213. #; does the camera bar scroll out of view when the mouse is not inside it?
  214. #; change below to either True or False
  215. CameraBarScrolls = False
  216.  
  217. #[OPTION]
  218. #CATEGORY=HUD
  219. #TYPE=0
  220. #DESCRIPTION=Depth group bar visibility
  221. #VALUES=
  222. #DEFAULT=True
  223. #; Is the depth group bar visible?
  224. #; change below to either True or False
  225. DepthGroupBarVisible = True
  226.  
  227. #[OPTION]
  228. #CATEGORY=HUD
  229. #TYPE=0
  230. #DESCRIPTION=Travel mode enabled at game start
  231. #VALUES=
  232. #DEFAULT=True
  233. #; is travel mode enabled at game start?
  234. #; change below to either True or False
  235. TravelModeEnabled = True
  236.  
  237.  
  238. #;######################################### Maps ######################################################
  239.  
  240. #[OPTION]
  241. #CATEGORY=Maps
  242. #TYPE=0
  243. #DESCRIPTION=Map tools tool helper default state at game start
  244. #VALUES=
  245. #DEFAULT=True
  246. #;+++++++++++++ SH3/4/5 specific UI items ++++++++++++++++
  247. #;
  248. #; does the tool helper default to on state at game start (map tools)?
  249. #; change below to either True or False
  250. ToolHelperOnAtGameStart = True
  251.  
  252. #[OPTION]
  253. #CATEGORY=Maps
  254. #TYPE=0
  255. #DESCRIPTION=Are the map tools shown as objects vice a bar (required for Obelix's IO Strategic Map mod support)
  256. #VALUES=
  257. #DEFAULT=False
  258. #; this will add support for the IO Strategic Map mod by Obelix
  259. #; change below to either True or False
  260. MapToolsAsObjects = False
  261.  
  262. #[OPTION]
  263. #CATEGORY=Maps
  264. #TYPE=7
  265. #DESCRIPTION=Hotkey for toggling nomograph visibility on the mini-map (TAI)
  266. #VALUES=
  267. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
  268. #; the hotkey used to toggle the nomograph visibility on the mini-map. Nomograph is always visible on nav-map
  269. #; Format:
  270. #;
  271. #; NomographVisibleOnMiniMapHotKey = [ False, None, False, False, False, False ]
  272. #; False = enabled
  273. #; None = key used
  274. #; False = shift key required
  275. #; False = ctrl required
  276. #; False = alt required
  277. #; False = handled
  278. #;
  279. #; if you wanted to enable this:
  280. #; NomographVisibleOnMiniMapHotKey = [ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
  281. #;
  282. #; if you wanted to disable this:
  283. #; NomographVisibleOnMiniMapHotKey = [ False, MenuKeyManagerWrapper.Keys.N, False, False, False, False ]
  284. #;
  285. NomographVisibleOnMiniMapHotKey = [ True, MenuKeyManagerWrapper.Keys.N, False, False, False, False ] # change the N to whatever you want
  286.  
  287. #[OPTION]
  288. #CATEGORY=Maps
  289. #TYPE=0
  290. #DESCRIPTION=Nomograph visible on the mini-map (TAI) at game start
  291. #VALUES=
  292. #DEFAULT=True
  293. #; is the Nomograph visible on the mini-map (TAI) at game start?
  294. #; change below to either True or False
  295. NomographVisibleOnMiniMap = True
  296.  
  297. #[OPTION]
  298. #CATEGORY=Maps
  299. #TYPE=0
  300. #DESCRIPTION=Nomograph visible on the navigation map at game start
  301. #VALUES=
  302. #DEFAULT=True
  303. #; is the Nomograph visible on the Navigation map at game start?
  304. #; change below to either True or False
  305. NomographVisibleOnNavMap = True
  306.  
  307.  
  308. #;#################################### Heading Bar/Heading/Rudder Dial (SH5 Mode) #####################
  309.  
  310. #[OPTION]
  311. #CATEGORY=Heading
  312. #TYPE=7
  313. #DESCRIPTION=Hotkey for toggling visibility of the SH5 enhanced heading/rudder dial. Pressing shift + this hotkey will change mode between heading and rudder
  314. #VALUES=
  315. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
  316. #; the hotkey used to display the heading/rudder dial
  317. #; Format:
  318. #;
  319. #; HeadingRudderKey = [ False, None, None, False, False, False ]
  320. #; False = enabled
  321. #; None = key used
  322. #; 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)
  323. #; False = ctrl required
  324. #; False = alt required
  325. #; False = handled
  326. #;
  327. #; if you wanted to enable this:
  328. #; HeadingRudderKey = [ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
  329. #;
  330. #; if you wanted to disable this:
  331. #; HeadingRudderKey = [ False, MenuKeyManagerWrapper.Keys.C, None, False, False, False ]
  332. #;
  333. HeadingRudderKey = [ True, MenuKeyManagerWrapper.Keys.C, None, False, False, False ] # change the C to whatever key you want
  334.  
  335. #; the hotkey used to change the heading/rudder dial mode (heading mode or rudder mode) will be the same key
  336. #; used to toggle the display of the dial plus the shift key. So you have to press the shift key first then
  337. #; the key used to toggle the display of the dial on/off.
  338.  
  339. #[OPTION]
  340. #CATEGORY=Heading
  341. #TYPE=7
  342. #DESCRIPTION=Hotkey for increasing desired heading when heading bar is moused in
  343. #VALUES=
  344. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, None, None, False, False ]
  345. #; the key used to increase the desired heading when you mouse into the heading bar
  346. #; format is [ enabled, key, None (disabled), None (disabled), alt required, handled ]
  347. HeadingBarIncreaseHeadingKey = [ True, MenuKeyManagerWrapper.Keys.E, None, None, False, False ] # change the E to whatever key you want
  348.  
  349. #[OPTION]
  350. #CATEGORY=Heading
  351. #TYPE=7
  352. #DESCRIPTION=Hotkey for decreasing desired heading when heading bar is moused in
  353. #VALUES=
  354. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, None, None, False, False ]
  355. HeadingBarDecreaseHeadingKey = [ True, MenuKeyManagerWrapper.Keys.Q, None, None, False, False ] # change the Q to whatever key you want
  356.  
  357. #[OPTION]
  358. #CATEGORY=Heading
  359. #TYPE=3
  360. #DESCRIPTION=Delay value for increasing/decreasing desired heading when heading bar is moused in
  361. #VALUES=MIN|0
  362. #DEFAULT=0
  363. #; some users may want the desired heading to increase slower. Modify this value to add delay (increment in 1's!)
  364. HeadingBarUserDelay = 0
  365.  
  366. #[OPTION]
  367. #CATEGORY=Heading
  368. #TYPE=0
  369. #DESCRIPTION=Heading bar starts expanded at game start
  370. #VALUES=
  371. #DEFAULT=True
  372. #; Does the heading bar start expanded at game start?
  373. #; change below to either True or False
  374. HeadingBarIsExpanded = True
  375.  
  376. #[OPTION]
  377. #CATEGORY=Heading
  378. #TYPE=0
  379. #DESCRIPTION=Heading bar starts in advanced mode (click to set heading) at game start
  380. #VALUES=
  381. #DEFAULT=False
  382. #; Does the heading bar start in advanced (click to set heading) mode?
  383. #; change below to either True or False
  384. HeadingBarStartAdvanced = False
  385.  
  386.  
  387. #;######################################## Radio #################################################
  388.  
  389. #[OPTION]
  390. #CATEGORY=Radio
  391. #TYPE=3
  392. #DESCRIPTION=Below this depth (in meters) do not receive radio contacts/reports
  393. #VALUES=MIN|0
  394. #DEFAULT=30
  395. #; Below this depth do not receive radio contacts/reports (in meters)
  396. BelowThisDepthDontReceiveRadio = 30
  397.  
  398. #[OPTION]
  399. #CATEGORY=Radio
  400. #TYPE=0
  401. #DESCRIPTION=Set time compression to 1 on new radio contact report
  402. #VALUES=
  403. #DEFAULT=False
  404. #; when a new radio contact report comes in does the TC drop back to 1?
  405. #; change below to either True or False
  406. TC1OnNewRadioNavMapContact = False
  407.  
  408. #[OPTION]
  409. #CATEGORY=Radio
  410. #TYPE=0
  411. #DESCRIPTION=Set time compression to 1 on radio message received
  412. #VALUES=
  413. #DEFAULT=True
  414. #; does TC drop back to 1 on radio message received?
  415. #; change below to either True or False
  416. TC1OnRadioMessageReceived = True
  417.  
  418. #[OPTION]
  419. #CATEGORY=Radio
  420. #TYPE=3
  421. #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
  422. #VALUES=MIN|0
  423. #DEFAULT=250
  424. #; 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
  425. #; value is in kms (kilometers)
  426. MaxRadioContactRange = 250
  427.  
  428. #[OPTION]
  429. #CATEGORY=Radio
  430. #TYPE=0
  431. #DESCRIPTION=Radio contact reports clipped to MaxRadioContactRange distance (If false then they will be subject to MaxRadioContactRange distance if TC1OnNewRadioNavMapContact is True)
  432. #VALUES=
  433. #DEFAULT=True
  434. #; 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.
  435. #; change below to either True or False
  436. RadioContactReportsAlwaysClipped = True
  437.  
  438. #[OPTION]
  439. #CATEGORY=Radio
  440. #TYPE=0
  441. #DESCRIPTION=Show contact's actual speed vice relative speed (slow, medium, fast ,etc)
  442. #VALUES=
  443. #DEFAULT=False
  444. #; Are the contact's actual speed shown or is a relative speed shown (slow=2-6 knots, medium=7-12 knots, fast=13+ knots)?
  445. #; change below to either True or False
  446. ShowContactsActualSpeed = False
  447.  
  448. #[OPTION]
  449. #CATEGORY=Radio
  450. #TYPE=0
  451. #DESCRIPTION=Show contact's actual course vice relative course (E, ENE, SE, S, etc.)
  452. #VALUES=
  453. #DEFAULT=False
  454. #; Are the contact's actual course shown or is a relative course shown (E,ENE,SE,S, SW, etc.)?
  455. #; change below to either True or False
  456. ShowContactsActualCourse = False
  457.  
  458. #[OPTION]
  459. #CATEGORY=Radio
  460. #TYPE=3
  461. #DESCRIPTION=The distance (in kms) from sub the watchstanders see the radio contact report contact well enough to update it's course
  462. #VALUES=MIN|0
  463. #DEFAULT=8
  464. #; 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)?
  465. #; below is in kilometers
  466. RangeStartUpdatingContacts = 8
  467.  
  468. #[OPTION]
  469. #CATEGORY=Radio
  470. #TYPE=1
  471. #DESCRIPTION=The radio messages language
  472. #VALUES=
  473. #DEFAULT="English"
  474. #; the language for the random radio messages in game
  475. #; Current supported languages are: English
  476. #; Note: language MUST be enclosed in quotation marks!
  477. RadioMessageLanguage = "English"
  478.  
  479. #[OPTION]
  480. #CATEGORY=Radio
  481. #TYPE=3
  482. #DESCRIPTION=The percentage chance BDU will send a contact report back upon receipt of a contact report from player
  483. #VALUES=MIN|0,MAX|100
  484. #DEFAULT=20
  485. #; when you send in a contact report to BDU what is the percentage chance that they will send you a contact report back?
  486. #; below is a percentage value (0 - 100)
  487. RadioMessagesContactReportChance = 20
  488.  
  489. #[OPTION]
  490. #CATEGORY=Radio
  491. #TYPE=3
  492. #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)
  493. #VALUES=MIN|0
  494. #DEFAULT=45000
  495. #; 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)
  496. #; below is in meters
  497. RadioMessagesContactReportMaxRadius = 45000
  498.  
  499. #[OPTION]
  500. #CATEGORY=Radio
  501. #TYPE=3
  502. #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
  503. #VALUES=MIN|0
  504. #DEFAULT=15000
  505. #; 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)
  506. #; below is in meters
  507. RadioMessagesContactReportMinRadius = 15000
  508.  
  509. #[OPTION]
  510. #CATEGORY=Radio
  511. #TYPE=0
  512. #DESCRIPTION=Set time compression to 1 when a new radio message is received
  513. #VALUES=
  514. #DEFAULT=False
  515. #; do we set TC to 1 on new radio messages?
  516. #; change below to either True or False
  517. TC1OnNewRadioMessage = False
  518.  
  519. #[OPTION]
  520. #CATEGORY=Radio
  521. #TYPE=3
  522. #DESCRIPTION=The range at which the possibility exists that a contact could spot the player's sub and send out a radio report
  523. #VALUES=MIN|0
  524. #DEFAULT=8000
  525. #; 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
  526. #; below is in meters
  527. RangeShipSendingSubSightedMessage = 8000
  528.  
  529. #[OPTION]
  530. #CATEGORY=Radio
  531. #TYPE=0
  532. #DESCRIPTION=Show radio messages received
  533. #VALUES=
  534. #DEFAULT=True
  535. #; do we show radio messages received?
  536. #; change below to either True or False
  537. InformRadioMessages = True
  538.  
  539. #[OPTION]
  540. #CATEGORY=Radio
  541. #TYPE=0
  542. #DESCRIPTION=Show sub sighted radio messages
  543. #VALUES=
  544. #DEFAULT=False
  545. #; do we show radio messages from sub sightings?
  546. #; change below to either True or False
  547. InformSubSightedMessages = False
  548.  
  549. #[OPTION]
  550. #CATEGORY=Radio
  551. #TYPE=0
  552. #DESCRIPTION=Show Bdu radio messages
  553. #VALUES=
  554. #DEFAULT=True
  555. #; do we show radio messages from BDU?
  556. #; change below to either True or False
  557. InformBDUMessages = True
  558.  
  559. #[OPTION]
  560. #CATEGORY=Radio
  561. #TYPE=0
  562. #DESCRIPTION=Show destroyed unit radio messages
  563. #VALUES=
  564. #DEFAULT=True
  565. #; do we show radio messages about destroyed units?
  566. #; change below to either True or False
  567. InformDestroyedMessages = True
  568.  
  569. #[OPTION]
  570. #CATEGORY=Radio
  571. #TYPE=3
  572. #DESCRIPTION=The percentage chance that the radio operation will intercept a radio message
  573. #VALUES=MIN|0,MAX|100
  574. #DEFAULT=50
  575. #; the chance that the radio operator will intercept radio messages?
  576. #; below is a percentage value (0 - 100)
  577. RadioMessagesInterceptChance = 50
  578.  
  579. #[OPTION]
  580. #CATEGORY=Radio
  581. #TYPE=3
  582. #DESCRIPTION=The number of times to flash the radio messages icon when a new radio message is received (use -1 for indefinite)
  583. #VALUES=MIN|-1
  584. #DEFAULT=50
  585. #; the number of times to flash the radio messages icon on new radio message received (use -1 for indefinite)
  586. RadioMessagesFlashTime = -1
  587.  
  588. #[OPTION]
  589. #CATEGORY=Radio
  590. #TYPE=0
  591. #DESCRIPTION=Radio messages enabled
  592. #VALUES=
  593. #DEFAULT=True
  594. #; are radio messages enabled in game?
  595. #; change below to either True or False
  596. RadioMessagesEnabled = True
  597.  
  598. #[OPTION]
  599. #CATEGORY=Radio
  600. #TYPE=7
  601. #DESCRIPTION=Hotkey for toggling visibility of the radio messages box
  602. #VALUES=
  603. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  604. #; the hotkey used to display the radio messages
  605. #; Format:
  606. #;
  607. #; RadioMessagesHotKey = [ False, None, False, False, False, False ]
  608. #; False = disabled
  609. #; None = key used
  610. #; False = shift required
  611. #; False = ctrl required
  612. #; False = alt required
  613. #; False = handled
  614. #;
  615. #; if you wanted to enable this without shift, ctrl, and alt required:
  616. #; RadioMessagesHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  617. #;
  618. #; if you wanted to disable this:
  619. #; RadioMessagesHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  620. #;
  621. RadioMessagesHotKey = [ True, MenuKeyManagerWrapper.Keys.I, False, False, False, False ] # change the I to whatever you want
  622.  
  623.  
  624. #;######################################## Scopes ################################################
  625.  
  626. #[OPTION]
  627. #CATEGORY=Scopes
  628. #TYPE=0
  629. #DESCRIPTION=Periscope water level indicators visibility on the attack and observation periscopes
  630. #VALUES=
  631. #DEFAULT=True
  632. #; are the periscope water level indicators displayed on the attack and obs scopes?
  633. #; change below to either True or False
  634. PeriscopeLevelSH5Visible = True
  635.  
  636. #[OPTION]
  637. #CATEGORY=Scopes
  638. #TYPE=0
  639. #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)
  640. #VALUES=
  641. #DEFAULT=True
  642. #; 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
  643. #; change below to either True or False
  644. RealisticTorpedoFirings = True
  645.  
  646. #[OPTION]
  647. #CATEGORY=Scopes
  648. #TYPE=0
  649. #DESCRIPTION=Lock/Break lock displays in the attack, observation, and UZO stations
  650. #VALUES=
  651. #DEFAULT=False
  652. #; The lock/break lock displays in the attack, obs, and UZO views. Set to True to enable them.
  653. #; change below to either True or False
  654. ShowLockBreakLock = False
  655.  
  656. #[OPTION]
  657. #CATEGORY=Scopes
  658. #TYPE=0
  659. #DESCRIPTION=Show contact's class/name in attack, observation, and UZO stations
  660. #VALUES=
  661. #DEFAULT=False
  662. #; show the ship's name in the scope views?
  663. #; change below to either True or False
  664. DisplayShipNames = False
  665.  
  666. #[OPTION]
  667. #CATEGORY=Scopes
  668. #TYPE=0
  669. #DESCRIPTION=Show contact spotted info on unlocked targets
  670. #VALUES=
  671. #DEFAULT=True
  672. #; show contact spotted info on unlocked target?
  673. #; change below to either True or False
  674. ContactSpottedInfoOnUnlockedTarget = True
  675.  
  676. #[OPTION]
  677. #CATEGORY=Scopes
  678. #TYPE=0
  679. #DESCRIPTION=Enable charts when entering scope station (Attack, Obs, or UZO)
  680. #VALUES=
  681. #DEFAULT=False
  682. AutoEnableChartsOnScopeStation = False
  683.  
  684.  
  685. #[OPTION]
  686. #CATEGORY=Scopes
  687. #TYPE=0
  688. #DESCRIPTION=Disable charts when leaving scope station (Attack, Obs, or UZO)
  689. #VALUES=
  690. #DEFAULT=False
  691. AutoDisableChartsOnScopeStationLeave = False
  692.  
  693.  
  694. #;###################################### Time compression ########################################
  695.  
  696. #[OPTION]
  697. #CATEGORY=Time compression
  698. #TYPE=6
  699. #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)
  700. #VALUES=MIN|1
  701. #DEFAULT=1024
  702. #; 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)
  703. #; below in powers of 2 only!
  704. TCxOnContactDistanceEnabledTCLevel = 1024
  705.  
  706. #[OPTION]
  707. #CATEGORY=Time compression
  708. #TYPE=2
  709. #DESCRIPTION=The radius around the sub to determine when to set time compression level to TCxOnContactDistanceTCLevel when time compression value is greater than 1
  710. #VALUES=MIN|0.0
  711. #DEFAULT=8000.0
  712. #; 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
  713. #; below in meters
  714. TCxOnContactDistanceRadius = 8000.0
  715.  
  716. #[OPTION]
  717. #CATEGORY=Time compression
  718. #TYPE=6
  719. #DESCRIPTION=Time compression level to set when contact is inside the TCxOnContactDistanceRadius
  720. #VALUES=MIN|1
  721. #DEFAULT=1
  722. #; the TC level to set when TCxOnContactDistanceEnabled is enabled (True) and contact is inside the TCxOnContactDistanceRadius
  723. #; below in powers of 2 only!
  724. TCxOnContactDistanceTCLevel = 1
  725.  
  726.  
  727. #;########################################## Fuel ################################################
  728.  
  729. #[OPTION]
  730. #CATEGORY=Fuel
  731. #TYPE=2
  732. #DESCRIPTION=Most fuel efficient speed
  733. #VALUES=MIN|0.0
  734. #DEFAULT=7.5
  735. #; what is the most fuel efficient speed?
  736. MostFuelEfficientSpeed = 7.5
  737.  
  738. #[OPTION]
  739. #CATEGORY=Fuel
  740. #TYPE=7
  741. #DESCRIPTION=Hotkey for ordering most fuel efficient speed
  742. #VALUES=
  743. #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ]
  744. #; the hotkey used to order most fuel efficient speed
  745. #; Format:
  746. #;
  747. #; MostFuelEfficientSpeedHotKey = [ False, None, False, False, False ]
  748. #; False = disabled
  749. #; None = key used
  750. #; False = shift required
  751. #; False = ctrl required
  752. #; False = alt required
  753. #; False = handled
  754. #;
  755. #; if you wanted to enable this without shift, ctrl, and alt required:
  756. #; MostFuelEfficientSpeedHotKey = [ True, MenuKeyManagerWrapper.Keys.M, False, False, False, False ]
  757. #;
  758. #; if you wanted to disable this:
  759. #; MostFuelEfficientSpeedHotKey = [ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ]
  760. #;
  761. #; 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
  762. #;
  763. MostFuelEfficientSpeedHotKey = [ False, MenuKeyManagerWrapper.Keys.M, False, False, False, False ] # change the M to whatever you want. You can't use M!
  764.  
  765.  
  766. #;################################### TDC style (SH3/4/5 modes) #################################
  767.  
  768. #;+++++++++++++++++++ TDC modes +++++++++++++++++++++
  769. #; Possible TDC modes:
  770. #;
  771. #; NOTDCDials - no dials
  772. #; TDCSpreadAngle - just the spread angle dial for salvo attacks
  773. #; TDCMinimalDials - minimal TDC dials
  774. #; TDCAllDials - all TDC dials
  775. #;
  776. NOTDCDials = 0
  777. TDCMinimalDials = 1
  778. TDCAllDials = 2
  779. TDCSpreadAngle = 3
  780.  
  781. #[OPTION]
  782. #CATEGORY=TDC
  783. #TYPE=5
  784. #DESCRIPTION=Attack scope TDC mode
  785. #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
  786. #DEFAULT=TDCAllDials
  787. #; the current TDC mode
  788. #; change below to either NOTDCDials, TDCSpreadAngle, TDCMinimalDials, or TDCAllDials
  789. AttackTDCMode = TDCAllDials
  790.  
  791. #[OPTION]
  792. #CATEGORY=TDC
  793. #TYPE=5
  794. #DESCRIPTION=Observation scope TDC mode
  795. #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
  796. #DEFAULT=TDCMinimalDials
  797. ObsTDCMode = TDCMinimalDials
  798.  
  799. #[OPTION]
  800. #CATEGORY=TDC
  801. #TYPE=5
  802. #DESCRIPTION=UZO TDC mode
  803. #VALUES=NOTDCDials,TDCMinimalDials,TDCAllDials,TDCSpreadAngle
  804. #DEFAULT=TDCSpreadAngle
  805. UZOTDCMode = TDCSpreadAngle
  806.  
  807. #[OPTION]
  808. #CATEGORY=TDC
  809. #TYPE=0
  810. #DESCRIPTION=Attack scope RAOBF enabled at game start
  811. #VALUES=
  812. #DEFAULT=False
  813. #; RAOBF enabled for each scope?
  814. #; change below to either True or False
  815. AttackRAOBFEnabled = False
  816.  
  817. #[OPTION]
  818. #CATEGORY=TDC
  819. #TYPE=0
  820. #DESCRIPTION=Observation scope RAOBF enabled at game start
  821. #VALUES=
  822. #DEFAULT=False
  823. ObsRAOBFEnabled = False
  824.  
  825. #[OPTION]
  826. #CATEGORY=TDC
  827. #TYPE=0
  828. #DESCRIPTION=UZO RAOBF enabled at game start
  829. #VALUES=
  830. #DEFAULT=False
  831. UZORAOBFEnabled = False
  832.  
  833. #[OPTION]
  834. #CATEGORY=TDC
  835. #TYPE=0
  836. #DESCRIPTION=Attack scope Attack Disk enabled at game start
  837. #VALUES=
  838. #DEFAULT=False
  839. #; Attack Disk enabled for each scope?
  840. #; change below to either True or False
  841. AttackAttackDiskEnabled = False
  842.  
  843. #[OPTION]
  844. #CATEGORY=TDC
  845. #TYPE=0
  846. #DESCRIPTION=Observation scope Attack Disk enabled at game start
  847. #VALUES=
  848. #DEFAULT=False
  849. ObsAttackDiskEnabled = False
  850.  
  851. #[OPTION]
  852. #CATEGORY=TDC
  853. #TYPE=0
  854. #DESCRIPTION=UZO Attack Disk enabled at game start
  855. #VALUES=
  856. #DEFAULT=False
  857. UZOAttackDiskEnabled = False
  858.  
  859. #[OPTION]
  860. #CATEGORY=TDC
  861. #TYPE=0
  862. #DESCRIPTION=Navigation map Attack Disk enabled at game start
  863. #VALUES=
  864. #DEFAULT=False
  865. NavMapAttackDiskEnabled = False
  866.  
  867. #[OPTION]
  868. #CATEGORY=TDC
  869. #TYPE=0
  870. #DESCRIPTION=Hide TDC dials when RAOBF is visible
  871. #VALUES=
  872. #DEFAULT=False
  873. #; are the TDC dials hidden when the RAOBF is visible?
  874. HideTDCDialsWhenUsingRAOBF = False
  875.  
  876. #[OPTION]
  877. #CATEGORY=TDC
  878. #TYPE=0
  879. #DESCRIPTION=Scope's periscope depth indicator scrolls out of view on mouse out and scrolls back into view on mouse in
  880. #VALUES=
  881. #DEFAULT=False
  882. #; 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?
  883. ScopesDepthIndicatorScrolls = False
  884.  
  885. #[OPTION]
  886. #CATEGORY=TDC
  887. #TYPE=2
  888. #DESCRIPTION=The time delay before the periscope's depth indicator scrolls out of view on mouse out (only applies if ScopesDepthIndicatorScrolls is True)
  889. #VALUES=MIN|0.0
  890. #DEFAULT=5.0
  891. #; if ScopesDepthIndicatorScrolls is enabled, this is the time delay before hiding the depth indicator when moused out:
  892. ScopesDepthIndicatorScrollsTD = 5.0
  893.  
  894. #[OPTION]
  895. #CATEGORY=TDC
  896. #TYPE=0
  897. #DESCRIPTION=Scope's torpedo box scrolls out of view on mouse out and scrolls back into view on mouse in
  898. #VALUES=
  899. #DEFAULT=False
  900. #; 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?
  901. ScopesTorpedoBoxScrolls = False
  902.  
  903. #[OPTION]
  904. #CATEGORY=TDC
  905. #TYPE=2
  906. #DESCRIPTION=The time delay before the scope's torpedo box scrolls out of view on mouse out (only applies if ScopesTorpedoBoxScrolls is True)
  907. #VALUES=MIN|0.0
  908. #DEFAULT=5.0
  909. #; if ScopesTorpedoBoxScrolls is enabled, this is the time delay before hiding the torpedo box when moused out:
  910. ScopesTorpedoBoxScrollsTD = 5.0
  911.  
  912.  
  913. #;################################### For Dials - SH3 and SH4 UI Modes only ##################################
  914.  
  915. #[OPTION]
  916. #CATEGORY=Dials
  917. #TYPE=2
  918. #DESCRIPTION=Rate at which dials grow and shrink (in seconds)
  919. #VALUES=MIN|0.0
  920. #DEFAULT=0.10
  921. #;++++++++++++++ Dial zoom/unzoom animation speed +++++++++++++++
  922. #; rate at which dials grow and shrink (in seconds)
  923. #; default is 0.10 seconds
  924. DialsAnimationSpeed = 0.10
  925.  
  926. #[OPTION]
  927. #CATEGORY=Dials
  928. #TYPE=3
  929. #DESCRIPTION=Throttle zoom factor on mouse in
  930. #VALUES=MIN|50
  931. #DEFAULT=200
  932. #;++++++++++++++ Base Zoom +++++++++++++++
  933. #; Base Zoom levels
  934. #; when MouseIn the dial will grow by this number
  935. #; default is 200
  936. BaseZoomThrottle = 200
  937.  
  938. #[OPTION]
  939. #CATEGORY=Dials
  940. #TYPE=3
  941. #DESCRIPTION=Speed zoom factor on mouse in
  942. #VALUES=MIN|50
  943. #DEFAULT=200
  944. #; default is 200
  945. BaseZoomSpeed = 200
  946.  
  947. #[OPTION]
  948. #CATEGORY=Dials
  949. #TYPE=3
  950. #DESCRIPTION=Heading zoom factor on mouse in
  951. #VALUES=MIN|50
  952. #DEFAULT=200
  953. #; default is 200
  954. BaseZoomHeading = 200
  955.  
  956. #[OPTION]
  957. #CATEGORY=Dials
  958. #TYPE=3
  959. #DESCRIPTION=Rudder zoom factor on mouse in
  960. #VALUES=MIN|50
  961. #DEFAULT=200
  962. #; default is 200
  963. BaseZoomRudder = 200
  964.  
  965. #[OPTION]
  966. #CATEGORY=Dials
  967. #TYPE=3
  968. #DESCRIPTION=260 Depth zoom factor on mouse in
  969. #VALUES=MIN|50
  970. #DEFAULT=200
  971. #; default is 200
  972. BaseZoomDepth260 = 200
  973.  
  974. #[OPTION]
  975. #CATEGORY=Dials
  976. #TYPE=3
  977. #DESCRIPTION=25 Depth zoom factor on mouse in
  978. #VALUES=MIN|50
  979. #DEFAULT=200
  980. #; default is 200
  981. BaseZoomDepth25 = 200
  982.  
  983. #[OPTION]
  984. #CATEGORY=Dials
  985. #TYPE=3
  986. #DESCRIPTION=SH5 Enhanced Heading dial zoom factor on mouse in
  987. #VALUES=MIN|50
  988. #DEFAULT=400
  989. #; default is 400
  990. BaseZoomSH5EHeading = 400
  991.  
  992. #[OPTION]
  993. #CATEGORY=Dials
  994. #TYPE=3
  995. #DESCRIPTION=SH5 Enhanced Rudder dial zoom factor on mouse in
  996. #VALUES=MIN|50
  997. #DEFAULT=400
  998. #; default is 400
  999. BaseZoomSH5ERudder = 400
  1000.  
  1001. #[OPTION]
  1002. #CATEGORY=Dials
  1003. #TYPE=0
  1004. #DESCRIPTION=Throttle dial can zoom
  1005. #VALUES=
  1006. #DEFAULT=True
  1007. #;++++++++++++++ Can Zoom +++++++++++++++
  1008. #; which dials can zoom
  1009. #; change True to False to disable zoom on that dial
  1010. #;
  1011. #; set below to either True or False for each
  1012. ThrottleCanZoom = True
  1013.  
  1014. #[OPTION]
  1015. #CATEGORY=Dials
  1016. #TYPE=0
  1017. #DESCRIPTION=Speed dial can zoom
  1018. #VALUES=
  1019. #DEFAULT=True
  1020. SpeedCanZoom = True
  1021.  
  1022. #[OPTION]
  1023. #CATEGORY=Dials
  1024. #TYPE=0
  1025. #DESCRIPTION=Heading dial can zoom
  1026. #VALUES=
  1027. #DEFAULT=True
  1028. HeadingCanZoom = True
  1029.  
  1030. #[OPTION]
  1031. #CATEGORY=Dials
  1032. #TYPE=0
  1033. #DESCRIPTION=Rudder dial can zoom
  1034. #VALUES=
  1035. #DEFAULT=True
  1036. RudderCanZoom = True
  1037.  
  1038. #[OPTION]
  1039. #CATEGORY=Dials
  1040. #TYPE=0
  1041. #DESCRIPTION=260 depth dial can zoom
  1042. #VALUES=
  1043. #DEFAULT=True
  1044. Depth260CanZoom = True
  1045.  
  1046. #[OPTION]
  1047. #CATEGORY=Dials
  1048. #TYPE=0
  1049. #DESCRIPTION=25 depth dial can zoom
  1050. #VALUES=
  1051. #DEFAULT=True
  1052. Depth25CanZoom = True
  1053.  
  1054. #[OPTION]
  1055. #CATEGORY=Dials
  1056. #TYPE=0
  1057. #DESCRIPTION=SH5 Enhanced heading dial can zoom
  1058. #VALUES=
  1059. #DEFAULT=True
  1060. SH5EHeadingCanZoom = True
  1061.  
  1062. #[OPTION]
  1063. #CATEGORY=Dials
  1064. #TYPE=0
  1065. #DESCRIPTION=SH5 Enhanced rudder dial can zoom
  1066. #VALUES=
  1067. #DEFAULT=True
  1068. SH5ERudderCanZoom = True
  1069.  
  1070. #[OPTION]
  1071. #CATEGORY=Dials
  1072. #TYPE=3
  1073. #DESCRIPTION=When mouse into dial that is zoomable this offset is applied to the Y axis if image goes offscreen
  1074. #VALUES=MIN|0
  1075. #DEFAULT=10
  1076. #;++++++++++++++ Offsets +++++++++++++++
  1077. #; y offset adjustment when mouse in/out and image goes offscreen (BaseZoom - for dynamically repositioning dials)
  1078. DialsBaseZoomOffsetYAdjustment = 10
  1079.  
  1080. #[OPTION]
  1081. #CATEGORY=Dials
  1082. #TYPE=3
  1083. #DESCRIPTION=When mouse into dial that is zoomable this offset is applied to the X axis if image goes offscreen
  1084. #VALUES=MIN|0
  1085. #DEFAULT=10
  1086. #; x offset adjustment when mouse in/out and image goes offscreen (BaseZoom - for dynamically repositioning dials)
  1087. DialsBaseZoomOffsetXAdjustment = 10
  1088.  
  1089. #[OPTION]
  1090. #CATEGORY=Dials
  1091. #TYPE=3
  1092. #DESCRIPTION=When mouse into SH5 Enhanced heading/rudder dial that is zoomable this offset is applied to the Y axis (max +- 100)
  1093. #VALUES=MIN|-100,MAX|100
  1094. #DEFAULT=0
  1095. #; y offset adjustment for SH5 Enhanced heading/rudder dial. Maximum offset allowed is +-100 pixels
  1096. SH5EHeadingRudderOffsetY = 0
  1097.  
  1098.  
  1099. #;#################################### Automatics #####################################################
  1100.  
  1101. #[OPTION]
  1102. #CATEGORY=Automatics
  1103. #TYPE=0
  1104. #DESCRIPTION=Automatically show clock when torpedo is fired
  1105. #VALUES=
  1106. #DEFAULT=False
  1107. #; does the clock automatically show when a torpedo is fired?
  1108. #; change below to either True or False
  1109. AutoShowClockOnTorpFire = False
  1110.  
  1111. #[OPTION]
  1112. #CATEGORY=Automatics
  1113. #TYPE=0
  1114. #DESCRIPTION=Automatically show clock when follow target enabled (it will auto hide itself if follow target cancelled and clock isn't called for)
  1115. #VALUES=
  1116. #DEFAULT=True
  1117. #; Does the clock automatically show when follow target enabled (it will auto hide itself if follow target cancelled and clock isn't called for)?
  1118. #; change below to either True or False
  1119. AutoShowClockOnFollowTarget = True
  1120.  
  1121. #[OPTION]
  1122. #CATEGORY=Automatics
  1123. #TYPE=0
  1124. #DESCRIPTION=Automatically order recharge mode upon surfacing
  1125. #VALUES=
  1126. #DEFAULT=True
  1127. #; when surfacing does the game automatically order recharge mode?
  1128. #; change below to either True or False
  1129. AutomaticallyOrderRechargeModeUponSurfacing = True
  1130.  
  1131. #[OPTION]
  1132. #CATEGORY=Automatics
  1133. #TYPE=0
  1134. #DESCRIPTION=Automatically order recharge mode when snorkel raised
  1135. #VALUES=
  1136. #DEFAULT=True
  1137. #; when snorkel is raised and submerging does the game automatically order recharge mode?
  1138. AutomaticallyOrderRechargeModeWhenSnorkeling = True
  1139.  
  1140. #[OPTION]
  1141. #CATEGORY=Automatics
  1142. #TYPE=0
  1143. #DESCRIPTION=Automatically fully raise attack periscope when entering attack scope station
  1144. #VALUES=
  1145. #DEFAULT=False
  1146. #; when entering the attack scope station does the scope fully raise automatically?
  1147. #; change below to either True or False
  1148. AutomaticallyRaiseAttackScope = False
  1149.  
  1150. #[OPTION]
  1151. #CATEGORY=Automatics
  1152. #TYPE=0
  1153. #DESCRIPTION=Automatically fully lower attack periscope when leaving attack scope station
  1154. #VALUES=
  1155. #DEFAULT=True
  1156. #; when leaving the attack periscope station does the scope automatically fully lower?
  1157. #; change below to either True or False
  1158. AutomaticallyFullyLowerAttackScope = True
  1159.  
  1160. #[OPTION]
  1161. #CATEGORY=Automatics
  1162. #TYPE=0
  1163. #DESCRIPTION=Automatically fully lower observation periscope when leaving observation scope station
  1164. #VALUES=
  1165. #DEFAULT=True
  1166. #; when leaving the obs scope station does the scope automatically fully lower?
  1167. #; change below to either True or False
  1168. AutomaticallyFullyLowerObsScope = True
  1169.  
  1170. #[OPTION]
  1171. #CATEGORY=Automatics
  1172. #TYPE=0
  1173. #DESCRIPTION=Navigator assists in determining AOB and speed of a target based on range readings
  1174. #VALUES=
  1175. #DEFAULT=True
  1176. #; does the Navigator assist you in determing the AOB and Speed of a target based on range readings taken by you?
  1177. #; change below to either True or False
  1178. NavigatorAssistAOBSpeedCalcs = True
  1179.  
  1180. #[OPTION]
  1181. #CATEGORY=Automatics
  1182. #TYPE=0
  1183. #DESCRIPTION=Automatically load fired torpedoes
  1184. #VALUES=
  1185. #DEFAULT=True
  1186. #; is torpedo autoloading enabled?
  1187. TorpedoAutoloadingEnabled = True
  1188.  
  1189. #[OPTION]
  1190. #CATEGORY=Automatics
  1191. #TYPE=2
  1192. #DESCRIPTION=Maximum speed allowed when snorkel raised
  1193. #VALUES=MIN|0.0
  1194. #DEFAULT=10.0
  1195. #; What is the maximum speed allowed when the snorkel is raised?
  1196. #; below is in knots
  1197. MaxSpeedWhenSnorkelRaised = 10.0
  1198.  
  1199. #[OPTION]
  1200. #CATEGORY=Automatics
  1201. #TYPE=2
  1202. #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.
  1203. #VALUES=MIN|0.0
  1204. #DEFAULT=6.0
  1205. #; 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
  1206. #; enter a value below for the time period in hours
  1207. #; specify 0.0 to disable reporting
  1208. JournalEntryIntervalTime = 6.0
  1209.  
  1210. #[OPTION]
  1211. #CATEGORY=Automatics
  1212. #TYPE=2
  1213. #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
  1214. #VALUES=MIN|0.0
  1215. #DEFAULT=1.0
  1216. #; 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
  1217. #; below is in hours
  1218. #; specify 0.0 to disable reporting
  1219. JournalEntryWithSubsDataIntervalTime = 1.0
  1220.  
  1221. #[OPTION]
  1222. #CATEGORY=Automatics
  1223. #TYPE=0
  1224. #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?
  1225. #VALUES=
  1226. #DEFAULT=False
  1227. WatchOfficerCheckForContactsOnTCxSet = False
  1228.  
  1229. #[OPTION]
  1230. #CATEGORY=Automatics
  1231. #TYPE=0
  1232. #DESCRIPTION=Automatically activate battery level when submerging and fuel level when surfacing
  1233. #VALUES=
  1234. #DEFAULT=True
  1235. AutomaticallySwitchBatteryFuelLevels = True
  1236.  
  1237. #[OPTION]
  1238. #CATEGORY=Automatics
  1239. #TYPE=2
  1240. #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
  1241. #VALUES=MIN|0.0
  1242. #DEFAULT=2.0
  1243. #; below is in seconds
  1244. AutomaticallySwitchBackToBatteryFuelLevelTD = 2.0
  1245.  
  1246. #;######################################## Real Navigation ############################################
  1247.  
  1248. #[OPTION]
  1249. #CATEGORY=RealNav
  1250. #TYPE=2
  1251. #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
  1252. #VALUES=MIN|0.0
  1253. #DEFAULT=5000.0
  1254. #; 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
  1255. #; below is an float value only! (in meters)
  1256. NavCelestialMaxCalcFixError = 5000.0
  1257.  
  1258. #[OPTION]
  1259. #CATEGORY=RealNav
  1260. #TYPE=2
  1261. #DESCRIPTION=The minimum time it takes the Navigator to calculate the current position (fix). Only used in real navigation
  1262. #VALUES=MIN|0.0
  1263. #DEFAULT=900.0
  1264. #; the minimum time it takes the Navigator to calculate the current position (fix)
  1265. #; below is in seconds
  1266. NavCelestialCalcFixMinTime = 900.0
  1267.  
  1268. #[OPTION]
  1269. #CATEGORY=RealNav
  1270. #TYPE=2
  1271. #DESCRIPTION=The maximum time it takes the Navigator to calculate the current position (fix). Only used in real navigation
  1272. #VALUES=MIN|0.0
  1273. #DEFAULT=2700.0
  1274. #; the maximum time it takes the Navigator to calculate the current position (fix)
  1275. #; below is in seconds
  1276. NavCelestialCalcFixMaxTime = 2700.0
  1277.  
  1278. #[OPTION]
  1279. #CATEGORY=RealNav
  1280. #TYPE=0
  1281. #DESCRIPTION=Navigator show position on the maps after he calculates current position (plots a new navigation fix). Used only in real navigation
  1282. #VALUES=
  1283. #DEFAULT=True
  1284. #; does navigator show position on the maps after he calculates current position (plots a new navigation fix)?
  1285. #; change below to either True or False
  1286. NavShowPositionOnMapsAfterCalc = True
  1287.  
  1288. #[OPTION]
  1289. #CATEGORY=RealNav
  1290. #TYPE=2
  1291. #DESCRIPTION=The time the Navigator shows the calculated position on the map if NavShowPositionOnMapsAfterCalc is True. Used only in real navigation
  1292. #VALUES=MIN|0.0
  1293. #DEFAULT=20.0
  1294. #; if NavShowPositionOnMapsAfterCalc enabled, how long does the navigator show the calculated position on the map?
  1295. #; below in seconds
  1296. NavShowPositionOnMapsAfterCalcTime = 20.0
  1297.  
  1298. #[OPTION]
  1299. #CATEGORY=RealNav
  1300. #TYPE=3
  1301. #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
  1302. #VALUES=MIN|0
  1303. #DEFAULT=15
  1304. #; 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
  1305. NavDeadReckoningMaxCalcFixError = 15
  1306.  
  1307. #[OPTION]
  1308. #CATEGORY=RealNav
  1309. #TYPE=2
  1310. #DESCRIPTION=The minimum time it takes Navigator to plot position based on dead-reckoning. Used only in real navigation
  1311. #VALUES=MIN|0.0
  1312. #DEFAULT=15.0
  1313. #; minimum time it takes Navigator to plot position based on dead-reckoning
  1314. #; below is a float value only! (in seconds)
  1315. NavDeadReckoningMinCalcTime = 15.0
  1316.  
  1317. #[OPTION]
  1318. #CATEGORY=RealNav
  1319. #TYPE=2
  1320. #DESCRIPTION=The maximum time it takes Navigator to plot position based on dead-reckoning. Used only in real navigation
  1321. #VALUES=MIN|0.0
  1322. #DEFAULT=60.0
  1323. #; maximum time it takes Navigator to plot position based on dead-reckoning
  1324. #; below is a float value only! (in seconds)
  1325. NavDeadReckoningMaxCalcTime = 60.0
  1326.  
  1327.  
  1328. #;###################### Navigation fixes, Super marks, and Destroyed marks ###########################
  1329.  
  1330. #[OPTION]
  1331. #CATEGORY=Marks
  1332. #TYPE=7
  1333. #DESCRIPTION=Hotkey for removing a mark on the map
  1334. #VALUES=
  1335. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1336. #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
  1337. #; the hotkey used to remove a mark from the map
  1338. DeleteMarksHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1339.  
  1340. #[OPTION]
  1341. #CATEGORY=Marks
  1342. #TYPE=7
  1343. #DESCRIPTION=Hotkey for repositioning a mark on the map
  1344. #VALUES=
  1345. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.C, False, False, False, False ]
  1346. #; the hotkey used to reposition a mark on the map
  1347. RepositionMarksHotKey = [ True, MenuKeyManagerWrapper.Keys.C, False, False, False, False ]
  1348.  
  1349. #[OPTION]
  1350. #CATEGORY=Marks
  1351. #TYPE=7
  1352. #DESCRIPTION=Hotkey for editing text associated with a mark on the map
  1353. #VALUES=
  1354. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.V, False, False, False, False ]
  1355. #; the hotkey used to edit the mark text associated with the mark on the map
  1356. EditMarksTextHotKey = [ True, MenuKeyManagerWrapper.Keys.V, False, False, False, False ]
  1357.  
  1358. #[OPTION]
  1359. #CATEGORY=Marks
  1360. #TYPE=7
  1361. #DESCRIPTION=Hotkey for editing text associated with a mark on the map (keeping existing text)
  1362. #VALUES=
  1363. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.V, True, False, False, False ]
  1364. #; the hotkey used to edit the mark text associated with the mark on the map
  1365. EditMarksTextKeepExistingHotKey = [ True, MenuKeyManagerWrapper.Keys.V, True, False, False, False ]
  1366.  
  1367. #[OPTION]
  1368. #CATEGORY=Marks
  1369. #TYPE=9
  1370. #DESCRIPTION=Supermarks color and opacity (RGBA format)
  1371. #VALUES=
  1372. #DEFAULT=0xFFFFFFFF
  1373. #; the super marks color and opacity (specified as RGBA format)
  1374. #; default color is white 0xFFFFFF with 100% opacity FF
  1375. SuperMarksColor = 0xFFFFFFFF
  1376.  
  1377. #[OPTION]
  1378. #CATEGORY=Marks
  1379. #TYPE=9
  1380. #DESCRIPTION=Navigation fixes color and opacity (RGBA format)
  1381. #VALUES=
  1382. #DEFAULT=0xFFFFFFFF
  1383. #; the navigation fixes color and opacity (specified as RGBA format)
  1384. #; default color is white 0xFFFFFF with 100% opacity FF
  1385. NavFixesColor = 0xFFFFFFFF
  1386.  
  1387. #[OPTION]
  1388. #CATEGORY=Marks
  1389. #TYPE=9
  1390. #DESCRIPTION=Destroyed marks color and opacity (RGBA format)
  1391. #VALUES=
  1392. #DEFAULT=0xB00000FF
  1393. #; the destroyed marks color and opacity (specified as RGBA format)
  1394. #; default color is medium red 0xB00000 with 100% opacity FF
  1395. DestroyedMarksColor = 0xB00000FF
  1396.  
  1397.  
  1398. #;########################################### Digital Clock ###########################################
  1399.  
  1400. #[OPTION]
  1401. #CATEGORY=Clock
  1402. #TYPE=0
  1403. #DESCRIPTION=Digital clock starts in local time at game start vice GMT time
  1404. #VALUES=
  1405. #DEFAULT=True
  1406. #; does the digital clock start out reading local time or GMT time?
  1407. #; change below to either True or False
  1408. DigitalClockStartsInLocalTime = True
  1409.  
  1410. #[OPTION]
  1411. #CATEGORY=Clock
  1412. #TYPE=6
  1413. #DESCRIPTION=Clock visible when time compression greater than this value
  1414. #VALUES=MIN|1
  1415. #DEFAULT=1024
  1416. #; Above this specified TC level the clock will be visible (levels are in powers of 2)
  1417. AboveThisTCLevelShowClock = 1024
  1418.  
  1419.  
  1420. #;########################################### SOAN ####################################################
  1421.  
  1422. #[OPTION]
  1423. #CATEGORY=SOAN
  1424. #TYPE=0
  1425. #DESCRIPTION=SOAN enabled
  1426. #VALUES=
  1427. #DEFAULT=True
  1428. #; is SOAN visible in game?
  1429. #; change below to either True or False
  1430. SOANEnabled = True
  1431.  
  1432. #[OPTION]
  1433. #CATEGORY=SOAN
  1434. #TYPE=0
  1435. #DESCRIPTION=Automatically enable charts (if not enabled) and open SOAN to identified unit (WEPS-->Torpedo attack-->Identify target)
  1436. #VALUES=
  1437. #DEFAULT=False
  1438. AutoEnableChartsOpenSOANToIdentifiedUnit = False
  1439.  
  1440.  
  1441. #;################################## Automation #######################################################
  1442.  
  1443. #[OPTION]
  1444. #CATEGORY=Automation
  1445. #TYPE=7
  1446. #DESCRIPTION=Hotkey for toggling Automation visibility
  1447. #VALUES=
  1448. #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
  1449. #; the hotkey used to toggle the visibility of the Automation screen (can also be toggled using the 'gears' icon in top right lower bar)
  1450. #; Format:
  1451. #;
  1452. #; AutomationHotKey = [ True, None, False, False, False, False ]
  1453. #; True = enabled
  1454. #; None = key used
  1455. #; False = shift required
  1456. #; False = control required
  1457. #; False = alt required
  1458. #; False = handled
  1459. #;
  1460. #; if you wanted to enable this without shift, ctrl, and alt required:
  1461. #; AutomationHotKey = [ True, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
  1462. #;
  1463. #; if you wanted to disable this:
  1464. #; AutomationHotKey = [ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ]
  1465. #;
  1466. AutomationHotKey = [ False, MenuKeyManagerWrapper.Keys.U, False, False, False, False ] # change the Q to whatever you want
  1467.  
  1468. #[OPTION]
  1469. #CATEGORY=Automation
  1470. #TYPE=0
  1471. #DESCRIPTION=Automation debugging enabled
  1472. #VALUES=
  1473. #DEFAULT=False
  1474. #; Is Automation debugging enabled?
  1475. AutomationDebuggingEnabled = False
  1476.  
  1477. #[OPTION]
  1478. #CATEGORY=Automation
  1479. #TYPE=0
  1480. #DESCRIPTION=Automation start, stop, paused, loop, etc. messages displayed in the message box
  1481. #VALUES=
  1482. #DEFAULT=False
  1483. #; Are Automation start, stop, paused, loop, etc. messages displayed in the message box?
  1484. AutomationActionMessagesDisplayed = False
  1485.  
  1486. #[OPTION]
  1487. #CATEGORY=Automation
  1488. #TYPE=7
  1489. #DESCRIPTION=Hotkey for Automation's hotkey 1
  1490. #VALUES=
  1491. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1492. #; the hotkey used to activate the script associated with Automation hotkey x (1-4)
  1493. #; Format:
  1494. #;
  1495. #; AutomationScriptHotKeyx = [ True, None, False, False, False, False ]
  1496. #; True = enabled
  1497. #; None = key used
  1498. #; False = shift required
  1499. #; False = ctrl required
  1500. #; False = alt required
  1501. #; False = handled
  1502. #;
  1503. #; if you wanted to enable this without shift, crtl, and alt required:
  1504. #; AutomationScriptHotKeyx = [ True, MenuKeyManagerWrapper.Keys.J, False, False, False, False ]
  1505. #;
  1506. #; if you wanted to disable this:
  1507. #; AutomationScriptHotKeyx = [ False, MenuKeyManagerWrapper.Keys.J, False, False, False, False ]
  1508. #;
  1509. #; NOTE: set the ones using SHIFT first!
  1510. #;
  1511. AutomationScriptHotKey1 = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ] # change the None to whatever you want
  1512.  
  1513. #[OPTION]
  1514. #CATEGORY=Automation
  1515. #TYPE=7
  1516. #DESCRIPTION=Hotkey for Automation's hotkey 2
  1517. #VALUES=
  1518. #DEFAULT=[ False, None, False, False, False, False ]
  1519. AutomationScriptHotKey2 = [ False, None, False, False, False, False ] # change the None to whatever you want
  1520.  
  1521. #[OPTION]
  1522. #CATEGORY=Automation
  1523. #TYPE=7
  1524. #DESCRIPTION=Hotkey for Automation's hotkey 3
  1525. #VALUES=
  1526. #DEFAULT=[ False, None, False, False, False, False ]
  1527. AutomationScriptHotKey3 = [ False, None, False, False, False, False ] # change the None to whatever you want
  1528.  
  1529. #[OPTION]
  1530. #CATEGORY=Automation
  1531. #TYPE=7
  1532. #DESCRIPTION=Hotkey for Automation's hotkey 4
  1533. #VALUES=
  1534. #DEFAULT=[ False, None, False, False, False, False ]
  1535. AutomationScriptHotKey4 = [ False, None, False, False, False, False ] # change the None to whatever you want
  1536.  
  1537.  
  1538. #;################################## Time Delays ######################################################
  1539.  
  1540. #[OPTION]
  1541. #CATEGORY=Time delays
  1542. #TYPE=2
  1543. #DESCRIPTION=The time delay (in seconds) associated with opening torpedo tube door during realistic torpedo launch
  1544. #VALUES=MIN|0.0
  1545. #DEFAULT=7.5
  1546. #; opening tube time delay for realistic torpedo launches (in seconds)
  1547. RealisticOpenTubeTDBase = 7.5
  1548.  
  1549. #[OPTION]
  1550. #CATEGORY=Time delays
  1551. #TYPE=2
  1552. #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)
  1553. #VALUES=MIN|0.0
  1554. #DEFAULT=5.0
  1555. #; 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)
  1556. WaterLevelTD = 5.0
  1557.  
  1558. #[OPTION]
  1559. #CATEGORY=Time delays
  1560. #TYPE=2
  1561. #DESCRIPTION=The time delay (in seconds) before checking to see if battery recharge needs to be ordered up when surfacing
  1562. #VALUES=MIN|0.0
  1563. #DEFAULT=180.0
  1564. #; 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)
  1565. #; this value must be greater than WaterLevelTD or you will get an error!
  1566. SwitchToRechargePropulsionTDBase = 180.0
  1567.  
  1568. #[OPTION]
  1569. #CATEGORY=Time delays
  1570. #TYPE=2
  1571. #DESCRIPTION=The time delay (in seconds) before automatic switching to standard propulsion when submerging (must be greater than WaterLevelTD)
  1572. #VALUES=MIN|0.0
  1573. #DEFAULT=180.0
  1574. #; when submerging, the time delay before automatic switching to standard propulsion (in seconds):
  1575. #; this value must be greater than WaterLevelTD or you will get an error!
  1576. SwitchToStdPropulsionTDBase = 180.0
  1577.  
  1578. #[OPTION]
  1579. #CATEGORY=Time delays
  1580. #TYPE=2
  1581. #DESCRIPTION=The base time (in seconds) it takes the Navigator to compute the AOB and speed of a target from 2 range measurements
  1582. #VALUES=MIN|0.0
  1583. #DEFAULT=10.0
  1584. #; 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
  1585. #; that is in the range (0, 1.0) * value (i.e. realtimedelay = NavCalcTimeAOBSpeedFromRangeMeasurementsBase + (Random * NavCalcTimeAOBSpeedFromRangeMeasurementsBase)
  1586. NavCalcTimeAOBSpeedFromRangeMeasurementsBase = 10.0
  1587.  
  1588. #[OPTION]
  1589. #CATEGORY=Time delays
  1590. #TYPE=2
  1591. #DESCRIPTION=The base time (in seconds) it takes the Navigator to compute the speed of a target from time measurements
  1592. #VALUES=MIN|0.0
  1593. #DEFAULT=5.0
  1594. #; 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
  1595. #; (0, 1.0) * value (i.e. realtimedelay = NavCalcTimeSpeedFromTimeMeasurementsBase + (Random * NavCalcTimeSpeedFromTimeMeasurementsBase)
  1596. NavCalcTimeSpeedFromTimeMeasurementsBase = 5.0
  1597.  
  1598. #[OPTION]
  1599. #CATEGORY=Time delays
  1600. #TYPE=2
  1601. #DESCRIPTION=The minimum base time (in seconds) to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is True
  1602. #VALUES=MIN|0
  1603. #DEFAULT=3.0
  1604. #; the min and max base time to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is enabled:
  1605. #; have to be int values!
  1606. #; values are in seconds of time
  1607. NewSpeedThrottleDelayMin = 3.0
  1608.  
  1609. #[OPTION]
  1610. #CATEGORY=Time delays
  1611. #TYPE=0
  1612. #DESCRIPTION=Delay incurred when new speed/throttle is requested (simulate crew response of answering ordered bells)
  1613. #VALUES=
  1614. #DEFAULT=False
  1615. #; is a delay incurred between when new speed/throttle is requested and when activated (simulate crew response of answering ordered bells)?
  1616. #; change below to either True or False
  1617. DelayNewSpeedThrottleCommand = False
  1618.  
  1619. #[OPTION]
  1620. #CATEGORY=Time delays
  1621. #TYPE=2
  1622. #DESCRIPTION=The maximum base time (in seconds) to wait before ordering of new bell or speed if DelayNewSpeedThrottleCommand is True
  1623. #VALUES=MIN|0
  1624. #DEFAULT=6.0
  1625. NewSpeedThrottleDelayMax = 6.0
  1626.  
  1627.  
  1628. #;#################################### Crash Dive (SH3/4/5 Modes) #####################################
  1629.  
  1630. #[OPTION]
  1631. #CATEGORY=Crash dive
  1632. #TYPE=7
  1633. #DESCRIPTION=Hotkey for crash dive
  1634. #VALUES=
  1635. #DEFAULT=[ False, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
  1636. #; the hotkey used for crash dive
  1637. #; Format:
  1638. #;
  1639. #; CrashDiveKey = [ False, None, False, False, False, False ]
  1640. #; False = enabled
  1641. #; None = key used
  1642. #; False = shift key required
  1643. #; False = ctrl required
  1644. #; False = alt required
  1645. #; False = handled
  1646. #;
  1647. #; so if you wanted the crash dive hot key to be shift + P:
  1648. #; CrashDiveKey = [ True, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
  1649. #;
  1650. #; if you didn't want to assign a hotkey for crash dive:
  1651. #; CrashDiveKey = [ False, MenuKeyManagerWrapper.Keys.P, False, False, False, False ]
  1652. CrashDiveKey = [ False, MenuKeyManagerWrapper.Keys.P, True, False, False, False ]
  1653.  
  1654. #[OPTION]
  1655. #CATEGORY=Crash dive
  1656. #TYPE=0
  1657. #DESCRIPTION=Teleport on crash dive (If True and sub is submerged then no teleporting will take place)
  1658. #VALUES=
  1659. #DEFAULT=True
  1660. #; teleport on crash dive? If enabled and you are currently submerged then no teleporting will take place
  1661. #; change below to either True or False
  1662. TeleportOnCrashDive = True
  1663.  
  1664. #[OPTION]
  1665. #CATEGORY=Crash dive
  1666. #TYPE=2
  1667. #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
  1668. #VALUES=MIN|0.0
  1669. #DEFAULT=20.0
  1670. #; 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
  1671. TeleportOnCrashDiveWaitTime = 20.0
  1672.  
  1673. #[OPTION]
  1674. #CATEGORY=Crash dive
  1675. #TYPE=5
  1676. #DESCRIPTION=Station to teleport to when crash diving (if TeleportOnCrashDive is True)
  1677. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  1678. #DEFAULT="TelToRadar"
  1679. #; the station to teleport to when crash diving
  1680. #; possible values are:
  1681. #; "TelToObsScope" - teleport to obs scope
  1682. #; "TelToAttackScope" - teleport to attack scope
  1683. #; "TelToRadar" - telelport to radar station
  1684. #; "TelToHydrophone" - teleport to hydrophone station
  1685. #; "TelToCaptainsBed" - teleport to Captain's bed
  1686. #; None - do not teleport
  1687. CrashDiveTeleportToStation = "TelToRadar"
  1688.  
  1689.  
  1690. #;#################################### Follow Target (SH3/5 Modes) ####################################
  1691.  
  1692. #[OPTION]
  1693. #CATEGORY=Follow target
  1694. #TYPE=7
  1695. #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.)
  1696. #VALUES=
  1697. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1698. #; the hotkey used to toggle follow target (when you have a target selected you can enable this to have the camera
  1699. #; automatically follow the target as it moves.)
  1700. #; Format:
  1701. #;
  1702. #; FollowSelectedTargetHotKey = [ False, None, False, False, False, False ]
  1703. #; False = enabled
  1704. #; None = key used
  1705. #; False = shift key required
  1706. #; False = ctrl required
  1707. #; False = alt required
  1708. #; False = handled
  1709. #;
  1710. #; if you wanted to enable this:
  1711. #; FollowSelectedTargetHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1712. #;
  1713. #; if you wanted to disable this:
  1714. #; FollowSelectedTargetHotKey = [ False, MenuKeyManagerWrapper.Keys.X, False, False, False, False ]
  1715. #;
  1716. FollowSelectedTargetHotKey = [ True, MenuKeyManagerWrapper.Keys.X, False, False, False, False ] # change the X to whatever you want
  1717.  
  1718. #[OPTION]
  1719. #CATEGORY=Follow target
  1720. #TYPE=7
  1721. #DESCRIPTION=Hotkey for increasing follow selected target offset
  1722. #VALUES=
  1723. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, True, False, False, False ]
  1724. #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
  1725. #; the hotkeys used to increase/decrease follow selected target offset value
  1726. IncreaseFollowSelectedTargetOffsetHotKey = [ True, MenuKeyManagerWrapper.Keys.E, True, False, False, False ]
  1727.  
  1728. #[OPTION]
  1729. #CATEGORY=Follow target
  1730. #TYPE=7
  1731. #DESCRIPTION=Hotkey for decreasing follow selected target offset
  1732. #VALUES=
  1733. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, True, False, False, False ]
  1734. DecreaseFollowSelectedTargetOffsetHotKey = [ True, MenuKeyManagerWrapper.Keys.Q, True, False, False, False ]
  1735.  
  1736. #[OPTION]
  1737. #CATEGORY=Follow target
  1738. #TYPE=0
  1739. #DESCRIPTION=When locking onto a new contact does follow selected target offset reset to 0?
  1740. #VALUES=
  1741. #DEFAULT=True
  1742. FollowSelectedTargetOffsetResetOnNewLockedContact = True
  1743.  
  1744.  
  1745. #;####################################### Hydro Follow Target #########################################
  1746.  
  1747. #[OPTION]
  1748. #CATEGORY=Hydro follow target
  1749. #TYPE=2
  1750. #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
  1751. #VALUES=MIN|0.0
  1752. #DEFAULT=300.0
  1753. #; below is in seconds
  1754. HydroFollowContactUpdateInterval = 300.0
  1755.  
  1756. #[OPTION]
  1757. #CATEGORY=Hydro follow target
  1758. #TYPE=2
  1759. #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
  1760. #VALUES=MIN|0.0
  1761. #DEFAULT=0.0
  1762. #; below is in degrees
  1763. HydroFollowContactDeltaBearing = 0.0
  1764.  
  1765. #[OPTION]
  1766. #CATEGORY=Hydro follow target
  1767. #TYPE=2
  1768. #DESCRIPTION=When the sonarman is ordered to follow nearest contact this is the sweep range (+- in degrees) from current hydrophone needle position
  1769. #VALUES=MIN|1.0,MAX|45.0
  1770. #DEFAULT=22.5
  1771. #; below is in degrees
  1772. HydroFollowNearestContactSweepRange = 22.5
  1773.  
  1774. #[OPTION]
  1775. #CATEGORY=Hydro follow target
  1776. #TYPE=2
  1777. #DESCRIPTION=When the sonarman is ordered to follow nearest contact this is the maximum range from the sub the contact can be (in meters)
  1778. #VALUES=MIN|0.0,MAX|30000.0
  1779. #DEFAULT=7500.0
  1780. #; below is in degrees
  1781. HydroFollowNearestContactMaxRange = 7500.0
  1782.  
  1783.  
  1784. #;#################################### Message Box (SH3/4/5 modes) ####################################
  1785.  
  1786. #[OPTION]
  1787. #CATEGORY=Message box
  1788. #TYPE=2
  1789. #DESCRIPTION=Message box minimum width
  1790. #VALUES=MIN|180.0
  1791. #DEFAULT=315.0
  1792. #; controls the minimum width the messagebox is set to. On game start messagebox will be set to this width.
  1793. #; minimum value for below is 180.0
  1794. MessageBoxMinimumWidth = 315.0
  1795.  
  1796. #[OPTION]
  1797. #CATEGORY=Message box
  1798. #TYPE=2
  1799. #DESCRIPTION=Message box width factor (controls maximum width of message box)
  1800. #VALUES=MIN|1.0
  1801. #DEFAULT=2.25
  1802. #; these control the maximum height and width of the message box. They are multiplied by a set value so increment in small values!
  1803. #; 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
  1804. #; they define the maximum size of the message box by: MessageBoxMinimumWidth * MessageBoxWidthFactor (width in pixels), PageDefaultHud_Feedback_BottomBar.Height * MessageBoxHeightFactor (height in pixels)
  1805. #; minimum value for below is 1
  1806. MessageBoxWidthFactor = 2.25 # stock is 2
  1807.  
  1808. #[OPTION]
  1809. #CATEGORY=Message box
  1810. #TYPE=2
  1811. #DESCRIPTION=Message box height factor (controls maximum height of message box)
  1812. #VALUES=MIN|1.0
  1813. #DEFAULT=5.0
  1814. #; minimum value for below is 1
  1815. MessageBoxHeightFactor = 5.0 # stock is 3
  1816.  
  1817. #[OPTION]
  1818. #CATEGORY=Message box
  1819. #TYPE=0
  1820. #DESCRIPTION=Message box starts expanded (vertically) on game start
  1821. #VALUES=
  1822. #DEFAULT=True
  1823. #; this will cause the message box to start in the expanded mode (vertically) when the game starts
  1824. #; change below to either True or False
  1825. MessageBoxStartsExpanded = True
  1826.  
  1827. #[OPTION]
  1828. #CATEGORY=Message box
  1829. #TYPE=0
  1830. #DESCRIPTION=Message box starts expanded (horizontally) on game start
  1831. #VALUES=
  1832. #DEFAULT=False
  1833. #; this will cause the message box to start in widened mode (horizontally) when the game starts
  1834. #; change below to either True or False
  1835. MessageBoxStartsWidened = False
  1836.  
  1837. #[OPTION]
  1838. #CATEGORY=Message box
  1839. #TYPE=0
  1840. #DESCRIPTION=Message box visible on game start
  1841. #VALUES=
  1842. #DEFAULT=True
  1843. #; is the message box displayed at game start?
  1844. #; change below to either True or False
  1845. DisplayTheMessageBox = True
  1846.  
  1847. #[OPTION]
  1848. #CATEGORY=Message box
  1849. #TYPE=7
  1850. #DESCRIPTION=Hotkey for toggling message box visibility (pressing shift + this hotkey toggles the message box between vertically minimized and maximized states)
  1851. #VALUES=
  1852. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
  1853. #; the hotkey used to toggle the messagebox visibility
  1854. #; Format:
  1855. #;
  1856. #; DisplayTheMessageBoxHotKey = [ False, None, None, False, False, False ]
  1857. #; False = enabled
  1858. #; None = key used
  1859. #; None = disabled (will always be disabled. Pressing shift with this hotkey toggles the messagebox height)
  1860. #; False = ctrl required
  1861. #; False = alt required
  1862. #; False = handled
  1863. #;
  1864. #; if you wanted to enable this:
  1865. #; DisplayTheMessageBoxHotKey = [ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
  1866. #;
  1867. #; if you wanted to disable this:
  1868. #; DisplayTheMessageBoxHotKey = [ False, MenuKeyManagerWrapper.Keys.L, None, False, False, False ]
  1869. #;
  1870. DisplayTheMessageBoxHotKey = [ True, MenuKeyManagerWrapper.Keys.L, None, False, False, False ] # change the L to whatever key you want
  1871.  
  1872. #; to toggle the messagebox between minimized and maximized states use the hotkey used to toggle visibility with the shift key
  1873.  
  1874. #[OPTION]
  1875. #CATEGORY=Message box
  1876. #TYPE=6
  1877. #DESCRIPTION=The minimum time compression level when message box is shown and maximized
  1878. #VALUES=MIN|1
  1879. #DEFAULT=32
  1880. #; 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)?
  1881. #; below is in powers of 2 only!
  1882. ShowMessageBoxAndExpandAtTCLevel = 32
  1883.  
  1884. #[OPTION]
  1885. #CATEGORY=Message box
  1886. #TYPE=0
  1887. #DESCRIPTION=Restore message box to previous state when time compression level drops below ShowMessageBoxAndExpandAtTCLevel
  1888. #VALUES=
  1889. #DEFAULT=True
  1890. #; when we drop below the ShowMessageBoxAndExpandAtTCLevel do we restore the messagebox?
  1891. #; change below to either True or False
  1892. RestoreMessageBoxAfterTCLevel = True
  1893.  
  1894. #[OPTION]
  1895. #CATEGORY=Message box
  1896. #TYPE=3
  1897. #DESCRIPTION=Number of messages to keep in the message box. After this number is exceeded, older messages are removed from the list
  1898. #VALUES=MIN|1
  1899. #DEFAULT=20
  1900. #; 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
  1901. #; minimum value is 1
  1902. NumberMessagesToKeepInMessageBox = 20
  1903.  
  1904. #[OPTION]
  1905. #CATEGORY=Message box
  1906. #TYPE=0
  1907. #DESCRIPTION=Message box draggable
  1908. #VALUES=
  1909. #DEFAULT=False
  1910. #; is the messagebox draggable?
  1911. #; change below to either True or False
  1912. MessageBoxIsDraggable = False
  1913.  
  1914. #[OPTION]
  1915. #CATEGORY=Message box
  1916. #TYPE=11
  1917. #DESCRIPTION=The message box messages (defined in \data\Menu\menu.txt) that trigger TCxOnMessageBoxText
  1918. #VALUES=
  1919. #DEFAULT=[ 9200,9201,9202,9203,9204,9205,817,4800,4801,9206,9207,9208,9209,9210,9211,9212,7666,7667 ]
  1920. #; if TCxOnMessageBoxText is enabled then it will trigger on the following numbers from menu.txt:
  1921. #; NOTE: all must be placed on single line with no breaks for options exporter to work correctly!
  1922. TCxOnMessageBoxTextNumbers = [ 9200,9201,9202,9203,9204,9205,817,4800,4801,9206,9207,9208,9209,9210,9211,9212,7666,7667 ]
  1923.  
  1924. #[OPTION]
  1925. #CATEGORY=Message box
  1926. #TYPE=6
  1927. #DESCRIPTION=The time compression level set when TCxOnMessageBoxText triggers
  1928. #VALUES=MIN|1
  1929. #DEFAULT=1
  1930. #; if TCxOnMessageBoxText is enabled and one of the texts from TCxOnMessageBoxTextNumbers is found, what TC level do we go to?
  1931. TCxOnMessageBoxTextDesiredTCLevel = 1
  1932.  
  1933. #[OPTION]
  1934. #CATEGORY=Message box
  1935. #TYPE=0
  1936. #DESCRIPTION=Set time compression level to level defined by TCxOnMessageBoxTextDesiredTCLevel when one of the messages defined in TCxOnMessageBoxTextNumbers is encountered
  1937. #VALUES=
  1938. #DEFAULT=False
  1939. #; do we go to TCx (where x is defined by TCxOnMessageBoxTextDesiredTCLevel) when one of the following messages is posted in the messagebox?
  1940. #; change below to either True or False
  1941. TCxOnMessageBoxText = False
  1942.  
  1943. #[OPTION]
  1944. #CATEGORY=Message box
  1945. #TYPE=0
  1946. #DESCRIPTION=Set time compression level to 1 on any message box text
  1947. #VALUES=
  1948. #DEFAULT=False
  1949. #; do we go to TC1 on any messagebox text?
  1950. #; change below to either True or False
  1951. TC1OnAnyMessageBoxText = False
  1952.  
  1953. #[OPTION]
  1954. #CATEGORY=Message box
  1955. #TYPE=0
  1956. #DESCRIPTION=Message box scrolls (hides when moused out and shows when moused in)
  1957. #VALUES=
  1958. #DEFAULT=False
  1959. #; does the messagebox show when moused in and hide when moused out?
  1960. #; change below to either True or False
  1961. MessageBoxScrolls = False
  1962.  
  1963. #[OPTION]
  1964. #CATEGORY=Message box
  1965. #TYPE=2
  1966. #DESCRIPTION=The time delay before hiding the message box if MessageBoxScrolls is True
  1967. #VALUES=
  1968. #DEFAULT=5.0
  1969. #; if MessageBoxScrolls is enabled, this is the time delay before hiding the messagebox when moused out:
  1970. #; below is in seconds
  1971. MessageBoxHideTD = 5.0
  1972.  
  1973.  
  1974. #;#################################### Ships Journal ##################################################
  1975.  
  1976. #[OPTION]
  1977. #CATEGORY=Ships Journal
  1978. #TYPE=1
  1979. #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)
  1980. #VALUES=
  1981. #DEFAULT="U021"
  1982. #; ship's hull number
  1983. UboatHullNumber = "U021"
  1984.  
  1985. #; 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:
  1986. #; UnitName=x-xxx
  1987. #; make it say the correct uboat hull number
  1988.  
  1989. #[OPTION]
  1990. #CATEGORY=Ships Journal
  1991. #TYPE=1
  1992. #DESCRIPTION=The Uboat's captain name
  1993. #VALUES=
  1994. #DEFAULT="TheDarkWraith"
  1995. #; ship's captain name
  1996. UboatCaptainName = "TheDarkWraith"
  1997.  
  1998. #[OPTION]
  1999. #CATEGORY=Ships Journal
  2000. #TYPE=10
  2001. #DESCRIPTION=Ship's journal/message box mode at game start
  2002. #VALUES=entries saved to ship's journal,entries displayed in ship's journal,entries displayed in messagebox,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  2003. #DEFAULT=0x7
  2004. #; what mode is the ship's journal/messagebox at game start?
  2005. #; this is a bit pattern value where:
  2006. #; bit 0 defines whether entries are saved to ship's journal file
  2007. #; bit 1 defines whether entries are displayed in ship's journal
  2008. #; bit 2 defines whether entries are displayed in messagebox
  2009. #; a value of 0x7 will show entries in messagebox and ship's journal and save entries to ship's journal file
  2010. ShipsJournalLogging = 0x7
  2011.  
  2012. #[OPTION]
  2013. #CATEGORY=Ships Journal
  2014. #TYPE=7
  2015. #DESCRIPTION=Hotkey for toggling ship's journal visibility
  2016. #VALUES=
  2017. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.Q, False, False, False, False ]
  2018. #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
  2019. #; the hotkey used to toggle the ship's journal visibility
  2020. ShipsJournalHotKey = [ True, MenuKeyManagerWrapper.Keys.Q, False, False, False, False ]
  2021.  
  2022.  
  2023. #;#################################### Mini-Map (aka TAI map) (SH3/4/5 modes) ######################################
  2024.  
  2025. #[OPTION]
  2026. #CATEGORY=TAI Options
  2027. #TYPE=0
  2028. #DESCRIPTION=Activate waypoint tool when sub is clicked (Setting to False will totally disable ability to set waypoints)
  2029. #VALUES=
  2030. #DEFAULT=True
  2031. #; change below to either True or False for each
  2032. #;
  2033. #; Activates the waypoint tool for setting waypoints when the sub is clicked. Setting to False will totally disable the user from setting any waypoints
  2034. TAISetCourseWhenSubIsClicked = True
  2035.  
  2036. #[OPTION]
  2037. #CATEGORY=TAI Options
  2038. #TYPE=0
  2039. #DESCRIPTION=Activate waypoint tool when waypoint clicked
  2040. #VALUES=
  2041. #DEFAULT=True
  2042. #; When a waypoint is clicked the waypoint tool will be activated allowing user to select new waypoints
  2043. TAIActivateWaypointToolWhenWaypointClicked = True
  2044.  
  2045. #; appears it doesn't work for when enabled it does nothing!
  2046. TAIKeepPlayerLookingUp = False
  2047.  
  2048. #[OPTION]
  2049. #CATEGORY=TAI Options
  2050. #TYPE=0
  2051. #DESCRIPTION=Show highlighted hydrophone sensor region around contact (medium-orange shading)
  2052. #VALUES=
  2053. #DEFAULT=True
  2054. #; shows the highlighted hydrophone sensor region extending from the contact (medium-orange shading)
  2055. TAIHydrophoneEnabled = True # stock True
  2056.  
  2057. #[OPTION]
  2058. #CATEGORY=TAI Options
  2059. #TYPE=0
  2060. #DESCRIPTION=Show highlighted sonar sensor region around contact (red shading)
  2061. #VALUES=
  2062. #DEFAULT=True
  2063. #; shows the highlighted sonar sensor region extending from the contact (red shading)
  2064. TAISonarEnabled = True # stock True
  2065.  
  2066. #[OPTION]
  2067. #CATEGORY=TAI Options
  2068. #TYPE=0
  2069. #DESCRIPTION=Show highlighted visual sensor region around contact (dark grey/black shading)
  2070. #VALUES=
  2071. #DEFAULT=True
  2072. #; shows the highlighted visual sensor region extending from the contact (dark-grey/black shading)
  2073. TAIVisualEnabled = True # stock True
  2074.  
  2075. #[OPTION]
  2076. #CATEGORY=TAI Options
  2077. #TYPE=0
  2078. #DESCRIPTION=Show highlighted radar sensor region around contact
  2079. #VALUES=
  2080. #DEFAULT=True
  2081. #; ??
  2082. TAIRadarEnabled = True # stock True
  2083.  
  2084. #[OPTION]
  2085. #CATEGORY=TAI Options
  2086. #TYPE=0
  2087. #DESCRIPTION=Show maximum sensor ranges
  2088. #VALUES=
  2089. #DEFAULT=False
  2090. #; ??
  2091. TAIMaximumSensorRangesEnabled = False # stock False
  2092.  
  2093. #[OPTION]
  2094. #CATEGORY=TAI Options
  2095. #TYPE=0
  2096. #DESCRIPTION=Show torpedo solution line
  2097. #VALUES=
  2098. #DEFAULT=True
  2099. #; shows the torpedo solution line
  2100. TAITorpedoSolutionEnabled = True # stock False
  2101.  
  2102. #[OPTION]
  2103. #CATEGORY=TAI Options
  2104. #TYPE=0
  2105. #DESCRIPTION=Map scale enabled
  2106. #VALUES=
  2107. #DEFAULT=False
  2108. #; ??
  2109. TAIMapScaleEnabled = False # stock False
  2110.  
  2111. #[OPTION]
  2112. #CATEGORY=TAI Options
  2113. #TYPE=0
  2114. #DESCRIPTION=Show map coordinates
  2115. #VALUES=
  2116. #DEFAULT=False
  2117. #; latitude and longitude coordinates
  2118. TAIMapCoordinatesEnabled = False # stock False
  2119.  
  2120. #[OPTION]
  2121. #CATEGORY=TAI Options
  2122. #TYPE=0
  2123. #DESCRIPTION=Show highlighted view cone extending out from sub denoting current view/bearing
  2124. #VALUES=
  2125. #DEFAULT=True
  2126. #; highlighted view cone extending out from sub denoting current view bearing
  2127. TAICameraPositionAndOrientationEnabled = True # stock True
  2128.  
  2129. #[OPTION]
  2130. #CATEGORY=TAI Options
  2131. #TYPE=0
  2132. #DESCRIPTION=Show shell impact animated circles
  2133. #VALUES=
  2134. #DEFAULT=False
  2135. #; draws an animated circle where the shell hit
  2136. TAIShellHitEnabled = False # stock False
  2137.  
  2138. #; causes CTD - DO NOT ENABLE!
  2139. TAIKGridEnabled = False # stock False - DO NOT ENABLE AS CAUSES CTD!!
  2140.  
  2141. #[OPTION]
  2142. #CATEGORY=TAI Options
  2143. #TYPE=0
  2144. #DESCRIPTION=Show radar contacts
  2145. #VALUES=
  2146. #DEFAULT=True
  2147. #; ??
  2148. TAIRadarContactsEnabled = True # stock True
  2149.  
  2150. #[OPTION]
  2151. #CATEGORY=TAI Options
  2152. #TYPE=0
  2153. #DESCRIPTION=Show visual contacts
  2154. #VALUES=
  2155. #DEFAULT=True
  2156. #; shows visual contacts in the map
  2157. TAIVisualContactsEnabled = True # stock True
  2158.  
  2159. #[OPTION]
  2160. #CATEGORY=TAI Options
  2161. #TYPE=0
  2162. #DESCRIPTION=Show hydrophone contacts
  2163. #VALUES=
  2164. #DEFAULT=True
  2165. #; shows the hydrophone contact lines to the contacts
  2166. TAIHydrophoneContactsEnabled = True # stock True
  2167.  
  2168. #[OPTION]
  2169. #CATEGORY=TAI Options
  2170. #TYPE=0
  2171. #DESCRIPTION=Show sonar contacts
  2172. #VALUES=
  2173. #DEFAULT=True
  2174. #; ??
  2175. TAISonarContactsEnabled = True # stock True
  2176.  
  2177. #[OPTION]
  2178. #CATEGORY=TAI Options
  2179. #TYPE=0
  2180. #DESCRIPTION=View cones enabled (?)
  2181. #VALUES=
  2182. #DEFAULT=False
  2183. #; ??
  2184. TAIViewConesEnabled = False # stock False
  2185.  
  2186. #[OPTION]
  2187. #CATEGORY=TAI Options
  2188. #TYPE=0
  2189. #DESCRIPTION=Macro objectives enabled (?)
  2190. #VALUES=
  2191. #DEFAULT=False
  2192. #; ??
  2193. TAIMacroObjectivesEnabled = False # stock False
  2194.  
  2195. #[OPTION]
  2196. #CATEGORY=TAI Options
  2197. #TYPE=0
  2198. #DESCRIPTION=Strategic objectives enabled (?)
  2199. #VALUES=
  2200. #DEFAULT=False
  2201. #; ??
  2202. TAIStrategicObjectivesEnabled = False # stock False
  2203.  
  2204. #[OPTION]
  2205. #CATEGORY=TAI Options
  2206. #TYPE=0
  2207. #DESCRIPTION=Strategic units enabled (?)
  2208. #VALUES=
  2209. #DEFAULT=False
  2210. #; Is enabled by page navigation map when it's needed
  2211. TAIStrategicUnitsEnabled = False # stock False
  2212.  
  2213. #[OPTION]
  2214. #CATEGORY=TAI Options
  2215. #TYPE=0
  2216. #DESCRIPTION=Contact info text enabled (?)
  2217. #VALUES=
  2218. #DEFAULT=False
  2219. #; ??
  2220. TAIContactInfoTextEnabled = False # stock False
  2221.  
  2222. #[OPTION]
  2223. #CATEGORY=TAI Options
  2224. #TYPE=0
  2225. #DESCRIPTION=Torpedo solution line round numbers (1, 2, 3) enabled
  2226. #VALUES=
  2227. #DEFAULT=False
  2228. #; the round numbers on the torpedo solution line (1, 2, 3, etc. )
  2229. TAITorpedoImpactPointsEnabled = False # stock True
  2230.  
  2231. #[OPTION]
  2232. #CATEGORY=TAI Options
  2233. #TYPE=0
  2234. #DESCRIPTION=Locations in TAI enabled (?)
  2235. #VALUES=
  2236. #DEFAULT=False
  2237. #; ??
  2238. TAILocationsInTAIEnabled = False # stock False
  2239.  
  2240. #[OPTION]
  2241. #CATEGORY=TAI Options
  2242. #TYPE=0
  2243. #DESCRIPTION=Tactical map enabled
  2244. #VALUES=
  2245. #DEFAULT=True
  2246. #; map mode for TAI is enabled
  2247. TAIIsTacticalMapEnabled = True # stock True
  2248.  
  2249. #[OPTION]
  2250. #CATEGORY=TAI Options
  2251. #TYPE=0
  2252. #DESCRIPTION=Highlight sonar targets enabled (?)
  2253. #VALUES=
  2254. #DEFAULT=False
  2255. #; ??
  2256. TAIHighlightSonarTargetsEnabled = False # stock False
  2257.  
  2258. #[OPTION]
  2259. #CATEGORY=TAI Options
  2260. #TYPE=0
  2261. #DESCRIPTION=Highlight radar targets enabled (?)
  2262. #VALUES=
  2263. #DEFAULT=False
  2264. #; ??
  2265. TAIHighlightRadarTargetsEnabled = False # stock False
  2266.  
  2267. #[OPTION]
  2268. #CATEGORY=TAI Options
  2269. #TYPE=0
  2270. #DESCRIPTION=Highlight visual targets enabled (?)
  2271. #VALUES=
  2272. #DEFAULT=False
  2273. #; ??
  2274. TAIHighlightVisualTargetsEnabled = False # stock False
  2275.  
  2276. #[OPTION]
  2277. #CATEGORY=TAI Options
  2278. #TYPE=0
  2279. #DESCRIPTION=Minefields enabled (?)
  2280. #VALUES=
  2281. #DEFAULT=True
  2282. #; ??
  2283. TAIMinefieldsEnabled = True # stock False
  2284.  
  2285. #[OPTION]
  2286. #CATEGORY=TAI Options
  2287. #TYPE=0
  2288. #DESCRIPTION=Shallow waters enabled (?)
  2289. #VALUES=
  2290. #DEFAULT=True
  2291. #; ??
  2292. TAIShallowWatersEnabled = True # stock False
  2293.  
  2294. #[OPTION]
  2295. #CATEGORY=TAI Options
  2296. #TYPE=0
  2297. #DESCRIPTION=Resupply ship enabled (?)
  2298. #VALUES=
  2299. #DEFAULT=True
  2300. #; ??
  2301. TAIResupplyShipEnabled = True # stock False
  2302.  
  2303. #[OPTION]
  2304. #CATEGORY=TAI Options
  2305. #TYPE=0
  2306. #DESCRIPTION=Contact spotted info available (shows course, speed, datetime stamp, etc.)
  2307. #VALUES=
  2308. #DEFAULT=True
  2309. #;
  2310. #; is the contact spotted info available? (shows course, speed, datetime stamp, etc.)
  2311. TAIContactSpottedEnabled = True
  2312.  
  2313. #[OPTION]
  2314. #CATEGORY=TAI Options
  2315. #TYPE=0
  2316. #DESCRIPTION=Selected contact GUI enabled (?)
  2317. #VALUES=
  2318. #DEFAULT=False
  2319. #;
  2320. #; others
  2321. #; leave TAISelectedContactGUIEnabled as False
  2322. TAISelectedContactGUIEnabled = False # stock False
  2323.  
  2324. #[OPTION]
  2325. #CATEGORY=TAI Options
  2326. #TYPE=0
  2327. #DESCRIPTION=Contact parallel course button enabled
  2328. #VALUES=
  2329. #DEFAULT=True
  2330. TAIParallelCourseButtonEnabled = True # stock False
  2331.  
  2332. #[OPTION]
  2333. #CATEGORY=TAI Options
  2334. #TYPE=0
  2335. #DESCRIPTION=Contact intercept course button enabled
  2336. #VALUES=
  2337. #DEFAULT=True
  2338. TAIInterceptCourseButtonEnabled = True # stock False
  2339.  
  2340. #[OPTION]
  2341. #CATEGORY=TAI Options
  2342. #TYPE=0
  2343. #DESCRIPTION=Depth group highlight bitmap enabled (?)
  2344. #VALUES=
  2345. #DEFAULT=False
  2346. #;
  2347. DepthGroupHighlightBitmapEnabled = False # stock False
  2348.  
  2349. #[OPTION]
  2350. #CATEGORY=TAI Options
  2351. #TYPE=0
  2352. #DESCRIPTION=Throttle highlight bitmap enabled (?)
  2353. #VALUES=
  2354. #DEFAULT=False
  2355. ThrottleHighlightBitmapEnabled = False # stock False
  2356.  
  2357. #[OPTION]
  2358. #CATEGORY=TAI Options
  2359. #TYPE=0
  2360. #DESCRIPTION=Switch to TAI mode when obs, attack, or UZO station actived (if False then will minimize when obs, attack, or UZO station activated)
  2361. #VALUES=
  2362. #DEFAULT=True
  2363. #; should the mini-map switch to TAI mode when the obs, attack, or UZO station is selected?
  2364. #; set to False to have the mini-map switch to minimized mode on obs, attack, or UZO station selected. When set to True
  2365. #; the mini-map will set to TAI mode on those stations selected.
  2366. #; change below to either True or False
  2367. TAIModeOnScopeUZOStationSelected = True
  2368.  
  2369. #; enums for TAIMode on game start (DO NOT CHANGE)
  2370. TAIModeMinimized = 0
  2371. TAIModeTAI = 1
  2372. TAIModeMaximized = 2
  2373.  
  2374. #[OPTION]
  2375. #CATEGORY=TAI Options
  2376. #TYPE=5
  2377. #DESCRIPTION=Mini-map mode at game start
  2378. #VALUES=TAIModeMinimized,TAIModeTAI,TAIModeMaximized
  2379. #DEFAULT=TAIModeTAI
  2380. #; When game starts, what the status of the mini-map? Does user want it minimized, TAI mode, or maximized?
  2381. #; change below to either Minimized, TAI, or Maximized
  2382. TAIModeOnGameStart = TAIModeTAI
  2383.  
  2384. #[OPTION]
  2385. #CATEGORY=TAI Options
  2386. #TYPE=0
  2387. #DESCRIPTION=Mini-map (TAI) enabled at game start
  2388. #VALUES=
  2389. #DEFAULT=True
  2390. #; is the mini-map enabled (visible)? If set to False then the mini-map will not be visible at game start
  2391. #; change below to either True or False
  2392. TAIEnabledInGame = True
  2393.  
  2394. #[OPTION]
  2395. #CATEGORY=TAI Options
  2396. #TYPE=3
  2397. #DESCRIPTION=Mini-map (TAI) initial width (applies to mini-map mode of TAIModeTAI)
  2398. #VALUES=MIN|0
  2399. #DEFAULT=490
  2400. #; the mini-map has 3 states - minimized, TAI, and maximized. What is the TAI initial width and height?
  2401. #; below are in screen pixels (Note: in order for map contacts info to show width must be >= 490 and height must be >= 200)
  2402. TAIInitialWidth = 490
  2403.  
  2404. #[OPTION]
  2405. #CATEGORY=TAI Options
  2406. #TYPE=3
  2407. #DESCRIPTION=Mini-map (TAI) initial height (applies to mini-map mode of TAIModeTAI)
  2408. #VALUES=MIN|0
  2409. #DEFAULT=450
  2410. TAIInitialHeight = 450
  2411.  
  2412.  
  2413. #;#################################### Nav-Map (aka Navigation Map) (SH3/4/5 modes) ######################################
  2414.  
  2415. #[OPTION]
  2416. #CATEGORY=NavMap Options
  2417. #TYPE=0
  2418. #DESCRIPTION=Activate waypoint tool when sub is clicked (Setting to False will totally disable ability to set waypoints)
  2419. #VALUES=
  2420. #DEFAULT=True
  2421. #; change below to either True or False for each
  2422. #;
  2423. #; Activates the waypoint tool for setting waypoints when the sub is clicked. Setting to False will totally disable the user from setting any waypoints
  2424. NavSetCourseWhenSubIsClicked = True
  2425.  
  2426. #[OPTION]
  2427. #CATEGORY=NavMap Options
  2428. #TYPE=0
  2429. #DESCRIPTION=Activate waypoint tool when waypoint clicked
  2430. #VALUES=
  2431. #DEFAULT=True
  2432. #; When a waypoint is clicked the waypoint tool will be activated allowing user to select new waypoints
  2433. NavActivateWaypointToolWhenWaypointClicked = True
  2434.  
  2435. #; appears it doesn't work for when enabled it does nothing!
  2436. NavKeepPlayerLookingUp = False
  2437.  
  2438. #[OPTION]
  2439. #CATEGORY=NavMap Options
  2440. #TYPE=0
  2441. #DESCRIPTION=Show highlighted hydrophone sensor region around contact (medium-orange shading)
  2442. #VALUES=
  2443. #DEFAULT=True
  2444. #; shows the highlighted hydrophone sensor region extending from the contact (medium-orange shading)
  2445. NavHydrophoneEnabled = True # stock True
  2446.  
  2447. #[OPTION]
  2448. #CATEGORY=NavMap Options
  2449. #TYPE=0
  2450. #DESCRIPTION=Show highlighted sonar sensor region around contact (red shading)
  2451. #VALUES=
  2452. #DEFAULT=True
  2453. #; shows the highlighted sonar sensor region extending from the contact (red shading)
  2454. NavSonarEnabled = True # stock True
  2455.  
  2456. #[OPTION]
  2457. #CATEGORY=NavMap Options
  2458. #TYPE=0
  2459. #DESCRIPTION=Show highlighted visual sensor region around contact (dark grey/black shading)
  2460. #VALUES=
  2461. #DEFAULT=True
  2462. #; shows the highlighted visual sensor region extending from the contact (dark-grey/black shading)
  2463. NavVisualEnabled = True # stock True
  2464.  
  2465. #[OPTION]
  2466. #CATEGORY=NavMap Options
  2467. #TYPE=0
  2468. #DESCRIPTION=Show highlighted radar sensor region around contact
  2469. #VALUES=
  2470. #DEFAULT=True
  2471. #; ??
  2472. NavRadarEnabled = True # stock True
  2473.  
  2474. #[OPTION]
  2475. #CATEGORY=NavMap Options
  2476. #TYPE=0
  2477. #DESCRIPTION=Show maximum sensor ranges
  2478. #VALUES=
  2479. #DEFAULT=False
  2480. #; ??
  2481. NavMaximumSensorRangesEnabled = False # stock False
  2482.  
  2483. #[OPTION]
  2484. #CATEGORY=NavMap Options
  2485. #TYPE=0
  2486. #DESCRIPTION=Show torpedo solution line
  2487. #VALUES=
  2488. #DEFAULT=True
  2489. #; shows the torpedo solution line
  2490. NavTorpedoSolutionEnabled = False # stock False
  2491.  
  2492. #[OPTION]
  2493. #CATEGORY=NavMap Options
  2494. #TYPE=0
  2495. #DESCRIPTION=Map scale enabled
  2496. #VALUES=
  2497. #DEFAULT=False
  2498. #; ??
  2499. NavMapScaleEnabled = False # stock False
  2500.  
  2501. #[OPTION]
  2502. #CATEGORY=NavMap Options
  2503. #TYPE=0
  2504. #DESCRIPTION=Show map coordinates
  2505. #VALUES=
  2506. #DEFAULT=True
  2507. #; latitude and longitude coordinates
  2508. NavMapCoordinatesEnabled = True # stock True
  2509.  
  2510. #[OPTION]
  2511. #CATEGORY=NavMap Options
  2512. #TYPE=0
  2513. #DESCRIPTION=Show highlighted view cone extending out from sub denoting current view/bearing
  2514. #VALUES=
  2515. #DEFAULT=False
  2516. #; highlighted view cone extending out from sub denoting current view bearing
  2517. NavCameraPositionAndOrientationEnabled = False # stock False
  2518.  
  2519. #[OPTION]
  2520. #CATEGORY=NavMap Options
  2521. #TYPE=0
  2522. #DESCRIPTION=Show shell impact animated circles
  2523. #VALUES=
  2524. #DEFAULT=False
  2525. #; draws an animated circle where the shell hit
  2526. NavShellHitEnabled = False # stock False
  2527.  
  2528. #; causes CTD - DO NOT ENABLE!
  2529. NavKGridEnabled = False # stock False - DO NOT ENABLE AS CAUSES CTD!!
  2530.  
  2531. #[OPTION]
  2532. #CATEGORY=NavMap Options
  2533. #TYPE=0
  2534. #DESCRIPTION=Show radar contacts
  2535. #VALUES=
  2536. #DEFAULT=True
  2537. #; ??
  2538. NavRadarContactsEnabled = True # stock True
  2539.  
  2540. #[OPTION]
  2541. #CATEGORY=NavMap Options
  2542. #TYPE=0
  2543. #DESCRIPTION=Show visual contacts
  2544. #VALUES=
  2545. #DEFAULT=True
  2546. #; shows visual contacts in the map
  2547. NavVisualContactsEnabled = True # stock True
  2548.  
  2549. #[OPTION]
  2550. #CATEGORY=NavMap Options
  2551. #TYPE=0
  2552. #DESCRIPTION=Show hydrophone contacts
  2553. #VALUES=
  2554. #DEFAULT=True
  2555. #; shows the hydrophone contact lines to the contacts
  2556. NavHydrophoneContactsEnabled = True # stock True
  2557.  
  2558. #[OPTION]
  2559. #CATEGORY=NavMap Options
  2560. #TYPE=0
  2561. #DESCRIPTION=Show sonar contacts
  2562. #VALUES=
  2563. #DEFAULT=True
  2564. #; ??
  2565. NavSonarContactsEnabled = True # stock True
  2566.  
  2567. #[OPTION]
  2568. #CATEGORY=NavMap Options
  2569. #TYPE=0
  2570. #DESCRIPTION=View cones enabled (?)
  2571. #VALUES=
  2572. #DEFAULT=False
  2573. #; ??
  2574. NavViewConesEnabled = False # stock False
  2575.  
  2576. #[OPTION]
  2577. #CATEGORY=NavMap Options
  2578. #TYPE=0
  2579. #DESCRIPTION=Macro objectives enabled (?)
  2580. #VALUES=
  2581. #DEFAULT=False
  2582. #; ??
  2583. NavMacroObjectivesEnabled = False # stock False
  2584.  
  2585. #[OPTION]
  2586. #CATEGORY=NavMap Options
  2587. #TYPE=0
  2588. #DESCRIPTION=Strategic objectives enabled (?)
  2589. #VALUES=
  2590. #DEFAULT=False
  2591. #; ??
  2592. NavStrategicObjectivesEnabled = False # stock False
  2593.  
  2594. #[OPTION]
  2595. #CATEGORY=NavMap Options
  2596. #TYPE=0
  2597. #DESCRIPTION=Strategic units enabled (?)
  2598. #VALUES=
  2599. #DEFAULT=False
  2600. #; Is enabled by page navigation map when it's needed
  2601. NavStrategicUnitsEnabled = False # stock False
  2602.  
  2603. #[OPTION]
  2604. #CATEGORY=NavMap Options
  2605. #TYPE=0
  2606. #DESCRIPTION=Contact info text enabled (?)
  2607. #VALUES=
  2608. #DEFAULT=False
  2609. #; ??
  2610. NavContactInfoTextEnabled = False # stock False
  2611.  
  2612. #[OPTION]
  2613. #CATEGORY=NavMap Options
  2614. #TYPE=0
  2615. #DESCRIPTION=Torpedo solution line round numbers (1, 2, 3) enabled
  2616. #VALUES=
  2617. #DEFAULT=False
  2618. #; the round numbers on the torpedo solution line (1, 2, 3, etc. )
  2619. NavTorpedoImpactPointsEnabled = False # stock True
  2620.  
  2621. #[OPTION]
  2622. #CATEGORY=NavMap Options
  2623. #TYPE=0
  2624. #DESCRIPTION=Locations in NavMap enabled (?)
  2625. #VALUES=
  2626. #DEFAULT=True
  2627. #; ??
  2628. NavLocationsInTAIEnabled = True # stock True
  2629.  
  2630. #[OPTION]
  2631. #CATEGORY=NavMap Options
  2632. #TYPE=0
  2633. #DESCRIPTION=Tactical map enabled
  2634. #VALUES=
  2635. #DEFAULT=False
  2636. #; tactical map mode enabled
  2637. NavIsTacticalMapEnabled = False # stock False
  2638.  
  2639. #[OPTION]
  2640. #CATEGORY=NavMap Options
  2641. #TYPE=0
  2642. #DESCRIPTION=Highlight sonar targets enabled (?)
  2643. #VALUES=
  2644. #DEFAULT=False
  2645. #; ??
  2646. NavHighlightSonarTargetsEnabled = False # stock False
  2647.  
  2648. #[OPTION]
  2649. #CATEGORY=NavMap Options
  2650. #TYPE=0
  2651. #DESCRIPTION=Highlight radar targets enabled (?)
  2652. #VALUES=
  2653. #DEFAULT=False
  2654. #; ??
  2655. NavHighlightRadarTargetsEnabled = False # stock False
  2656.  
  2657. #[OPTION]
  2658. #CATEGORY=NavMap Options
  2659. #TYPE=0
  2660. #DESCRIPTION=Highlight visual targets enabled (?)
  2661. #VALUES=
  2662. #DEFAULT=False
  2663. #; ??
  2664. NavHighlightVisualTargetsEnabled = False # stock False
  2665.  
  2666. #[OPTION]
  2667. #CATEGORY=NavMap Options
  2668. #TYPE=0
  2669. #DESCRIPTION=Minefields enabled (?)
  2670. #VALUES=
  2671. #DEFAULT=True
  2672. #; ??
  2673. NavMinefieldsEnabled = True # stock False
  2674.  
  2675. #[OPTION]
  2676. #CATEGORY=NavMap Options
  2677. #TYPE=0
  2678. #DESCRIPTION=Shallow waters enabled (?)
  2679. #VALUES=
  2680. #DEFAULT=True
  2681. #; ??
  2682. NavShallowWatersEnabled = True # stock False
  2683.  
  2684. #[OPTION]
  2685. #CATEGORY=NavMap Options
  2686. #TYPE=0
  2687. #DESCRIPTION=Resupply ship enabled (?)
  2688. #VALUES=
  2689. #DEFAULT=True
  2690. #; ??
  2691. NavResupplyShipEnabled = True # stock False
  2692.  
  2693. #[OPTION]
  2694. #CATEGORY=NavMap Options
  2695. #TYPE=0
  2696. #DESCRIPTION=Contact spotted info available (shows course, speed, datetime stamp, etc.)
  2697. #VALUES=
  2698. #DEFAULT=True
  2699. #;
  2700. #; is the contact spotted info available? (shows course, speed, datetime stamp, etc.)
  2701. NavContactSpottedEnabled = True
  2702.  
  2703. #[OPTION]
  2704. #CATEGORY=NavMap Options
  2705. #TYPE=0
  2706. #DESCRIPTION=Selected contact GUI enabled (?)
  2707. #VALUES=
  2708. #DEFAULT=False
  2709. #;
  2710. #; others
  2711. #; leave NavSelectedContactGUIEnabled as False
  2712. NavSelectedContactGUIEnabled = False # stock False
  2713.  
  2714. #[OPTION]
  2715. #CATEGORY=NavMap Options
  2716. #TYPE=0
  2717. #DESCRIPTION=Contact parallel course button enabled
  2718. #VALUES=
  2719. #DEFAULT=False
  2720. NavParallelCourseButtonEnabled = False # stock False
  2721.  
  2722. #[OPTION]
  2723. #CATEGORY=NavMap Options
  2724. #TYPE=0
  2725. #DESCRIPTION=Contact intercept course button enabled
  2726. #VALUES=
  2727. #DEFAULT=False
  2728. NavInterceptCourseButtonEnabled = False # stock False
  2729.  
  2730. #[OPTION]
  2731. #CATEGORY=NavMap Options
  2732. #TYPE=0
  2733. #DESCRIPTION=Display navigation fixes
  2734. #VALUES=
  2735. #DEFAULT=True
  2736. NavDisplayNavFixes = True
  2737.  
  2738. #[OPTION]
  2739. #CATEGORY=NavMap Options
  2740. #TYPE=0
  2741. #DESCRIPTION=Display supermarks
  2742. #VALUES=
  2743. #DEFAULT=True
  2744. NavDisplaySuperMarks = True
  2745.  
  2746. #[OPTION]
  2747. #CATEGORY=NavMap Options
  2748. #TYPE=0
  2749. #DESCRIPTION=Display destroyed marks
  2750. #VALUES=
  2751. #DEFAULT=True
  2752. NavDisplayDestroyedMarks = True
  2753.  
  2754.  
  2755. #;#################################### Player Guidance (SH3/4/5 modes) ####################################
  2756.  
  2757. #[OPTION]
  2758. #CATEGORY=Player guidance
  2759. #TYPE=0
  2760. #DESCRIPTION=Player guidance events enabled
  2761. #VALUES=
  2762. #DEFAULT=False
  2763. #; are player guidance events enabled? (are they shown)
  2764. #; change below to either True or False
  2765. PlayerGuidanceEnabled = False
  2766.  
  2767.  
  2768. #;#################################### Player Objectives (SH3/4/5 modes) ###################################
  2769.  
  2770. #[OPTION]
  2771. #CATEGORY=Player objectives
  2772. #TYPE=0
  2773. #DESCRIPTION=Player objective events enabled
  2774. #VALUES=
  2775. #DEFAULT=False
  2776. #; are player objective events enabled? (are they shown)
  2777. #; change below to either True or False
  2778. PlayerObjectivesEnabled = False
  2779.  
  2780. #[OPTION]
  2781. #CATEGORY=Player objectives
  2782. #TYPE=0
  2783. #DESCRIPTION=Player objectives enabled at game start during a tutorial mission (overrides PlayerObjectivesEnabled at game start)
  2784. #VALUES=
  2785. #DEFAULT=True
  2786. #; if the mission is a tutorial, are Player Objectives enabled at game start? (overrides PlayerObjectivesEnabled at game start)
  2787. #; change below to either True or False
  2788. IfTutPlayerObjsEnabledAtGameStart=False
  2789.  
  2790.  
  2791. #;#################################### XO TDC Dialog box (SH3/4/5 modes) ###################################
  2792.  
  2793. #[OPTION]
  2794. #CATEGORY=XO TDC
  2795. #TYPE=0
  2796. #DESCRIPTION=XO TDC dialog box visible at UZO, attack, and observation scope stations
  2797. #VALUES=
  2798. #DEFAULT=True
  2799. #; is the XO and his dialog box visible on the UZO, attack, and obs scopes views?
  2800. #; change below to either True or False
  2801. XOTDCDialogEnabled = True
  2802.  
  2803. #[OPTION]
  2804. #CATEGORY=XO TDC
  2805. #TYPE=0
  2806. #DESCRIPTION=XO TDC dialog box allowed to pop up when you lock onto a target when disabled
  2807. #VALUES=
  2808. #DEFAULT=True
  2809. #; if the XO and his dialog box are disabled, are they allowed to pop up when you lock onto a target?
  2810. #; change below to either True or False
  2811. XOTDCDialogAllowedToPop = True
  2812.  
  2813. #[OPTION]
  2814. #CATEGORY=XO TDC
  2815. #TYPE=0
  2816. #DESCRIPTION=XO TDC dialog box draggable (if True then feature of XO TDC dialog box dynamically repositioning based on messagebox visibility is disabled)
  2817. #VALUES=
  2818. #DEFAULT=False
  2819. #; Is the XO TDC dialog box draggable?
  2820. #; If the XO TDC dialog box is draggable then the feature of the XO TDC dialog box dynamically repositioning
  2821. #; based on messagebox visibility is disabled.
  2822. #; change below to either True or False
  2823. XOTDCDialogDraggable = False
  2824.  
  2825. #[OPTION]
  2826. #CATEGORY=XO TDC
  2827. #TYPE=0
  2828. #DESCRIPTION=Manual targeting enforced (if True then the option to 'Turn TDC Off' is disabled and not visible)
  2829. #VALUES=
  2830. #DEFAULT=False
  2831. #; is manual targeting enforced? If True then the option to 'Turn TDC Off' is disabled and not visible
  2832. #; change below to either True or False
  2833. XOTDCManualTargetingEnforced = False
  2834.  
  2835.  
  2836. #;#################################### Item Notes ##########################################################
  2837.  
  2838. #[OPTION]
  2839. #CATEGORY=Item notes
  2840. #TYPE=0
  2841. #DESCRIPTION=Item notes enabled (item notes are the text that displays above the message box when you mouse over certain items)
  2842. #VALUES=
  2843. #DEFAULT=False
  2844. #; this enables or disables the item notes from showing. The item notes is the text that displays above
  2845. #; the message box when you mouse over certain items
  2846. #;
  2847. #; change below to either True or False
  2848. ShowItemNotes = False
  2849.  
  2850.  
  2851. #;################################## Officers and Orders Bars and Order Categories (SH3/5 modes) ##################################
  2852.  
  2853. #[OPTION]
  2854. #CATEGORY=Officers
  2855. #TYPE=0
  2856. #DESCRIPTION=Officers enabled (render the officer icons thus enabling orders to be given through clicking of order categories/orders)
  2857. #VALUES=
  2858. #DEFAULT=True
  2859. #; are the officers enabled (are the officer icons allowed to be rendered)?
  2860. #; change below to either True or False
  2861. RenderOfficerIcons = True
  2862.  
  2863. #[OPTION]
  2864. #CATEGORY=Officers
  2865. #TYPE=10
  2866. #DESCRIPTION=Officers to show in the officer's bar (if enabled)
  2867. #VALUES=Chief Engineer,Navigator,Weapons,Sonarman,Radioman,Watch Officer,,,,,,,,,,,,,,,,,,,,,,,,,,
  2868. #DEFAULT=0x3F
  2869. #; which officers are shown?
  2870. #; 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
  2871. #; bit 0 = chief engineer
  2872. #; bit 1 = navigation
  2873. #; bit 2 = weapons
  2874. #; bit 3 = sonar
  2875. #; bit 4 = radio
  2876. #; bit 5 = watch officer
  2877. #;
  2878. #; value of 0x3F will display all officers
  2879. OfficersToRender = 0x3F
  2880.  
  2881. #[OPTION]
  2882. #CATEGORY=Officers
  2883. #TYPE=0
  2884. #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)
  2885. #VALUES=
  2886. #DEFAULT=True
  2887. #; 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)
  2888. #; change below to either True or False
  2889. OfficersPinnedToBottomOfScreen = True
  2890.  
  2891. #[OPTION]
  2892. #CATEGORY=Officers
  2893. #TYPE=0
  2894. #DESCRIPTION=Hide officer's order bar when order clicked
  2895. #VALUES=
  2896. #DEFAULT=False
  2897. #; set to True to have order bar hide itself when order selected
  2898. #; change below to either True or False
  2899. HideOrderBarOnOrderClicked = False
  2900.  
  2901. #[OPTION]
  2902. #CATEGORY=Officers
  2903. #TYPE=0
  2904. #DESCRIPTION=Hide officer's order bar on key press
  2905. #VALUES=
  2906. #DEFAULT=False
  2907. #; when user presses a key, does the order bar hide itself or stay visible?
  2908. #; set to True to have order bar hide itself when key is pressed
  2909. #; change below to either True or False
  2910. HideOrderBarOnKeyPress = False
  2911.  
  2912. #[OPTION]
  2913. #CATEGORY=Officers
  2914. #TYPE=0
  2915. #DESCRIPTION=officer's order categories scroll out of view on mouse out and into view on mouse in
  2916. #VALUES=
  2917. #DEFAULT=False
  2918. #; do the order categories scroll down when moused out and scroll up when moused in?
  2919. #; set to True to have the order categories scroll
  2920. #; change below to either True or False
  2921. OrderCategoriesScroll = False
  2922.  
  2923. #[OPTION]
  2924. #CATEGORY=Officers
  2925. #TYPE=0
  2926. #DESCRIPTION=officer's scroll out of view on mouse out and into view on mouse in
  2927. #VALUES=
  2928. #DEFAULT=False
  2929. #; do the officers scroll down when moused out and scroll up when moused in?
  2930. #; change below to either True or False
  2931. OfficersScroll = False
  2932.  
  2933. #[OPTION]
  2934. #CATEGORY=Officers
  2935. #TYPE=2
  2936. #DESCRIPTION=The time delay before officer's scroll out of view on mouse out when OfficersScroll is True
  2937. #VALUES=MIN|0.0
  2938. #DEFAULT=5.0
  2939. #; if OfficersScroll is enabled, this is the time delay before hiding the officers when moused out:
  2940. #; below is in seconds
  2941. OfficersHideTD = 5.0
  2942.  
  2943. #; allow debug popups for debugging wounded officers not changing their icons to wounded
  2944. #; If you enable the debugging of this you need to ensure that your \My Documents\SH5\data\cfg\main.cfg file is setup correctly:
  2945. #; find this section and ensure that it's setup this way:
  2946. #;
  2947. #; [DEVELOPING]
  2948. #; Modding=Yes
  2949. #; MenuEditor=Yes
  2950. #; DebugScripts=Yes
  2951. #;
  2952. #; change below to either True or False
  2953. WoundedOfficersDebugging = False
  2954.  
  2955. #[OPTION]
  2956. #CATEGORY=Officers
  2957. #TYPE=0
  2958. #DESCRIPTION=Navigator's order 'Report fix (lat and long)' displays the lat and long as degrees
  2959. #VALUES=
  2960. #DEFAULT=True
  2961. #; does the Navigator's order 'Report fix (lat and long)' display the lat and long as degrees?
  2962. #; change below to either True or False
  2963. NavReportFixAsDegrees = True
  2964.  
  2965.  
  2966. #;##################################### Teleporting ##############################################
  2967.  
  2968. #[OPTION]
  2969. #CATEGORY=Teleporting
  2970. #TYPE=7
  2971. #DESCRIPTION=Hotkey for teleporting to observation periscope station
  2972. #VALUES=
  2973. #DEFAULT=[ False, None, False, False, False, False ]
  2974. #; the hotkeys assigned to the teleport commands
  2975. #;
  2976. #; Format:
  2977. #;
  2978. #; TeleportToObsScope = [ False, None, False, False, False, False ]
  2979. #; False = enabled
  2980. #; None = key used
  2981. #; False = shift key required
  2982. #; False = ctrl required
  2983. #; False = alt required
  2984. #; False = handled
  2985. #;
  2986. #; so if you wanted the teleport to obs scope hot key to be shift + T:
  2987. #; TeleportToObsScope = [ True, MenuKeyManagerWrapper.Keys.T, True, False, False, False ]
  2988. #;
  2989. #; if you didn't want to assign a hotkey for teleport to obs scope:
  2990. #; TeleportToObsScope = [ False, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
  2991. #;
  2992. TeleportToObsScope = [ False, None, False, False, False, False ]
  2993.  
  2994. #[OPTION]
  2995. #CATEGORY=Teleporting
  2996. #TYPE=7
  2997. #DESCRIPTION=Hotkey for teleporting to attack periscope station
  2998. #VALUES=
  2999. #DEFAULT=[ False, None, False, False, False, False ]
  3000. TeleportToAttackScope = [ False, None, False, False, False, False ]
  3001.  
  3002. #[OPTION]
  3003. #CATEGORY=Teleporting
  3004. #TYPE=7
  3005. #DESCRIPTION=Hotkey for teleporting to UZO station
  3006. #VALUES=
  3007. #DEFAULT=[ False, None, False, False, False, False ]
  3008. TeleportToUZO = [ False, None, False, False, False, False ]
  3009.  
  3010. #[OPTION]
  3011. #CATEGORY=Teleporting
  3012. #TYPE=7
  3013. #DESCRIPTION=Hotkey for teleporting to radar station
  3014. #VALUES=
  3015. #DEFAULT=[ False, None, False, False, False, False ]
  3016. TeleportToRadar = [ False, None, False, False, False, False ]
  3017.  
  3018. #[OPTION]
  3019. #CATEGORY=Teleporting
  3020. #TYPE=7
  3021. #DESCRIPTION=Hotkey for teleporting to hydrophone station
  3022. #VALUES=
  3023. #DEFAULT=[ False, None, False, False, False, False ]
  3024. TeleportToHydrophone = [ False, None, False, False, False, False ]
  3025.  
  3026. #[OPTION]
  3027. #CATEGORY=Teleporting
  3028. #TYPE=7
  3029. #DESCRIPTION=Hotkey for teleporting to deckgun station
  3030. #VALUES=
  3031. #DEFAULT=[ False, None, False, False, False, False ]
  3032. TeleportToDeckGun = [ False, None, False, False, False, False ]
  3033.  
  3034. #[OPTION]
  3035. #CATEGORY=Teleporting
  3036. #TYPE=7
  3037. #DESCRIPTION=Hotkey for teleporting to flakgun station
  3038. #VALUES=
  3039. #DEFAULT=[ False, None, False, False, False, False ]
  3040. TeleportToFlakGun = [ False, None, False, False, False, False ]
  3041.  
  3042. #[OPTION]
  3043. #CATEGORY=Teleporting
  3044. #TYPE=7
  3045. #DESCRIPTION=Hotkey for toggling the visibility of the teleporting bar
  3046. #VALUES=
  3047. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
  3048. #; the hotkey used to bring up the Teleporting order bar
  3049. #; Format:
  3050. #;
  3051. #; DisplayTeleportingOrderBarKey = [ False, None, False, False, False, False ]
  3052. #; False = enabled
  3053. #; None = key used
  3054. #; False = shift key required
  3055. #; False = ctrl required
  3056. #; False = alt required
  3057. #; False = handled
  3058. #;
  3059. #; so if you wanted the teleport to obs scope hot key to be shift + T:
  3060. #; DisplayTeleportingOrderBarKey = [ True, MenuKeyManagerWrapper.Keys.T, True, False, False, False ]
  3061. #;
  3062. #; if you didn't want to assign a hotkey for teleport to obs scope:
  3063. #; DisplayTeleportingOrderBarKey = [ False, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
  3064. #;
  3065. DisplayTeleportingOrderBarKey = [ True, MenuKeyManagerWrapper.Keys.T, False, False, False, False ]
  3066.  
  3067. #[OPTION]
  3068. #CATEGORY=Teleporting
  3069. #TYPE=0
  3070. #DESCRIPTION=If teleported to observation or attack scope station and you leave the station teleport back to bridge
  3071. #VALUES=
  3072. #DEFAULT=True
  3073. #; if teleported to obs or attack scope and you leave the station, do you teleport back to bridge?
  3074. #; change below to either True or False
  3075. ObsAndAttackReturnToBridge = True
  3076.  
  3077. #[OPTION]
  3078. #CATEGORY=Teleporting
  3079. #TYPE=0
  3080. #DESCRIPTION=Pressing the attack scope's fully lower periscope button causes player to leave station and return to bridge
  3081. #VALUES=
  3082. #DEFAULT=False
  3083. #; attack scope's fully lower button causes you to leave station and return to bridge?
  3084. #; change below to either True or False
  3085. AttackFullyLowerButtonLeavesStationForBridge = False
  3086.  
  3087. #[OPTION]
  3088. #CATEGORY=Teleporting
  3089. #TYPE=5
  3090. #DESCRIPTION=Station to teleport to when Dive icon is pressed
  3091. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  3092. #DEFAULT=None
  3093. #; teleporting on the depth buttons
  3094. #; possible values are:
  3095. #; "TelToObsScope" - teleport to obs scope
  3096. #; "TelToAttackScope" - teleport to attack scope
  3097. #; "TelToRadar" - telelport to radar station
  3098. #; "TelToHydrophone" - teleport to hydrophone station
  3099. #; "TelToCaptainsBed" - teleport to Captain's bed
  3100. #; None - do not teleport anywhere
  3101. #;
  3102. #; the dive button
  3103. DiveTeleportToStation = None
  3104.  
  3105. #[OPTION]
  3106. #CATEGORY=Teleporting
  3107. #TYPE=5
  3108. #DESCRIPTION=Station to teleport to when Periscope depth icon is pressed
  3109. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  3110. #DEFAULT=None
  3111. #; the periscope depth button
  3112. PeriscopeDepthTeleportToStation = None
  3113.  
  3114. #[OPTION]
  3115. #CATEGORY=Teleporting
  3116. #TYPE=5
  3117. #DESCRIPTION=Station to teleport to when Snorkel depth icon is pressed
  3118. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  3119. #DEFAULT=None
  3120. #; snorkel depth button
  3121. SnorkelDepthTeleportToStation = None
  3122.  
  3123. #[OPTION]
  3124. #CATEGORY=Teleporting
  3125. #TYPE=5
  3126. #DESCRIPTION=Station to teleport to when Emergency surface icon is pressed
  3127. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  3128. #DEFAULT=None
  3129. #; emergency surface button
  3130. EmergencySurfaceTeleportToStation = None
  3131.  
  3132. #[OPTION]
  3133. #CATEGORY=Teleporting
  3134. #TYPE=5
  3135. #DESCRIPTION=Station to teleport to when Surface icon is pressed
  3136. #VALUES="TelToObsScope","TelToAttackScope","TelToRadar","TelToHydrophone","TelToCaptainsBed",None
  3137. #DEFAULT=None
  3138. #; the surface button
  3139. SurfaceDepthTeleportToStation = None
  3140.  
  3141.  
  3142. #;####################################### Contact Spotted ########################################
  3143.  
  3144. MMDDYYTimeFormat = 0
  3145. DDMMYYTimeFormat = 1
  3146. MMDDYYMilitaryTimeFormat = 2
  3147. DDMMYYMilitaryTimeFormat = 3
  3148.  
  3149. #[OPTION]
  3150. #CATEGORY=Contact spotted
  3151. #TYPE=5
  3152. #DESCRIPTION=Format to display the game's date and time
  3153. #VALUES=MMDDYYTimeFormat,DDMMYYTimeFormat,MMDDYYMilitaryTimeFormat,DDMMYYMilitaryTimeFormat
  3154. #DEFAULT=MMDDYYMilitaryTimeFormat
  3155. #; enum of the available date time formats
  3156. #;
  3157. ContactDateTimeStampFormat = MMDDYYMilitaryTimeFormat
  3158.  
  3159.  
  3160. #;######################################## Charts ################################################
  3161.  
  3162. #[OPTION]
  3163. #CATEGORY=Charts
  3164. #TYPE=7
  3165. #DESCRIPTION=Hotkey for toggling the visibility of the charts (and SOAN)
  3166. #VALUES=
  3167. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.E, False, False, False, False ]
  3168. #; hotkey format is [ enabled, key, shift required, control required, alt required, handled ]
  3169. #; the hotkey used to toggle the charts (and thus SOAN) visibility
  3170. ChartsHotKey = [ True, MenuKeyManagerWrapper.Keys.E, False, False, False, False ]
  3171.  
  3172. #[OPTION]
  3173. #CATEGORY=Charts
  3174. #TYPE=0
  3175. #DESCRIPTION=Does user chart's category section start expanded?
  3176. #VALUES=
  3177. #DEFAULT=False
  3178. UserChartsCategoriesStartExpanded = False
  3179.  
  3180. #[OPTION]
  3181. #CATEGORY=Charts
  3182. #TYPE=0
  3183. #DESCRIPTION=Does user chart's charts section start expanded?
  3184. #VALUES=
  3185. #DEFAULT=False
  3186. UserChartsChartsStartExpanded = False
  3187.  
  3188. #;#################################### others MODs ###############################################
  3189.  
  3190. #[OPTION]
  3191. #CATEGORY=emtguf
  3192. #TYPE=0
  3193. #DESCRIPTION=emtguf's periscope rework enabled (adds support for his mod)
  3194. #VALUES=
  3195. #DEFAULT=False
  3196. #; emtguf's periscope rework enabled (adds support for his mod)
  3197. #; change below to either True or False
  3198. emtgufPeriscopeReworkEnabled = False
  3199.  
  3200.  
  3201. #[OPTION]
  3202. #CATEGORY=Chalkboard
  3203. #TYPE=7
  3204. #DESCRIPTION=Hotkey for toggling the visibility of otto's chalkboard
  3205. #VALUES=
  3206. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
  3207. #;+-------------------------------------- ottos chalkboard --------------------------------------
  3208. #; the hotkey used to bring up ottos chalkboard
  3209. #; Format:
  3210. #;
  3211. #; ShowChalkBoardHotKey = [ False, None, False, False, False, False ]
  3212. #; False = enabled
  3213. #; None = key used
  3214. #; False = shift key required
  3215. #; False = ctrl required
  3216. #; False = alt required
  3217. #; False = handled
  3218. #;
  3219. #; so if you wanted to show the chalkboard and hot key to be shift + B:
  3220. #; ShowChalkBoardHotKey = [ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
  3221. #;
  3222. #; if you didn't want to assign a hotkey for ottos chalkboard:
  3223. #; ShowChalkBoardHotKey = [ False, MenuKeyManagerWrapper.Keys.B, False, False, False, False ]
  3224. #;
  3225. ShowChalkBoardHotKey = [ True, MenuKeyManagerWrapper.Keys.B, True, False, False, False ]
  3226.  
  3227. #[OPTION]
  3228. #CATEGORY=Chalkboard
  3229. #TYPE=7
  3230. #DESCRIPTION=Hotkey for increasing chalkboard count in otto's chalkboard mod
  3231. #VALUES=
  3232. #DEFAULT=[ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
  3233. #; the hotkey used to increase the chalkboard count
  3234. #; Format:
  3235. #;
  3236. #; IncreaseChalkBoardCountHotKey = [ False, None, False, False, False, False ]
  3237. #; False = enabled
  3238. #; None = key used
  3239. #; False = shift key required
  3240. #; False = ctrl required
  3241. #; False = alt required
  3242. #; False = handled
  3243. #;
  3244. #; so if you wanted the increase chalkboard count hot key to be shift + I:
  3245. #; IncreaseChalkBoardCountHotKey = [ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
  3246. #;
  3247. #; if you didn't want to assign a hotkey for ottos chalkboard:
  3248. #; IncreaseChalkBoardCountHotKey = [ False, MenuKeyManagerWrapper.Keys.I, False, False, False, False ]
  3249. #;
  3250. IncreaseChalkBoardCountHotKey = [ True, MenuKeyManagerWrapper.Keys.I, True, False, False, False ]
  3251.  
  3252. #[OPTION]
  3253. #CATEGORY=Chalkboard
  3254. #TYPE=4
  3255. #DESCRIPTION=Message to display on the chalkboard
  3256. #VALUES=COUNT|3
  3257. #DEFAULT=[ "Hier ist ein U-Boat Cocktail!!", "ChalkBoard Tally", "edit your favorite" ]
  3258. #; the message displayed on the chalkboard
  3259. #; you have to use all 3 messages or you will get error!
  3260. #; if you want one line to not have a message then use ""
  3261. #; NOTE: all must be placed on single line with no breaks for options exporter to work correctly!
  3262. OttosChalkBoardMessage = [ "Hier ist ein U-Boat Cocktail!!", "ChalkBoard Tally", "edit your favorite" ]
  3263.  
  3264.  
  3265. #;####################################### Debugging ####################################
  3266. #; for Debugging use only! Do not use!
  3267. #;
  3268. DisplaySapiensKey = MenuKeyManagerWrapper.Keys.Key3
  3269. DisplayKeyPressedKey = MenuKeyManagerWrapper.Keys.Key4
  3270. DisplayKeyReleasedKey = MenuKeyManagerWrapper.Keys.Key5
  3271. DisplayCurrentStationsKey = MenuKeyManagerWrapper.Keys.Key6
  3272. DisplayActiveStationKey = MenuKeyManagerWrapper.Keys.Key7
  3273. DisplayActiveCameraKey = MenuKeyManagerWrapper.Keys.Key8
  3274. ToggleDisplaySubmarineCommandsKey = MenuKeyManagerWrapper.Keys.Key9
  3275. ToggleDisplaySubmarineDelayedCommandsKey = MenuKeyManagerWrapper.Keys.Key0
  3276. DisplayMouseData = MenuKeyManagerWrapper.Keys.Key2
  3277.  
  3278.  
  3279. #;######################################################################################
  3280.  
  3281. #END USER OPTIONS
  3282.  
  3283. #; DO NOT CHANGE ANYTHING BELOW!!
  3284.  
  3285. #;####################################### Accessors ############################################
  3286. SnorkelEnabled = True
  3287. tdwsound = None
  3288. tdwmouse = None
  3289. tdwsoan = None
  3290. CrashDepth = 150
  3291. DamageControlTeamActive = False
  3292. SinglePlayerMode = False
  3293. BitmapIndex_NotAvailable = 0
  3294. BitmapIndex_NotSelected = 1
  3295. BitmapIndex_Selected = 2
  3296. BitmapIndex_MouseOver = 3
  3297. FollowSelectedTargetWithCamera = False
  3298. AttackPeriscopeLevelSH5Handle = None
  3299. ObsPeriscopeLevelSH5Handle = None
  3300. AllowedToSelectTarget = False
  3301. AllowedToPhotographTarget = False
  3302. SilentRunning = False
  3303. SnorkelRaised = False
  3304. BattlestationsActivated = False
  3305. SubIsUnderwater = False
  3306. ShowNavMapTDC = False
  3307. ShipsJournal = []
  3308. RadioMessages = None
  3309. IgnoreNewLogMessages = True
  3310. GameStartDate = None
  3311. SH5InstallPath = None
  3312. UserOptionsFilePathname = "data\\Scripts\\Menu\\TheDarkWraithUserOptions.py"
  3313. ShipsJournalPath = "Logs\\"
  3314. ShipsJournalFile = None
  3315. ShipsJournalChanged = False
  3316. TutorialsPath = "data\\Tutorials"
  3317. TutorialToStart = None
  3318. TutorialMissionName = None
  3319. AutomationPath = "data\\Automation"
  3320. MagicString = "TheDarkWraithSH5_new7"
  3321. SelectedTorpTubes = [ 0 ]
  3322. TorpDoorsStatus = [ False, False, False, False, False, False ]
  3323. TorpDoorsEnabled = [ True, True, True, True, True, True ]
  3324. SH5EHeadingRudderDialVisible = False
  3325. CurrentlySelectedTube = 0
  3326. InSalvoMode = False
  3327. RealisticTorpFiringInProgress = False
  3328. TDCIsOn = False
  3329. CrewDialogLines = None
  3330. Automation = None
  3331. AutomationIDForTutorial = None
  3332. TimerID_UpdateTutorial = 975316316
  3333. RadarOneSweep = 0
  3334. RadarContinuousSweep = 1
  3335. RadarConstantBearing = 2
  3336. RadarSweepMode = RadarConstantBearing
  3337. #
  3338. RadarIsOn = 0
  3339. RadarIsOff = 1
  3340. RadarMode = RadarIsOff
  3341. #
  3342. RadarShortRange = 0
  3343. RadarMediumRange = 1
  3344. RadarRangeMode = RadarShortRange
  3345. #
  3346. WatchCrewMode = 0
  3347. ManDeckGunMode = 1
  3348. ManFlakGunMode = 2
  3349. ManDeckAndFlakGunMode = 3
  3350. CrewOnDeckMode = WatchCrewMode
  3351. #
  3352. DGunFireModeHold = 0
  3353. DGunFireModeFireAtWill = 1
  3354. DGunFireMode = DGunFireModeHold
  3355. #
  3356. DGunRangeModeShort = 0
  3357. DGunRangeModeMedium = 1
  3358. DGunRangeModeLong = 2
  3359. DGunRangeMode = DGunRangeModeShort
  3360. #
  3361. DGunAimModeCmdDeck = 0
  3362. DGunAimModeWeapons = 1
  3363. DGunAimModeWaterline = 2
  3364. DGunAimModeHull = 3
  3365. DGunAimMode = DGunAimModeWaterline
  3366. #
  3367. AAGunFireModeHold = 0
  3368. AAGunFireModeFireAtWill = 1
  3369. AAGunFireMode = AAGunFireModeHold
  3370. #
  3371. AAGunRangeModeShort = 0
  3372. AAGunRangeModeMedium = 1
  3373. AAGunRangeModeLong = 2
  3374. AAGunRangeMode = AAGunRangeModeShort
  3375. #
  3376. AAGunPriorityModeFighters = 0
  3377. AAGunPriorityModeBombers = 1
  3378. AAGunPriorityModeAnyAircraft = 2
  3379. AAGunPriorityMode = AAGunPriorityModeAnyAircraft
  3380. #
  3381. AAGunAimModeClosingTargets = 0
  3382. AAGunAimModeAnyTarget = 1
  3383. AAGunAimMode = AAGunAimModeAnyTarget
  3384. #
  3385. RealNavigation = False
  3386. subscurrentpositionvisible = False
  3387. #
  3388. navigationfixes = []
  3389. settingnavmapmarker = False
  3390. markshavekeyboard = False
  3391. navfixrepositioning = None
  3392. navfixestocreate = None
  3393. timezonemodifier = 0
  3394. #
  3395. supermarks = []
  3396. settingsupermark = False
  3397. supermarkrepositioning = None
  3398. supermarkstocreate = None
  3399. #
  3400. destroyedmarks = []
  3401. #
  3402. SpeechEngineFound = False
  3403. timeislocaltime = False
  3404. #
  3405. tdwdestroyedmarks = None
  3406. #
  3407. hydrofollowcontact = None
  3408. TimerID_HydroFollowContactBearing = 597031054
  3409. TimerID_HydroFollowContactDeltaBearing = 597031055
  3410. #
  3411. # electric propulsion only
  3412. ElectricsOnly = False
  3413. #
  3414. # using stadimeter as sextant
  3415. sextantactive = False
  3416.  
  3417.  
  3418. def GetPatchDecksAwashEnabled():
  3419. global PatchDecksAwashEnabled
  3420. return PatchDecksAwashEnabled
  3421.  
  3422.  
  3423. def GetDecksAwashDepth():
  3424. global DecksAwashDepth
  3425. return DecksAwashDepth
  3426.  
  3427.  
  3428. def GetPatchIndependentEngineControlsEnabled():
  3429. global PatchIndependentEngineControlsEnabled
  3430. return PatchIndependentEngineControlsEnabled
  3431.  
  3432.  
  3433. def GetIndependentEnginesGameUpdateHotKey():
  3434. global IndependentEnginesGameUpdateHotKey
  3435. return IndependentEnginesGameUpdateHotKey
  3436.  
  3437.  
  3438. def GetCrashDepth():
  3439. global CrashDepth
  3440. return abs( int( CrashDepth ) )
  3441.  
  3442.  
  3443. def GetDamageControlTeamActive():
  3444. global DamageControlTeamActive
  3445. return DamageControlTeamActive
  3446.  
  3447.  
  3448. def SetDamageControlTeamActive( value ):
  3449. global DamageControlTeamActive
  3450. DamageControlTeamActive = value
  3451.  
  3452.  
  3453. def GetSnorkelEnabled():
  3454. global SnorkelEnabled
  3455. return SnorkelEnabled
  3456.  
  3457.  
  3458. def SetSnorkelEnabled( value ):
  3459. global SnorkelEnabled
  3460. SnorkelEnabled = value
  3461.  
  3462.  
  3463. def GetUIStyle():
  3464. global UIStyle
  3465. return UIStyle
  3466.  
  3467.  
  3468. def GetHeadingBarIncreaseHeadingKey():
  3469. global HeadingBarIncreaseHeadingKey
  3470. return HeadingBarIncreaseHeadingKey
  3471.  
  3472.  
  3473. def GetHeadingBarDecreaseHeadingKey():
  3474. global HeadingBarDecreaseHeadingKey
  3475. return HeadingBarDecreaseHeadingKey
  3476.  
  3477.  
  3478. def GetHeadingBarUserDelay():
  3479. global HeadingBarUserDelay
  3480. return HeadingBarUserDelay
  3481.  
  3482.  
  3483. def GetHeadingRudderKey():
  3484. global HeadingRudderKey
  3485. return HeadingRudderKey
  3486.  
  3487.  
  3488. def GetIntegrateLevels():
  3489. global IntegrateLevels
  3490. return IntegrateLevels
  3491.  
  3492.  
  3493. def GetFollowSelectedTargetHotKey():
  3494. global FollowSelectedTargetHotKey
  3495. return FollowSelectedTargetHotKey
  3496.  
  3497.  
  3498. def GetIncreaseFollowSelectedTargetOffsetHotKey():
  3499. global IncreaseFollowSelectedTargetOffsetHotKey
  3500. return IncreaseFollowSelectedTargetOffsetHotKey
  3501.  
  3502.  
  3503. def GetDecreaseFollowSelectedTargetOffsetHotKey():
  3504. global DecreaseFollowSelectedTargetOffsetHotKey
  3505. return DecreaseFollowSelectedTargetOffsetHotKey
  3506.  
  3507.  
  3508. def GetFollowSelectedTargetOffsetResetOnNewLockedContact():
  3509. global FollowSelectedTargetOffsetResetOnNewLockedContact
  3510. return FollowSelectedTargetOffsetResetOnNewLockedContact
  3511.  
  3512.  
  3513. def GetNomographVisibleOnMiniMapHotKey():
  3514. global NomographVisibleOnMiniMapHotKey
  3515. return NomographVisibleOnMiniMapHotKey
  3516.  
  3517.  
  3518. def GetToolHelperOnAtGameStart():
  3519. global ToolHelperOnAtGameStart
  3520. return ToolHelperOnAtGameStart
  3521.  
  3522.  
  3523. def GetTeleportOnCrashDive():
  3524. global TeleportOnCrashDive
  3525. return TeleportOnCrashDive
  3526.  
  3527.  
  3528. def GetTeleportOnCrashDiveWaitTime():
  3529. global TeleportOnCrashDiveWaitTime
  3530. return TeleportOnCrashDiveWaitTime
  3531.  
  3532.  
  3533. def GetCrashDiveTeleportToStation():
  3534. global CrashDiveTeleportToStation
  3535. return CrashDiveTeleportToStation
  3536.  
  3537.  
  3538. def GetPeriscopeDepthTeleportToStation():
  3539. global PeriscopeDepthTeleportToStation
  3540. return PeriscopeDepthTeleportToStation
  3541.  
  3542.  
  3543. def GetSnorkelDepthTeleportToStation():
  3544. global SnorkelDepthTeleportToStation
  3545. return SnorkelDepthTeleportToStation
  3546.  
  3547.  
  3548. def GetEmergencySurfaceTeleportToStation():
  3549. global EmergencySurfaceTeleportToStation
  3550. return EmergencySurfaceTeleportToStation
  3551.  
  3552.  
  3553. def GetSurfaceDepthTeleportToStation():
  3554. global SurfaceDepthTeleportToStation
  3555. return SurfaceDepthTeleportToStation
  3556.  
  3557.  
  3558. def GetTC1OnNewRadioNavMapContact():
  3559. global TC1OnNewRadioNavMapContact
  3560. return TC1OnNewRadioNavMapContact
  3561.  
  3562.  
  3563. def SetTC1OnNewRadioNavMapContact( value ):
  3564. global TC1OnNewRadioNavMapContact
  3565. TC1OnNewRadioNavMapContact = value
  3566.  
  3567.  
  3568. def GetNightFiltersEnabled():
  3569. global NightFiltersEnabled
  3570. return NightFiltersEnabled
  3571.  
  3572.  
  3573. def GetRenderOfficerIcons():
  3574. global RenderOfficerIcons
  3575. return RenderOfficerIcons
  3576.  
  3577.  
  3578. def GetOfficersToRender():
  3579. global OfficersToRender
  3580. return OfficersToRender
  3581.  
  3582.  
  3583. def GetAttackTDCMode():
  3584. global AttackTDCMode
  3585. return AttackTDCMode
  3586.  
  3587.  
  3588. def SetAttackTDCMode( value ):
  3589. global AttackTDCMode
  3590. AttackTDCMode = value
  3591.  
  3592.  
  3593. def GetObsTDCMode():
  3594. global ObsTDCMode
  3595. return ObsTDCMode
  3596.  
  3597.  
  3598. def SetObsTDCMode( value ):
  3599. global ObsTDCMode
  3600. ObsTDCMode = value
  3601.  
  3602.  
  3603. def GetUZOTDCMode():
  3604. global UZOTDCMode
  3605. return UZOTDCMode
  3606.  
  3607.  
  3608. def SetUZOTDCMode( value ):
  3609. global UZOTDCMode
  3610. UZOTDCMode = value
  3611.  
  3612.  
  3613. def GetDialsAnimationSpeed():
  3614. global DialsAnimationSpeed
  3615. return DialsAnimationSpeed
  3616.  
  3617.  
  3618. def GetBaseZoomThrottle():
  3619. global BaseZoomThrottle
  3620. return BaseZoomThrottle
  3621.  
  3622.  
  3623. def GetBaseZoomSpeed():
  3624. global BaseZoomSpeed
  3625. return BaseZoomSpeed
  3626.  
  3627.  
  3628. def GetBaseZoomHeading():
  3629. global BaseZoomHeading
  3630. return BaseZoomHeading
  3631.  
  3632.  
  3633. def GetBaseZoomRudder():
  3634. global BaseZoomRudder
  3635. return BaseZoomRudder
  3636.  
  3637.  
  3638. def GetBaseZoomDepth260():
  3639. global BaseZoomDepth260
  3640. return BaseZoomDepth260
  3641.  
  3642.  
  3643. def GetBaseZoomDepth25():
  3644. global BaseZoomDepth25
  3645. return BaseZoomDepth25
  3646.  
  3647.  
  3648. def GetBaseZoomSH5EHeading():
  3649. global BaseZoomSH5EHeading
  3650. return BaseZoomSH5EHeading
  3651.  
  3652.  
  3653. def GetBaseZoomSH5ERudder():
  3654. global BaseZoomSH5ERudder
  3655. return BaseZoomSH5ERudder
  3656.  
  3657.  
  3658. def GetThrottleCanZoom():
  3659. global ThrottleCanZoom
  3660. return ThrottleCanZoom
  3661.  
  3662.  
  3663. def GetSpeedCanZoom():
  3664. global SpeedCanZoom
  3665. return SpeedCanZoom
  3666.  
  3667.  
  3668. def GetHeadingCanZoom():
  3669. global HeadingCanZoom
  3670. return HeadingCanZoom
  3671.  
  3672.  
  3673. def GetRudderCanZoom():
  3674. global RudderCanZoom
  3675. return RudderCanZoom
  3676.  
  3677.  
  3678. def GetDepth260CanZoom():
  3679. global Depth260CanZoom
  3680. return Depth260CanZoom
  3681.  
  3682.  
  3683. def GetDepth25CanZoom():
  3684. global Depth25CanZoom
  3685. return Depth25CanZoom
  3686.  
  3687.  
  3688. def GetSH5EHeadingCanZoom():
  3689. global SH5EHeadingCanZoom
  3690. return SH5EHeadingCanZoom
  3691.  
  3692.  
  3693. def GetSH5ERudderCanZoom():
  3694. global SH5ERudderCanZoom
  3695. return SH5ERudderCanZoom
  3696.  
  3697. def GetDialsBaseZoomOffsetYAdjustment():
  3698. global DialsBaseZoomOffsetYAdjustment
  3699. return DialsBaseZoomOffsetYAdjustment
  3700.  
  3701.  
  3702. def GetDialsBaseZoomOffsetXAdjustment():
  3703. global DialsBaseZoomOffsetXAdjustment
  3704. return DialsBaseZoomOffsetXAdjustment
  3705.  
  3706.  
  3707. def GetSH5EHeadingRudderOffsetY():
  3708. global SH5EHeadingRudderOffsetY
  3709. return SH5EHeadingRudderOffsetY
  3710.  
  3711.  
  3712. def GetMessageBoxMinimumWidth():
  3713. global MessageBoxMinimumWidth
  3714. return MessageBoxMinimumWidth
  3715.  
  3716.  
  3717. def SetMessageBoxMinimumWidth( value ):
  3718. global MessageBoxMinimumWidth
  3719. MessageBoxMinimumWidth = value
  3720.  
  3721.  
  3722. def GetMessageBoxWidthFactor():
  3723. global MessageBoxWidthFactor
  3724. return MessageBoxWidthFactor
  3725.  
  3726.  
  3727. def SetMessageBoxWidthFactor( value ):
  3728. global MessageBoxWidthFactor
  3729. MessageBoxWidthFactor = value
  3730.  
  3731.  
  3732. def GetMessageBoxHeightFactor():
  3733. global MessageBoxHeightFactor
  3734. return MessageBoxHeightFactor
  3735.  
  3736.  
  3737. def SetMessageBoxHeightFactor( value ):
  3738. global MessageBoxHeightFactor
  3739. MessageBoxHeightFactor = value
  3740.  
  3741.  
  3742. def GetMessageBoxStartsExpanded():
  3743. global MessageBoxStartsExpanded
  3744. return MessageBoxStartsExpanded
  3745.  
  3746.  
  3747. def GetMessageBoxStartsWidened():
  3748. global MessageBoxStartsWidened
  3749. return MessageBoxStartsWidened
  3750.  
  3751.  
  3752. def GetDisplayTheMessageBox():
  3753. global DisplayTheMessageBox
  3754. return DisplayTheMessageBox
  3755.  
  3756.  
  3757. def SetDisplayTheMessageBox( value ):
  3758. global DisplayTheMessageBox
  3759. DisplayTheMessageBox = value
  3760.  
  3761.  
  3762. def GetDisplayTheMessageBoxHotKey():
  3763. global DisplayTheMessageBoxHotKey
  3764. return DisplayTheMessageBoxHotKey
  3765.  
  3766.  
  3767. def GetShowMessageBoxAndExpandAtTCLevel():
  3768. global ShowMessageBoxAndExpandAtTCLevel
  3769. return ShowMessageBoxAndExpandAtTCLevel
  3770.  
  3771.  
  3772. def SetShowMessageBoxAndExpandAtTCLevel( value ):
  3773. global ShowMessageBoxAndExpandAtTCLevel
  3774. ShowMessageBoxAndExpandAtTCLevel = value
  3775.  
  3776.  
  3777. def GetRestoreMessageBoxAfterTCLevel():
  3778. global RestoreMessageBoxAfterTCLevel
  3779. return RestoreMessageBoxAfterTCLevel
  3780.  
  3781.  
  3782. def GetTAISetCourseWhenSubIsClicked():
  3783. global TAISetCourseWhenSubIsClicked
  3784. return TAISetCourseWhenSubIsClicked
  3785.  
  3786.  
  3787. def SetTAISetCourseWhenSubIsClicked( value ):
  3788. global TAISetCourseWhenSubIsClicked
  3789. TAISetCourseWhenSubIsClicked = value
  3790.  
  3791.  
  3792. def GetTAIActivateWaypointToolWhenWaypointClicked():
  3793. global TAIActivateWaypointToolWhenWaypointClicked
  3794. return TAIActivateWaypointToolWhenWaypointClicked
  3795.  
  3796.  
  3797. def SetTAIActivateWaypointToolWhenWaypointClicked( value ):
  3798. global TAIActivateWaypointToolWhenWaypointClicked
  3799. TAIActivateWaypointToolWhenWaypointClicked = value
  3800.  
  3801.  
  3802. def GetTAIKeepPlayerLookingUp():
  3803. global TAIKeepPlayerLookingUp
  3804. return TAIKeepPlayerLookingUp
  3805.  
  3806.  
  3807. def SetTAIKeepPlayerLookingUp( value ):
  3808. global TAIKeepPlayerLookingUp
  3809. TAIKeepPlayerLookingUp = value
  3810.  
  3811.  
  3812. def GetTAIHydrophoneEnabled():
  3813. global TAIHydrophoneEnabled
  3814. return TAIHydrophoneEnabled
  3815.  
  3816.  
  3817. def SetTAIHydrophoneEnabled( value ):
  3818. global TAIHydrophoneEnabled
  3819. TAIHydrophoneEnabled = value
  3820.  
  3821.  
  3822. def GetTAISonarEnabled():
  3823. global TAISonarEnabled
  3824. return TAISonarEnabled
  3825.  
  3826.  
  3827. def SetTAISonarEnabled( value ):
  3828. global TAISonarEnabled
  3829. TAISonarEnabled = value
  3830.  
  3831.  
  3832. def GetTAIVisualEnabled():
  3833. global TAIVisualEnabled
  3834. return TAIVisualEnabled
  3835.  
  3836.  
  3837. def SetTAIVisualEnabled( value ):
  3838. global TAIVisualEnabled
  3839. TAIVisualEnabled = value
  3840.  
  3841.  
  3842. def GetTAIRadarEnabled():
  3843. global TAIRadarEnabled
  3844. return TAIRadarEnabled
  3845.  
  3846.  
  3847. def SetTAIRadarEnabled( value ):
  3848. global TAIRadarEnabled
  3849. TAIRadarEnabled = value
  3850.  
  3851.  
  3852. def GetTAIMaximumSensorRangesEnabled():
  3853. global TAIMaximumSensorRangesEnabled
  3854. return TAIMaximumSensorRangesEnabled
  3855.  
  3856.  
  3857. def SetTAIMaximumSensorRangesEnabled( value ):
  3858. global TAIMaximumSensorRangesEnabled
  3859. TAIMaximumSensorRangesEnabled = value
  3860.  
  3861.  
  3862. def GetTAITorpedoSolutionEnabled():
  3863. global TAITorpedoSolutionEnabled
  3864. return TAITorpedoSolutionEnabled
  3865.  
  3866.  
  3867. def SetTAITorpedoSolutionEnabled( value ):
  3868. global TAITorpedoSolutionEnabled
  3869. TAITorpedoSolutionEnabled = value
  3870.  
  3871.  
  3872. def GetTAIMapScaleEnabled():
  3873. global TAIMapScaleEnabled
  3874. return TAIMapScaleEnabled
  3875.  
  3876.  
  3877. def SetTAIMapScaleEnabled( value ):
  3878. global TAIMapScaleEnabled
  3879. TAIMapScaleEnabled = value
  3880.  
  3881.  
  3882. def GetTAIMapCoordinatesEnabled():
  3883. global TAIMapCoordinatesEnabled
  3884. return TAIMapCoordinatesEnabled
  3885.  
  3886.  
  3887. def SetTAIMapCoordinatesEnabled( value ):
  3888. global TAIMapCoordinatesEnabled
  3889. TAIMapCoordinatesEnabled = value
  3890.  
  3891.  
  3892. def GetTAICameraPositionAndOrientationEnabled():
  3893. global TAICameraPositionAndOrientationEnabled
  3894. return TAICameraPositionAndOrientationEnabled
  3895.  
  3896.  
  3897. def SetTAICameraPositionAndOrientationEnabled( value ):
  3898. global TAICameraPositionAndOrientationEnabled
  3899. TAICameraPositionAndOrientationEnabled = value
  3900.  
  3901.  
  3902. def GetTAIShellHitEnabled():
  3903. global TAIShellHitEnabled
  3904. return TAIShellHitEnabled
  3905.  
  3906.  
  3907. def SetTAIShellHitEnabled( value ):
  3908. global TAIShellHitEnabled
  3909. TAIShellHitEnabled = value
  3910.  
  3911.  
  3912. def GetTAIKGridEnabled():
  3913. global TAIKGridEnabled
  3914. return TAIKGridEnabled
  3915.  
  3916.  
  3917. def SetTAIKGridEnabled( value ):
  3918. global TAIKGridEnabled
  3919. TAIKGridEnabled = value
  3920.  
  3921.  
  3922. def GetTAIRadarContactsEnabled():
  3923. global TAIRadarContactsEnabled
  3924. return TAIRadarContactsEnabled
  3925.  
  3926.  
  3927. def SetTAIRadarContactsEnabled( value ):
  3928. global TAIRadarContactsEnabled
  3929. TAIRadarContactsEnabled = value
  3930.  
  3931.  
  3932. def GetTAIVisualContactsEnabled():
  3933. global TAIVisualContactsEnabled
  3934. return TAIVisualContactsEnabled
  3935.  
  3936.  
  3937. def SetTAIVisualContactsEnabled( value ):
  3938. global TAIVisualContactsEnabled
  3939. TAIVisualContactsEnabled = value
  3940.  
  3941.  
  3942. def GetTAIHydrophoneContactsEnabled():
  3943. global TAIHydrophoneContactsEnabled
  3944. return TAIHydrophoneContactsEnabled
  3945.  
  3946.  
  3947. def SetTAIHydrophoneContactsEnabled( value ):
  3948. global TAIHydrophoneContactsEnabled
  3949. TAIHydrophoneContactsEnabled = value
  3950.  
  3951.  
  3952. def GetTAISonarContactsEnabled():
  3953. global TAISonarContactsEnabled
  3954. return TAISonarContactsEnabled
  3955.  
  3956.  
  3957. def SetTAISonarContactsEnabled( value ):
  3958. global TAISonarContactsEnabled
  3959. TAISonarContactsEnabled = value
  3960.  
  3961.  
  3962. def GetTAIViewConesEnabled():
  3963. global TAIViewConesEnabled
  3964. return TAIViewConesEnabled
  3965.  
  3966.  
  3967. def SetTAIViewConesEnabled( value ):
  3968. global TAIViewConesEnabled
  3969. TAIViewConesEnabled = value
  3970.  
  3971.  
  3972. def GetTAIMacroObjectivesEnabled():
  3973. global TAIMacroObjectivesEnabled
  3974. return TAIMacroObjectivesEnabled
  3975.  
  3976.  
  3977. def SetTAIMacroObjectivesEnabled( value ):
  3978. global TAIMacroObjectivesEnabled
  3979. TAIMacroObjectivesEnabled = value
  3980.  
  3981.  
  3982. def GetTAIStrategicObjectivesEnabled():
  3983. global TAIStrategicObjectivesEnabled
  3984. return TAIStrategicObjectivesEnabled
  3985.  
  3986.  
  3987. def SetTAIStrategicObjectivesEnabled( value ):
  3988. global TAIStrategicObjectivesEnabled
  3989. TAIStrategicObjectivesEnabled = value
  3990.  
  3991.  
  3992. def GetTAIStrategicUnitsEnabled():
  3993. global TAIStrategicUnitsEnabled
  3994. return TAIStrategicUnitsEnabled
  3995.  
  3996.  
  3997. def SetTAIStrategicUnitsEnabled( value ):
  3998. global TAIStrategicUnitsEnabled
  3999. TAIStrategicUnitsEnabled = value
  4000.  
  4001.  
  4002. def GetTAIContactInfoTextEnabled():
  4003. global TAIContactInfoTextEnabled
  4004. return TAIContactInfoTextEnabled
  4005.  
  4006.  
  4007. def SetTAIContactInfoTextEnabled( value ):
  4008. global TAIContactInfoTextEnabled
  4009. TAIContactInfoTextEnabled = value
  4010.  
  4011.  
  4012. def GetTAITorpedoImpactPointsEnabled():
  4013. global TAITorpedoImpactPointsEnabled
  4014. return TAITorpedoImpactPointsEnabled
  4015.  
  4016.  
  4017. def SetTAITorpedoImpactPointsEnabled( value ):
  4018. global TAITorpedoImpactPointsEnabled
  4019. TAITorpedoImpactPointsEnabled = value
  4020.  
  4021.  
  4022. def GetTAILocationsInTAIEnabled():
  4023. global TAILocationsInTAIEnabled
  4024. return TAILocationsInTAIEnabled
  4025.  
  4026.  
  4027. def SetTAILocationsInTAIEnabled( value ):
  4028. global TAILocationsInTAIEnabled
  4029. TAILocationsInTAIEnabled = value
  4030.  
  4031.  
  4032. def GetTAIIsTacticalMapEnabled():
  4033. global TAIIsTacticalMapEnabled
  4034. return TAIIsTacticalMapEnabled
  4035.  
  4036.  
  4037. def SetTAIIsTacticalMapEnabled( value ):
  4038. global TAIIsTacticalMapEnabled
  4039. TAIIsTacticalMapEnabled = value
  4040.  
  4041.  
  4042. def GetTAIHighlightSonarTargetsEnabled():
  4043. global TAIHighlightSonarTargetsEnabled
  4044. return TAIHighlightSonarTargetsEnabled
  4045.  
  4046.  
  4047. def SetTAIHighlightSonarTargetsEnabled( value ):
  4048. global TAIHighlightSonarTargetsEnabled
  4049. TAIHighlightSonarTargetsEnabled = value
  4050.  
  4051.  
  4052. def GetTAIHighlightRadarTargetsEnabled():
  4053. global TAIHighlightRadarTargetsEnabled
  4054. return TAIHighlightRadarTargetsEnabled
  4055.  
  4056.  
  4057. def SetTAIHighlightRadarTargetsEnabled( value ):
  4058. global TAIHighlightRadarTargetsEnabled
  4059. TAIHighlightRadarTargetsEnabled = value
  4060.  
  4061.  
  4062. def GetTAIHighlightVisualTargetsEnabled():
  4063. global TAIHighlightVisualTargetsEnabled
  4064. return TAIHighlightVisualTargetsEnabled
  4065.  
  4066.  
  4067. def SetTAIHighlightVisualTargetsEnabled( value ):
  4068. global TAIHighlightVisualTargetsEnabled
  4069. TAIHighlightVisualTargetsEnabled = value
  4070.  
  4071.  
  4072. def GetTAIMinefieldsEnabled():
  4073. global TAIMinefieldsEnabled
  4074. return TAIMinefieldsEnabled
  4075.  
  4076.  
  4077. def SetTAIMinefieldsEnabled( value ):
  4078. global TAIMinefieldsEnabled
  4079. TAIMinefieldsEnabled = value
  4080.  
  4081.  
  4082. def GetTAIShallowWatersEnabled():
  4083. global TAIShallowWatersEnabled
  4084. return TAIShallowWatersEnabled
  4085.  
  4086.  
  4087. def SetTAIShallowWatersEnabled( value ):
  4088. global TAIShallowWatersEnabled
  4089. TAIShallowWatersEnabled = value
  4090.  
  4091.  
  4092. def GetTAIResupplyShipEnabled():
  4093. global TAIResupplyShipEnabled
  4094. return TAIResupplyShipEnabled
  4095.  
  4096.  
  4097. def SetTAIResupplyShipEnabled( value ):
  4098. global TAIResupplyShipEnabled
  4099. TAIResupplyShipEnabled = value
  4100.  
  4101.  
  4102. def GetTAIContactSpottedEnabled():
  4103. global TAIContactSpottedEnabled
  4104. return TAIContactSpottedEnabled
  4105.  
  4106.  
  4107. def SetTAIContactSpottedEnabled( value ):
  4108. global TAIContactSpottedEnabled
  4109. TAIContactSpottedEnabled = value
  4110.  
  4111.  
  4112. def GetTAISelectedContactGUIEnabled():
  4113. global TAISelectedContactGUIEnabled
  4114. return TAISelectedContactGUIEnabled
  4115.  
  4116.  
  4117. def SetTAISelectedContactGUIEnabled( value ):
  4118. global TAISelectedContactGUIEnabled
  4119. TAISelectedContactGUIEnabled = value
  4120.  
  4121.  
  4122. def GetTAIParallelCourseButtonEnabled():
  4123. global TAIParallelCourseButtonEnabled
  4124. return TAIParallelCourseButtonEnabled
  4125.  
  4126.  
  4127. def SetTAIParallelCourseButtonEnabled( value ):
  4128. global TAIParallelCourseButtonEnabled
  4129. TAIParallelCourseButtonEnabled = value
  4130.  
  4131.  
  4132. def GetTAIInterceptCourseButtonEnabled():
  4133. global TAIInterceptCourseButtonEnabled
  4134. return TAIInterceptCourseButtonEnabled
  4135.  
  4136.  
  4137. def SetTAIInterceptCourseButtonEnabled( value ):
  4138. global TAIInterceptCourseButtonEnabled
  4139. TAIInterceptCourseButtonEnabled = value
  4140.  
  4141.  
  4142. def GetDepthGroupHighlightBitmapEnabled():
  4143. global DepthGroupHighlightBitmapEnabled
  4144. return DepthGroupHighlightBitmapEnabled
  4145.  
  4146.  
  4147. def GetThrottleHighlightBitmapEnabled():
  4148. global ThrottleHighlightBitmapEnabled
  4149. return ThrottleHighlightBitmapEnabled
  4150.  
  4151.  
  4152. def GetTAIModeOnScopeUZOStationSelected():
  4153. global TAIModeOnScopeUZOStationSelected
  4154. return TAIModeOnScopeUZOStationSelected
  4155.  
  4156.  
  4157. def GetTAIModeOnGameStart():
  4158. global TAIModeOnGameStart
  4159. return TAIModeOnGameStart
  4160.  
  4161.  
  4162. def GetNavSetCourseWhenSubIsClicked():
  4163. global NavSetCourseWhenSubIsClicked
  4164. return NavSetCourseWhenSubIsClicked
  4165.  
  4166.  
  4167. def SetNavSetCourseWhenSubIsClicked( value ):
  4168. global NavSetCourseWhenSubIsClicked
  4169. NavSetCourseWhenSubIsClicked = value
  4170.  
  4171.  
  4172. def GetNavActivateWaypointToolWhenWaypointClicked():
  4173. global NavActivateWaypointToolWhenWaypointClicked
  4174. return NavActivateWaypointToolWhenWaypointClicked
  4175.  
  4176.  
  4177. def SetNavActivateWaypointToolWhenWaypointClicked( value ):
  4178. global NavActivateWaypointToolWhenWaypointClicked
  4179. NavActivateWaypointToolWhenWaypointClicked = value
  4180.  
  4181.  
  4182. def GetNavKeepPlayerLookingUp():
  4183. global NavKeepPlayerLookingUp
  4184. return NavKeepPlayerLookingUp
  4185.  
  4186.  
  4187. def SetNavKeepPlayerLookingUp( value ):
  4188. global NavKeepPlayerLookingUp
  4189. NavKeepPlayerLookingUp = value
  4190.  
  4191.  
  4192. def GetNavHydrophoneEnabled():
  4193. global NavHydrophoneEnabled
  4194. return NavHydrophoneEnabled
  4195.  
  4196.  
  4197. def SetNavHydrophoneEnabled( value ):
  4198. global NavHydrophoneEnabled
  4199. NavHydrophoneEnabled = value
  4200.  
  4201.  
  4202. def GetNavSonarEnabled():
  4203. global NavSonarEnabled
  4204. return NavSonarEnabled
  4205.  
  4206.  
  4207. def SetNavSonarEnabled( value ):
  4208. global NavSonarEnabled
  4209. NavSonarEnabled = value
  4210.  
  4211.  
  4212. def GetNavVisualEnabled():
  4213. global NavVisualEnabled
  4214. return NavVisualEnabled
  4215.  
  4216.  
  4217. def SetNavVisualEnabled( value ):
  4218. global NavVisualEnabled
  4219. NavVisualEnabled = value
  4220.  
  4221.  
  4222. def GetNavRadarEnabled():
  4223. global NavRadarEnabled
  4224. return NavRadarEnabled
  4225.  
  4226.  
  4227. def SetNavRadarEnabled( value ):
  4228. global NavRadarEnabled
  4229. NavRadarEnabled = value
  4230.  
  4231.  
  4232. def GetNavMaximumSensorRangesEnabled():
  4233. global NavMaximumSensorRangesEnabled
  4234. return NavMaximumSensorRangesEnabled
  4235.  
  4236.  
  4237. def SetNavMaximumSensorRangesEnabled( value ):
  4238. global NavMaximumSensorRangesEnabled
  4239. NavMaximumSensorRangesEnabled = value
  4240.  
  4241.  
  4242. def GetNavTorpedoSolutionEnabled():
  4243. global NavTorpedoSolutionEnabled
  4244. return NavTorpedoSolutionEnabled
  4245.  
  4246.  
  4247. def SetNavTorpedoSolutionEnabled( value ):
  4248. global NavTorpedoSolutionEnabled
  4249. NavTorpedoSolutionEnabled = value
  4250.  
  4251.  
  4252. def GetNavMapScaleEnabled():
  4253. global NavMapScaleEnabled
  4254. return NavMapScaleEnabled
  4255.  
  4256.  
  4257. def SetNavMapScaleEnabled( value ):
  4258. global NavMapScaleEnabled
  4259. NavMapScaleEnabled = value
  4260.  
  4261.  
  4262. def GetNavMapCoordinatesEnabled():
  4263. global NavMapCoordinatesEnabled
  4264. return NavMapCoordinatesEnabled
  4265.  
  4266.  
  4267. def SetNavMapCoordinatesEnabled( value ):
  4268. global NavMapCoordinatesEnabled
  4269. NavMapCoordinatesEnabled = value
  4270.  
  4271.  
  4272. def GetNavCameraPositionAndOrientationEnabled():
  4273. global NavCameraPositionAndOrientationEnabled
  4274. return NavCameraPositionAndOrientationEnabled
  4275.  
  4276.  
  4277. def SetNavCameraPositionAndOrientationEnabled( value ):
  4278. global NavCameraPositionAndOrientationEnabled
  4279. NavCameraPositionAndOrientationEnabled = value
  4280.  
  4281.  
  4282. def GetNavShellHitEnabled():
  4283. global NavShellHitEnabled
  4284. return NavShellHitEnabled
  4285.  
  4286.  
  4287. def SetNavShellHitEnabled( value ):
  4288. global NavShellHitEnabled
  4289. NavShellHitEnabled = value
  4290.  
  4291.  
  4292. def GetNavKGridEnabled():
  4293. global NavKGridEnabled
  4294. return NavKGridEnabled
  4295.  
  4296.  
  4297. def SetNavKGridEnabled( value ):
  4298. global NavKGridEnabled
  4299. NavKGridEnabled = value
  4300.  
  4301.  
  4302. def GetNavRadarContactsEnabled():
  4303. global NavRadarContactsEnabled
  4304. return NavRadarContactsEnabled
  4305.  
  4306.  
  4307. def SetNavRadarContactsEnabled( value ):
  4308. global NavRadarContactsEnabled
  4309. NavRadarContactsEnabled = value
  4310.  
  4311.  
  4312. def GetNavVisualContactsEnabled():
  4313. global NavVisualContactsEnabled
  4314. return NavVisualContactsEnabled
  4315.  
  4316.  
  4317. def SetNavVisualContactsEnabled( value ):
  4318. global NavVisualContactsEnabled
  4319. NavVisualContactsEnabled = value
  4320.  
  4321.  
  4322. def GetNavHydrophoneContactsEnabled():
  4323. global NavHydrophoneContactsEnabled
  4324. return NavHydrophoneContactsEnabled
  4325.  
  4326.  
  4327. def SetNavHydrophoneContactsEnabled( value ):
  4328. global NavHydrophoneContactsEnabled
  4329. NavHydrophoneContactsEnabled = value
  4330.  
  4331.  
  4332. def GetNavSonarContactsEnabled():
  4333. global NavSonarContactsEnabled
  4334. return NavSonarContactsEnabled
  4335.  
  4336.  
  4337. def SetNavSonarContactsEnabled( value ):
  4338. global NavSonarContactsEnabled
  4339. NavSonarContactsEnabled = value
  4340.  
  4341.  
  4342. def GetNavViewConesEnabled():
  4343. global NavViewConesEnabled
  4344. return NavViewConesEnabled
  4345.  
  4346.  
  4347. def SetNavViewConesEnabled( value ):
  4348. global NavViewConesEnabled
  4349. NavViewConesEnabled = value
  4350.  
  4351.  
  4352. def GetNavMacroObjectivesEnabled():
  4353. global NavMacroObjectivesEnabled
  4354. return NavMacroObjectivesEnabled
  4355.  
  4356.  
  4357. def SetNavMacroObjectivesEnabled( value ):
  4358. global NavMacroObjectivesEnabled
  4359. NavMacroObjectivesEnabled = value
  4360.  
  4361.  
  4362. def GetNavStrategicObjectivesEnabled():
  4363. global NavStrategicObjectivesEnabled
  4364. return NavStrategicObjectivesEnabled
  4365.  
  4366.  
  4367. def SetNavStrategicObjectivesEnabled( value ):
  4368. global NavStrategicObjectivesEnabled
  4369. NavStrategicObjectivesEnabled = value
  4370.  
  4371.  
  4372. def GetNavStrategicUnitsEnabled():
  4373. global NavStrategicUnitsEnabled
  4374. return NavStrategicUnitsEnabled
  4375.  
  4376.  
  4377. def SetNavStrategicUnitsEnabled( value ):
  4378. global NavStrategicUnitsEnabled
  4379. NavStrategicUnitsEnabled = value
  4380.  
  4381.  
  4382. def GetNavContactInfoTextEnabled():
  4383. global NavContactInfoTextEnabled
  4384. return NavContactInfoTextEnabled
  4385.  
  4386.  
  4387. def SetNavContactInfoTextEnabled( value ):
  4388. global NavContactInfoTextEnabled
  4389. NavContactInfoTextEnabled = value
  4390.  
  4391.  
  4392. def GetNavTorpedoImpactPointsEnabled():
  4393. global NavTorpedoImpactPointsEnabled
  4394. return NavTorpedoImpactPointsEnabled
  4395.  
  4396.  
  4397. def SetNavTorpedoImpactPointsEnabled( value ):
  4398. global NavTorpedoImpactPointsEnabled
  4399. NavTorpedoImpactPointsEnabled = value
  4400.  
  4401.  
  4402. def GetNavLocationsInTAIEnabled():
  4403. global NavLocationsInTAIEnabled
  4404. return NavLocationsInTAIEnabled
  4405.  
  4406.  
  4407. def SetNavLocationsInTAIEnabled( value ):
  4408. global NavLocationsInTAIEnabled
  4409. NavLocationsInTAIEnabled = value
  4410.  
  4411.  
  4412. def GetNavIsTacticalMapEnabled():
  4413. global NavIsTacticalMapEnabled
  4414. return NavIsTacticalMapEnabled
  4415.  
  4416.  
  4417. def SetNavIsTacticalMapEnabled( value ):
  4418. global NavIsTacticalMapEnabled
  4419. NavIsTacticalMapEnabled = value
  4420.  
  4421.  
  4422. def GetNavHighlightSonarTargetsEnabled():
  4423. global NavHighlightSonarTargetsEnabled
  4424. return NavHighlightSonarTargetsEnabled
  4425.  
  4426.  
  4427. def SetNavHighlightSonarTargetsEnabled( value ):
  4428. global NavHighlightSonarTargetsEnabled
  4429. NavHighlightSonarTargetsEnabled = value
  4430.  
  4431.  
  4432. def GetNavHighlightRadarTargetsEnabled():
  4433. global NavHighlightRadarTargetsEnabled
  4434. return NavHighlightRadarTargetsEnabled
  4435.  
  4436.  
  4437. def SetNavHighlightRadarTargetsEnabled( value ):
  4438. global NavHighlightRadarTargetsEnabled
  4439. NavHighlightRadarTargetsEnabled = value
  4440.  
  4441.  
  4442. def GetNavHighlightVisualTargetsEnabled():
  4443. global NavHighlightVisualTargetsEnabled
  4444. return NavHighlightVisualTargetsEnabled
  4445.  
  4446.  
  4447. def SetNavHighlightVisualTargetsEnabled( value ):
  4448. global NavHighlightVisualTargetsEnabled
  4449. NavHighlightVisualTargetsEnabled = value
  4450.  
  4451.  
  4452. def GetNavMinefieldsEnabled():
  4453. global NavMinefieldsEnabled
  4454. return NavMinefieldsEnabled
  4455.  
  4456.  
  4457. def SetNavMinefieldsEnabled( value ):
  4458. global NavMinefieldsEnabled
  4459. NavMinefieldsEnabled = value
  4460.  
  4461.  
  4462. def GetNavShallowWatersEnabled():
  4463. global NavShallowWatersEnabled
  4464. return NavShallowWatersEnabled
  4465.  
  4466.  
  4467. def SetNavShallowWatersEnabled( value ):
  4468. global NavShallowWatersEnabled
  4469. NavShallowWatersEnabled = value
  4470.  
  4471.  
  4472. def GetNavResupplyShipEnabled():
  4473. global NavResupplyShipEnabled
  4474. return NavResupplyShipEnabled
  4475.  
  4476.  
  4477. def SetNavResupplyShipEnabled( value ):
  4478. global NavResupplyShipEnabled
  4479. NavResupplyShipEnabled = value
  4480.  
  4481.  
  4482. def GetNavContactSpottedEnabled():
  4483. global NavContactSpottedEnabled
  4484. return NavContactSpottedEnabled
  4485.  
  4486.  
  4487. def SetNavContactSpottedEnabled( value ):
  4488. global NavContactSpottedEnabled
  4489. NavContactSpottedEnabled = value
  4490.  
  4491.  
  4492. def GetNavSelectedContactGUIEnabled():
  4493. global NavSelectedContactGUIEnabled
  4494. return NavSelectedContactGUIEnabled
  4495.  
  4496.  
  4497. def SetNavSelectedContactGUIEnabled( value ):
  4498. global NavSelectedContactGUIEnabled
  4499. NavSelectedContactGUIEnabled = value
  4500.  
  4501.  
  4502. def GetNavParallelCourseButtonEnabled():
  4503. global NavParallelCourseButtonEnabled
  4504. return NavParallelCourseButtonEnabled
  4505.  
  4506.  
  4507. def SetNavParallelCourseButtonEnabled( value ):
  4508. global NavParallelCourseButtonEnabled
  4509. NavParallelCourseButtonEnabled = value
  4510.  
  4511.  
  4512. def GetNavInterceptCourseButtonEnabled():
  4513. global NavInterceptCourseButtonEnabled
  4514. return NavInterceptCourseButtonEnabled
  4515.  
  4516.  
  4517. def SetNavInterceptCourseButtonEnabled( value ):
  4518. global NavInterceptCourseButtonEnabled
  4519. NavInterceptCourseButtonEnabled = value
  4520.  
  4521.  
  4522. def GetNavDisplayNavFixes():
  4523. global NavDisplayNavFixes
  4524. return NavDisplayNavFixes
  4525.  
  4526.  
  4527. def SetNavDisplayNavFixes( value ):
  4528. global NavDisplayNavFixes
  4529. NavDisplayNavFixes = value
  4530. for fix in navigationfixes:
  4531. fix[ 0 ].Visible = value
  4532.  
  4533.  
  4534. def GetNavDisplaySuperMarks():
  4535. global NavDisplaySuperMarks
  4536. return NavDisplaySuperMarks
  4537.  
  4538.  
  4539. def SetNavDisplaySuperMarks( value ):
  4540. global NavDisplaySuperMarks
  4541. NavDisplaySuperMarks = value
  4542. for fix in supermarks:
  4543. fix[ 0 ].Visible = value
  4544.  
  4545.  
  4546. def GetNavDisplayDestroyedMarks():
  4547. global NavDisplayDestroyedMarks
  4548. return NavDisplayDestroyedMarks
  4549.  
  4550.  
  4551. def SetNavDisplayDestroyedMarks( value ):
  4552. global NavDisplayDestroyedMarks
  4553. NavDisplayDestroyedMarks = value
  4554. for fix in destroyedmarks:
  4555. fix[ 0 ].Visible = value
  4556.  
  4557.  
  4558. def GetPlayerGuidanceEnabled():
  4559. global PlayerGuidanceEnabled
  4560. return PlayerGuidanceEnabled
  4561.  
  4562.  
  4563. def SetPlayerGuidanceEnabled( value ):
  4564. global PlayerGuidanceEnabled
  4565. PlayerGuidanceEnabled = value
  4566.  
  4567.  
  4568. def GetPlayerObjectivesEnabled():
  4569. global PlayerObjectivesEnabled
  4570. return PlayerObjectivesEnabled
  4571.  
  4572.  
  4573. def SetPlayerObjectivesEnabled( value ):
  4574. global PlayerObjectivesEnabled
  4575. PlayerObjectivesEnabled = value
  4576.  
  4577.  
  4578. def GetIfTutPlayerObjsEnabledAtGameStart():
  4579. global IfTutPlayerObjsEnabledAtGameStart
  4580. return IfTutPlayerObjsEnabledAtGameStart
  4581.  
  4582.  
  4583. def GetXOTDCDialogEnabled():
  4584. global XOTDCDialogEnabled
  4585. return XOTDCDialogEnabled
  4586.  
  4587.  
  4588. def SetXOTDCDialogEnabled( value ):
  4589. global XOTDCDialogEnabled
  4590. XOTDCDialogEnabled = value
  4591.  
  4592.  
  4593. def GetXOTDCDialogDraggable():
  4594. global XOTDCDialogDraggable
  4595. return XOTDCDialogDraggable
  4596.  
  4597.  
  4598. def GetShowItemNotes():
  4599. global ShowItemNotes
  4600. return ShowItemNotes
  4601.  
  4602.  
  4603. def SetShowItemNotes( value ):
  4604. global ShowItemNotes
  4605. ShowItemNotes = value
  4606.  
  4607.  
  4608. def GetHideOrderBarOnOrderClicked():
  4609. global HideOrderBarOnOrderClicked
  4610. return HideOrderBarOnOrderClicked
  4611.  
  4612.  
  4613. def GetHideOrderBarOnKeyPress():
  4614. global HideOrderBarOnKeyPress
  4615. return HideOrderBarOnKeyPress
  4616.  
  4617.  
  4618. def GetOrderCategoriesScroll():
  4619. global OrderCategoriesScroll
  4620. return OrderCategoriesScroll
  4621.  
  4622.  
  4623. def SetOrderCategoriesScroll( value ):
  4624. global OrderCategoriesScroll
  4625. OrderCategoriesScroll = value
  4626. # do something else to update it
  4627.  
  4628.  
  4629. def GetOfficersScroll():
  4630. global OfficersScroll
  4631. return OfficersScroll
  4632.  
  4633.  
  4634. def GetOfficersHideTD():
  4635. global OfficersHideTD
  4636. return OfficersHideTD
  4637.  
  4638.  
  4639. def GetNavReportFixAsDegrees():
  4640. global NavReportFixAsDegrees
  4641. return NavReportFixAsDegrees
  4642.  
  4643.  
  4644. def GetShowLockBreakLock():
  4645. global ShowLockBreakLock
  4646. return ShowLockBreakLock
  4647.  
  4648.  
  4649. def SetShowLockBreakLock( value ):
  4650. global ShowLockBreakLock
  4651. ShowLockBreakLock = value
  4652.  
  4653.  
  4654. def GetDisplayShipNames():
  4655. global DisplayShipNames
  4656. return DisplayShipNames
  4657.  
  4658.  
  4659. def SetDisplayShipNames( value ):
  4660. global DisplayShipNames
  4661. DisplayShipNames = value
  4662.  
  4663.  
  4664. def GetContactSpottedInfoOnUnlockedTarget():
  4665. global ContactSpottedInfoOnUnlockedTarget
  4666. return ContactSpottedInfoOnUnlockedTarget
  4667.  
  4668.  
  4669. def GetAutoEnableChartsOnScopeStation():
  4670. global AutoEnableChartsOnScopeStation
  4671. return AutoEnableChartsOnScopeStation
  4672.  
  4673.  
  4674. def GetAutoDisableChartsOnScopeStationLeave():
  4675. global AutoDisableChartsOnScopeStationLeave
  4676. return AutoDisableChartsOnScopeStationLeave
  4677.  
  4678.  
  4679. def GetTeleportToObsScope():
  4680. global TeleportToObsScope
  4681. return TeleportToObsScope
  4682.  
  4683.  
  4684. def GetTeleportToAttackScope():
  4685. global TeleportToAttackScope
  4686. return TeleportToAttackScope
  4687.  
  4688.  
  4689. def GetTeleportToUZO():
  4690. global TeleportToUZO
  4691. return TeleportToUZO
  4692.  
  4693.  
  4694. def GetTeleportToRadar():
  4695. global TeleportToRadar
  4696. return TeleportToRadar
  4697.  
  4698.  
  4699. def GetTeleportToHydrophone():
  4700. global TeleportToHydrophone
  4701. return TeleportToHydrophone
  4702.  
  4703.  
  4704. def GetTeleportToDeckGun():
  4705. global TeleportToDeckGun
  4706. return TeleportToDeckGun
  4707.  
  4708.  
  4709. def GetTeleportToFlakGun():
  4710. global TeleportToFlakGun
  4711. return TeleportToFlakGun
  4712.  
  4713.  
  4714. def GetDisplayTeleportingOrderBarKey():
  4715. global DisplayTeleportingOrderBarKey
  4716. return DisplayTeleportingOrderBarKey
  4717.  
  4718.  
  4719. def GetObsAndAttackReturnToBridge():
  4720. global ObsAndAttackReturnToBridge
  4721. return ObsAndAttackReturnToBridge
  4722.  
  4723.  
  4724. def GetContactDateTimeStampFormat():
  4725. global ContactDateTimeStampFormat
  4726. return ContactDateTimeStampFormat
  4727.  
  4728.  
  4729. def GetemtgufPeriscopeReworkEnabled():
  4730. global emtgufPeriscopeReworkEnabled
  4731. return emtgufPeriscopeReworkEnabled
  4732.  
  4733.  
  4734. def GetShowChalkBoardHotKey():
  4735. global ShowChalkBoardHotKey
  4736. return ShowChalkBoardHotKey
  4737.  
  4738.  
  4739. def GetIncreaseChalkBoardCountHotKey():
  4740. global IncreaseChalkBoardCountHotKey
  4741. return IncreaseChalkBoardCountHotKey
  4742.  
  4743.  
  4744. def GetOttosChalkBoardMessage():
  4745. global OttosChalkBoardMessage
  4746. return OttosChalkBoardMessage
  4747.  
  4748.  
  4749. def GetSinglePlayerMode():
  4750. global SinglePlayerMode
  4751. return SinglePlayerMode
  4752.  
  4753.  
  4754. def SetSinglePlayerMode( value ):
  4755. global SinglePlayerMode
  4756. SinglePlayerMode = value
  4757.  
  4758.  
  4759. def GetBitmapIndex_NotAvailable():
  4760. global BitmapIndex_NotAvailable
  4761. return BitmapIndex_NotAvailable
  4762.  
  4763.  
  4764. def GetBitmapIndex_NotSelected():
  4765. global BitmapIndex_NotSelected
  4766. return BitmapIndex_NotSelected
  4767.  
  4768.  
  4769. def GetBitmapIndex_Selected():
  4770. global BitmapIndex_Selected
  4771. return BitmapIndex_Selected
  4772.  
  4773.  
  4774. def GetBitmapIndex_MouseOver():
  4775. global BitmapIndex_MouseOver
  4776. return BitmapIndex_MouseOver
  4777.  
  4778.  
  4779. def GetNomographVisibleOnMiniMap():
  4780. global NomographVisibleOnMiniMap
  4781. return NomographVisibleOnMiniMap
  4782.  
  4783.  
  4784. def SetNomographVisibleOnMiniMap( value ):
  4785. global NomographVisibleOnMiniMap
  4786. NomographVisibleOnMiniMap = value
  4787.  
  4788.  
  4789. def GetNomographVisibleOnNavMap():
  4790. global NomographVisibleOnNavMap
  4791. return NomographVisibleOnNavMap
  4792.  
  4793.  
  4794. def SetNomographVisibleOnNavMap( value ):
  4795. global NomographVisibleOnNavMap
  4796. NomographVisibleOnNavMap = value
  4797.  
  4798.  
  4799. def GetFollowSelectedTargetWithCamera():
  4800. global FollowSelectedTargetWithCamera
  4801. return FollowSelectedTargetWithCamera
  4802.  
  4803.  
  4804. def SetFollowSelectedTargetWithCamera( value ):
  4805. global FollowSelectedTargetWithCamera
  4806. FollowSelectedTargetWithCamera = value
  4807.  
  4808.  
  4809. def GetAttackPeriscopeLevelSH5Handle():
  4810. global AttackPeriscopeLevelSH5Handle
  4811. return AttackPeriscopeLevelSH5Handle
  4812.  
  4813.  
  4814. def SetAttackPeriscopeLevelSH5Handle( value ):
  4815. global AttackPeriscopeLevelSH5Handle
  4816. AttackPeriscopeLevelSH5Handle = value
  4817.  
  4818.  
  4819. def GetObsPeriscopeLevelSH5Handle():
  4820. global ObsPeriscopeLevelSH5Handle
  4821. return ObsPeriscopeLevelSH5Handle
  4822.  
  4823.  
  4824. def SetObsPeriscopeLevelSH5Handle( value ):
  4825. global ObsPeriscopeLevelSH5Handle
  4826. ObsPeriscopeLevelSH5Handle = value
  4827.  
  4828.  
  4829. def GetAllowedToSelectTarget():
  4830. global AllowedToSelectTarget
  4831. return AllowedToSelectTarget
  4832.  
  4833.  
  4834. def SetAllowedToSelectTarget( value ):
  4835. global AllowedToSelectTarget
  4836. AllowedToSelectTarget = value
  4837.  
  4838.  
  4839. def GetAllowedToPhotographTarget():
  4840. global AllowedToPhotographTarget
  4841. return AllowedToPhotographTarget
  4842.  
  4843.  
  4844. def SetAllowedToPhotographTarget( value ):
  4845. global AllowedToPhotographTarget
  4846. AllowedToPhotographTarget = value
  4847.  
  4848.  
  4849. def GetSilentRunning():
  4850. global SilentRunning
  4851. return SilentRunning
  4852.  
  4853.  
  4854. def SetSilentRunning( value ):
  4855. global SilentRunning
  4856. SilentRunning = value
  4857.  
  4858.  
  4859. def GetSnorkelRaised():
  4860. global SnorkelRaised
  4861. return SnorkelRaised
  4862.  
  4863.  
  4864. def SetSnorkelRaised( value ):
  4865. global SnorkelRaised
  4866. SnorkelRaised = value
  4867.  
  4868.  
  4869. def GetBattlestationsActivated():
  4870. global BattlestationsActivated
  4871. return BattlestationsActivated
  4872.  
  4873.  
  4874. def SetBattlestationsActivated( value ):
  4875. global BattlestationsActivated
  4876. BattlestationsActivated = value
  4877.  
  4878.  
  4879. def GetSubIsUnderwater():
  4880. global SubIsUnderwater
  4881. return SubIsUnderwater
  4882.  
  4883.  
  4884. def SetSubIsUnderwater( value ):
  4885. global SubIsUnderwater
  4886. SubIsUnderwater = value
  4887.  
  4888.  
  4889. def GetNumberMessagesToKeepInMessageBox():
  4890. global NumberMessagesToKeepInMessageBox
  4891. return NumberMessagesToKeepInMessageBox
  4892.  
  4893.  
  4894. def SetNumberMessagesToKeepInMessageBox( value ):
  4895. global NumberMessagesToKeepInMessageBox
  4896. NumberMessagesToKeepInMessageBox = value
  4897.  
  4898.  
  4899. def GetTC1OnRadioMessageReceived():
  4900. global TC1OnRadioMessageReceived
  4901. return TC1OnRadioMessageReceived
  4902.  
  4903.  
  4904. def SetTC1OnRadioMessageReceived( value ):
  4905. global TC1OnRadioMessageReceived
  4906. TC1OnRadioMessageReceived = value
  4907.  
  4908.  
  4909. def GetShowNavMapTDC():
  4910. global ShowNavMapTDC
  4911. return ShowNavMapTDC
  4912.  
  4913.  
  4914. def SetShowNavMapTDC( value ):
  4915. global ShowNavMapTDC
  4916. ShowNavMapTDC = value
  4917.  
  4918.  
  4919. def GetAboveThisTCLevelShowClock():
  4920. global AboveThisTCLevelShowClock
  4921. return AboveThisTCLevelShowClock
  4922.  
  4923.  
  4924. def SetAboveThisTCLevelShowClock( value ):
  4925. global AboveThisTCLevelShowClock
  4926. AboveThisTCLevelShowClock = value
  4927.  
  4928.  
  4929. def GetBelowThisDepthDontReceiveRadio():
  4930. global BelowThisDepthDontReceiveRadio
  4931. return BelowThisDepthDontReceiveRadio
  4932.  
  4933.  
  4934. def SetBelowThisDepthDontReceiveRadio( value ):
  4935. global BelowThisDepthDontReceiveRadio
  4936. BelowThisDepthDontReceiveRadio = value
  4937.  
  4938.  
  4939. def GetMaxRadioContactRange():
  4940. global MaxRadioContactRange
  4941. return MaxRadioContactRange
  4942.  
  4943.  
  4944. def SetMaxRadioContactRange( value ):
  4945. global MaxRadioContactRange
  4946. MaxRadioContactRange = value
  4947.  
  4948.  
  4949. def GetRadioContactReportsAlwaysClipped():
  4950. global RadioContactReportsAlwaysClipped
  4951. return RadioContactReportsAlwaysClipped
  4952.  
  4953.  
  4954. def SetRadioContactReportsAlwaysClipped( value ):
  4955. global RadioContactReportsAlwaysClipped
  4956. RadioContactReportsAlwaysClipped = value
  4957.  
  4958.  
  4959. def GetShipsJournal():
  4960. global ShipsJournal
  4961. return ShipsJournal
  4962.  
  4963.  
  4964. def SetShipsJournal( value ):
  4965. global ShipsJournal
  4966. ShipsJournal = value
  4967.  
  4968.  
  4969. def GetUboatHullNumber():
  4970. global UboatHullNumber
  4971. return UboatHullNumber
  4972.  
  4973.  
  4974. def SetUboatHullNumber( value ):
  4975. global UboatHullNumber
  4976. UboatHullNumber = value
  4977.  
  4978.  
  4979. def GetUboatCaptainName():
  4980. global UboatCaptainName
  4981. return UboatCaptainName
  4982.  
  4983.  
  4984. def SetUboatCaptainName( value ):
  4985. global UboatCaptainName
  4986. UboatCaptainName = value
  4987.  
  4988.  
  4989. def GetRadioMessages():
  4990. global RadioMessages
  4991. return RadioMessages
  4992.  
  4993.  
  4994. def GetOfficersPinnedToBottomOfScreen():
  4995. global OfficersPinnedToBottomOfScreen
  4996. return OfficersPinnedToBottomOfScreen
  4997.  
  4998.  
  4999. def SetOfficersPinnedToBottomOfScreen( value ):
  5000. global OfficersPinnedToBottomOfScreen
  5001. OfficersPinnedToBottomOfScreen = value
  5002.  
  5003.  
  5004. def GetTAIEnabledInGame():
  5005. global TAIEnabledInGame
  5006. return TAIEnabledInGame
  5007.  
  5008.  
  5009. def SetTAIEnabledInGame( value ):
  5010. global TAIEnabledInGame
  5011. TAIEnabledInGame = value
  5012.  
  5013.  
  5014. def GetBinocularCrosshairEnabled():
  5015. global BinocularCrosshairEnabled
  5016. return BinocularCrosshairEnabled
  5017.  
  5018.  
  5019. def SetBinocularCrosshairEnabled( value ):
  5020. global BinocularCrosshairEnabled
  5021. BinocularCrosshairEnabled = value
  5022.  
  5023.  
  5024. def GetIgnoreNewLogMessages():
  5025. global IgnoreNewLogMessages
  5026. return IgnoreNewLogMessages
  5027.  
  5028.  
  5029. def SetIgnoreNewLogMessages( value ):
  5030. global IgnoreNewLogMessages
  5031. IgnoreNewLogMessages = value
  5032.  
  5033.  
  5034. def GetShowContactsActualSpeed():
  5035. global ShowContactsActualSpeed
  5036. return ShowContactsActualSpeed
  5037.  
  5038.  
  5039. def SetShowContactsActualSpeed( value ):
  5040. global ShowContactsActualSpeed
  5041. ShowContactsActualSpeed = value
  5042.  
  5043.  
  5044. def GetRangeStartUpdatingContacts():
  5045. global RangeStartUpdatingContacts
  5046. return RangeStartUpdatingContacts
  5047.  
  5048.  
  5049. def SetRangeStartUpdatingContacts( value ):
  5050. global RangeStartUpdatingContacts
  5051. RangeStartUpdatingContacts = value
  5052.  
  5053.  
  5054. def GetTC1OnNewRadioMessage():
  5055. global TC1OnNewRadioMessage
  5056. return TC1OnNewRadioMessage
  5057.  
  5058.  
  5059. def SetTC1OnNewRadioMessage( value ):
  5060. global TC1OnNewRadioMessage
  5061. TC1OnNewRadioMessage = value
  5062.  
  5063.  
  5064. def GetRangeShipSendingSubSightedMessage():
  5065. global RangeShipSendingSubSightedMessage
  5066. return RangeShipSendingSubSightedMessage
  5067.  
  5068.  
  5069. def SetRangeShipSendingSubSightedMessage( value ):
  5070. global RangeShipSendingSubSightedMessage
  5071. RangeShipSendingSubSightedMessage = value
  5072.  
  5073.  
  5074. def GetInformRadioMessages():
  5075. global InformRadioMessages
  5076. return InformRadioMessages
  5077.  
  5078.  
  5079. def SetInformRadioMessages( value ):
  5080. global InformRadioMessages
  5081. InformRadioMessages = value
  5082.  
  5083.  
  5084. def GetInformSubSightedMessages():
  5085. global InformSubSightedMessages
  5086. return InformSubSightedMessages
  5087.  
  5088.  
  5089. def SetInformSubSightedMessages( value ):
  5090. global InformSubSightedMessages
  5091. InformSubSightedMessages = value
  5092.  
  5093.  
  5094. def GetInformBDUMessages():
  5095. global InformBDUMessages
  5096. return InformBDUMessages
  5097.  
  5098.  
  5099. def SetInformBDUMessages( value ):
  5100. global InformBDUMessages
  5101. InformBDUMessages = value
  5102.  
  5103.  
  5104. def GetInformDestroyedMessages():
  5105. global InformDestroyedMessages
  5106. return InformDestroyedMessages
  5107.  
  5108.  
  5109. def SetInformDestroyedMessages( value ):
  5110. global InformDestroyedMessages
  5111. InformDestroyedMessages = value
  5112.  
  5113.  
  5114. def GetRadioMessagesInterceptChance():
  5115. global RadioMessagesInterceptChance
  5116. return RadioMessagesInterceptChance
  5117.  
  5118.  
  5119. def GetRadioMessagesFlashTime():
  5120. global RadioMessagesFlashTime
  5121. return RadioMessagesFlashTime
  5122.  
  5123.  
  5124. def GetRadioMessagesHotKey():
  5125. global RadioMessagesHotKey
  5126. return RadioMessagesHotKey
  5127.  
  5128.  
  5129. def GetShowContactsActualCourse():
  5130. global ShowContactsActualCourse
  5131. return ShowContactsActualCourse
  5132.  
  5133.  
  5134. def SetShowContactsActualCourse( value ):
  5135. global ShowContactsActualCourse
  5136. ShowContactsActualCourse = value
  5137.  
  5138.  
  5139. def GetGameStartDate():
  5140. global GameStartDate
  5141. return GameStartDate
  5142.  
  5143.  
  5144. def SetGameStartDate( value ):
  5145. global GameStartDate
  5146. GameStartDate = value
  5147.  
  5148.  
  5149. def GetSH5InstallPath():
  5150. global SH5InstallPath
  5151. return SH5InstallPath
  5152.  
  5153.  
  5154. def SetSH5InstallPath( value ):
  5155. global SH5InstallPath
  5156. SH5InstallPath = value
  5157.  
  5158.  
  5159. def GetUserOptionsFilePathname():
  5160. global UserOptionsFilePathname
  5161. global SH5InstallPath
  5162. path = SH5InstallPath + "\\" + UserOptionsFilePathname
  5163. return path
  5164.  
  5165.  
  5166. def GetAdditionalInfoSeaImagesPath():
  5167. global SH5InstallPath
  5168. path = SH5InstallPath + "\\data\\menu\\gui\\Additional info sea images"
  5169. return path
  5170.  
  5171.  
  5172. def GetShipsJournalPath():
  5173. global ShipsJournalPath
  5174. global SH5InstallPath
  5175. path = SH5InstallPath + "\\" + ShipsJournalPath
  5176. return path
  5177.  
  5178.  
  5179. def GetShipsJournalFile():
  5180. global ShipsJournalFile
  5181. return ShipsJournalFile
  5182.  
  5183.  
  5184. def SetShipsJournalFile( value ):
  5185. global ShipsJournalFile
  5186. if value != None:
  5187. if value[ len( value ) - 1 ] == "\\":
  5188. value = value[ 0 : len( value ) - 1 ]
  5189. ShipsJournalFile = value
  5190.  
  5191.  
  5192. def GetShipsJournalChanged():
  5193. global ShipsJournalChanged
  5194. return ShipsJournalChanged
  5195.  
  5196.  
  5197. def SetShipsJournalChanged( value ):
  5198. global ShipsJournalChanged
  5199. ShipsJournalChanged = value
  5200.  
  5201.  
  5202. def GetTutorialsPath():
  5203. global TutorialsPath
  5204. global SH5InstallPath
  5205. path = SH5InstallPath + "\\" + TutorialsPath
  5206. return path
  5207.  
  5208.  
  5209. def GetTutorialToStart():
  5210. global TutorialToStart
  5211. return TutorialToStart
  5212.  
  5213.  
  5214. def SetTutorialToStart( value ):
  5215. global TutorialToStart
  5216. TutorialToStart = value
  5217.  
  5218.  
  5219. def GetTutorialMissionName():
  5220. global TutorialMissionName
  5221. return TutorialMissionName
  5222.  
  5223.  
  5224. def SetTutorialMissionName( value ):
  5225. global TutorialMissionName
  5226. TutorialMissionName = value
  5227.  
  5228.  
  5229. def GetTutorialImagePath():
  5230. global SH5InstallPath
  5231. path = SH5InstallPath + "\\data\\Menu\\Gui\\Tutorial Images"
  5232. return path
  5233.  
  5234.  
  5235. def GetTutorialImageName():
  5236. return "TutorialImage.dds"
  5237.  
  5238.  
  5239. def GetAutomationPath():
  5240. global AutomationPath
  5241. global SH5InstallPath
  5242. path = SH5InstallPath + "\\" + AutomationPath
  5243. return path
  5244.  
  5245.  
  5246.  
  5247. def GetMagicString():
  5248. global MagicString
  5249. return MagicString
  5250.  
  5251.  
  5252. def GetPeriscopeLevelSH5Visible():
  5253. global PeriscopeLevelSH5Visible
  5254. return PeriscopeLevelSH5Visible
  5255.  
  5256.  
  5257. def SetPeriscopeLevelSH5Visible( value ):
  5258. global PeriscopeLevelSH5Visible
  5259. PeriscopeLevelSH5Visible = value
  5260.  
  5261.  
  5262. def GetDepthAndMapToolsBarsVisible():
  5263. global DepthAndMapToolsBarsVisible
  5264. return DepthAndMapToolsBarsVisible
  5265.  
  5266.  
  5267. def SetDepthAndMapToolsBarsVisible( value ):
  5268. global DepthAndMapToolsBarsVisible
  5269. DepthAndMapToolsBarsVisible = value
  5270.  
  5271.  
  5272. def GetJournalEntryIntervalTime():
  5273. global JournalEntryIntervalTime
  5274. return JournalEntryIntervalTime
  5275.  
  5276.  
  5277. def SetJournalEntryIntervalTime( value ):
  5278. global JournalEntryIntervalTime
  5279. JournalEntryIntervalTime = value
  5280.  
  5281.  
  5282. def GetJournalEntryWithSubsDataIntervalTime():
  5283. global JournalEntryWithSubsDataIntervalTime
  5284. return JournalEntryWithSubsDataIntervalTime
  5285.  
  5286.  
  5287. def SetJournalEntryWithSubsDataIntervalTime( value ):
  5288. global JournalEntryWithSubsDataIntervalTime
  5289. JournalEntryWithSubsDataIntervalTime = value
  5290.  
  5291.  
  5292. def GetWatchOfficerCheckForContactsOnTCxSet():
  5293. global WatchOfficerCheckForContactsOnTCxSet
  5294. return WatchOfficerCheckForContactsOnTCxSet
  5295.  
  5296.  
  5297. def SetWatchOfficerCheckForContactsOnTCxSet( value ):
  5298. global WatchOfficerCheckForContactsOnTCxSet
  5299. WatchOfficerCheckForContactsOnTCxSet = value;
  5300.  
  5301.  
  5302. def GetAutomaticallySwitchBatteryFuelLevels():
  5303. global AutomaticallySwitchBatteryFuelLevels
  5304. return AutomaticallySwitchBatteryFuelLevels
  5305.  
  5306.  
  5307. def GetAutomaticallySwitchBackToBatteryFuelLevelTD():
  5308. global AutomaticallySwitchBackToBatteryFuelLevelTD
  5309. return AutomaticallySwitchBackToBatteryFuelLevelTD
  5310.  
  5311.  
  5312. def GetShipsJournalLogging():
  5313. global ShipsJournalLogging
  5314. return ShipsJournalLogging
  5315.  
  5316.  
  5317. def SetShipsJournalLogging( value ):
  5318. global ShipsJournalLogging
  5319. ShipsJournalLogging = value
  5320.  
  5321.  
  5322. def GetShipsJournalHotKey():
  5323. global ShipsJournalHotKey
  5324. return ShipsJournalHotKey
  5325.  
  5326.  
  5327. def GetSelectedTorpTubes():
  5328. global SelectedTorpTubes
  5329. return SelectedTorpTubes
  5330.  
  5331.  
  5332. def SetSelectedTorpTubes( value ):
  5333. global SelectedTorpTubes
  5334. SelectedTorpTubes = value
  5335.  
  5336.  
  5337. def GetTorpDoorsStatus():
  5338. global TorpDoorsStatus
  5339. return TorpDoorsStatus
  5340.  
  5341.  
  5342. def SetTorpDoorsStatus( value ):
  5343. global TorpDoorsStatus
  5344. TorpDoorsStatus = value
  5345.  
  5346.  
  5347. def GetTorpDoorsEnabled():
  5348. global TorpDoorsEnabled
  5349. return TorpDoorsEnabled
  5350.  
  5351.  
  5352. def SetTorpDoorsEnabled( value ):
  5353. global TorpDoorsEnabled
  5354. TorpDoorsEnabled = value
  5355.  
  5356.  
  5357. def GetRealisticTorpedoFirings():
  5358. global RealisticTorpedoFirings
  5359. return RealisticTorpedoFirings
  5360.  
  5361.  
  5362. def SetRealisticTorpedoFirings( value ):
  5363. global RealisticTorpedoFirings
  5364. RealisticTorpedoFirings = value
  5365.  
  5366.  
  5367. def GetRealisticOpenTubeTDBase():
  5368. global RealisticOpenTubeTDBase
  5369. return RealisticOpenTubeTDBase
  5370.  
  5371.  
  5372. def SetRealisticOpenTubeTDBase( value ):
  5373. global RealisticOpenTubeTDBase
  5374. RealisticOpenTubeTDBase = value
  5375.  
  5376.  
  5377. def GetWaterLevelTD():
  5378. global WaterLevelTD
  5379. return WaterLevelTD
  5380.  
  5381.  
  5382. def SetWaterLevelTD( value ):
  5383. global WaterLevelTD
  5384. WaterLevelTD = value
  5385.  
  5386.  
  5387. def GetSwitchToRechargePropulsionTDBase():
  5388. global SwitchToRechargePropulsionTDBase
  5389. return SwitchToRechargePropulsionTDBase
  5390.  
  5391.  
  5392. def SetSwitchToRechargePropulsionTDBase( value ):
  5393. global SwitchToRechargePropulsionTDBase
  5394. SwitchToRechargePropulsionTDBase = value
  5395.  
  5396.  
  5397. def GetSwitchToStdPropulsionTDBase():
  5398. global SwitchToStdPropulsionTDBase
  5399. return SwitchToStdPropulsionTDBase
  5400.  
  5401.  
  5402. def SetSwitchToStdPropulsionTDBase( value ):
  5403. global SwitchToStdPropulsionTDBase
  5404. SwitchToStdPropulsionTDBase = value
  5405.  
  5406.  
  5407. def GetSH5EHeadingRudderDialVisible():
  5408. global SH5EHeadingRudderDialVisible
  5409. return SH5EHeadingRudderDialVisible
  5410.  
  5411.  
  5412. def SetSH5EHeadingRudderDialVisible( value ):
  5413. global SH5EHeadingRudderDialVisible
  5414. SH5EHeadingRudderDialVisible = value
  5415.  
  5416.  
  5417. def GetCurrentlySelectedTube():
  5418. global CurrentlySelectedTube
  5419. return CurrentlySelectedTube
  5420.  
  5421.  
  5422. def SetCurrentlySelectedTube( value ):
  5423. global CurrentlySelectedTube
  5424. CurrentlySelectedTube = value
  5425.  
  5426.  
  5427. def GetInSalvoMode():
  5428. global InSalvoMode
  5429. return InSalvoMode
  5430.  
  5431.  
  5432. def SetInSalvoMode( value ):
  5433. global InSalvoMode
  5434. InSalvoMode = value
  5435.  
  5436.  
  5437. def GetAutomaticallyRaiseAttackScope():
  5438. global AutomaticallyRaiseAttackScope
  5439. return AutomaticallyRaiseAttackScope
  5440.  
  5441.  
  5442. def GetRealisticTorpFiringInProgress():
  5443. global RealisticTorpFiringInProgress
  5444. return RealisticTorpFiringInProgress
  5445.  
  5446.  
  5447. def SetRealisticTorpFiringInProgress( value ):
  5448. global RealisticTorpFiringInProgress
  5449. RealisticTorpFiringInProgress = value
  5450.  
  5451.  
  5452. def GetAutomaticallyFullyLowerAttackScope():
  5453. global AutomaticallyFullyLowerAttackScope
  5454. return AutomaticallyFullyLowerAttackScope
  5455.  
  5456.  
  5457. def GetAutomaticallyFullyLowerObsScope():
  5458. global AutomaticallyFullyLowerObsScope
  5459. return AutomaticallyFullyLowerObsScope
  5460.  
  5461.  
  5462. def GetXOTDCDialogAllowedToPop():
  5463. global XOTDCDialogAllowedToPop
  5464. return XOTDCDialogAllowedToPop
  5465.  
  5466.  
  5467. def GetCrashDiveKey():
  5468. global CrashDiveKey
  5469. return CrashDiveKey
  5470.  
  5471.  
  5472. def GetXOTDCManualTargetingEnforced():
  5473. global XOTDCManualTargetingEnforced
  5474. return XOTDCManualTargetingEnforced
  5475.  
  5476.  
  5477. def GetTDCIsOn():
  5478. global TDCIsOn
  5479. return TDCIsOn
  5480.  
  5481.  
  5482. def SetTDCIsOn( value ):
  5483. global TDCIsOn
  5484. TDCIsOn = value
  5485.  
  5486.  
  5487. def GetAutomaticallyOrderRechargeModeUponSurfacing():
  5488. global AutomaticallyOrderRechargeModeUponSurfacing
  5489. return AutomaticallyOrderRechargeModeUponSurfacing
  5490.  
  5491.  
  5492. def GetAutomaticallyOrderRechargeModeWhenSnorkeling():
  5493. global AutomaticallyOrderRechargeModeWhenSnorkeling
  5494. return AutomaticallyOrderRechargeModeWhenSnorkeling
  5495.  
  5496.  
  5497. def GetAutoShowClockOnFollowTarget():
  5498. global AutoShowClockOnFollowTarget
  5499. return AutoShowClockOnFollowTarget
  5500.  
  5501.  
  5502. def GetAutoShowClockOnTorpFire():
  5503. global AutoShowClockOnTorpFire
  5504. return AutoShowClockOnTorpFire
  5505.  
  5506.  
  5507. def GetNavigatorAssistAOBSpeedCalcs():
  5508. global NavigatorAssistAOBSpeedCalcs
  5509. return NavigatorAssistAOBSpeedCalcs
  5510.  
  5511.  
  5512. def GetTorpedoAutoloadingEnabled():
  5513. global TorpedoAutoloadingEnabled
  5514. return TorpedoAutoloadingEnabled
  5515.  
  5516.  
  5517. def GetMaxSpeedWhenSnorkelRaised():
  5518. global MaxSpeedWhenSnorkelRaised
  5519. return MaxSpeedWhenSnorkelRaised
  5520.  
  5521.  
  5522. def GetUpdateJournalWithSubsPosition():
  5523. global UpdateJournalWithSubsPosition
  5524. return UpdateJournalWithSubsPosition
  5525.  
  5526.  
  5527. def GetTAIInitialWidth():
  5528. global TAIInitialWidth
  5529. return TAIInitialWidth
  5530.  
  5531.  
  5532. def GetTAIInitialHeight():
  5533. global TAIInitialHeight
  5534. return TAIInitialHeight
  5535.  
  5536.  
  5537. def GetNavCalcTimeAOBSpeedFromRangeMeasurementsBase():
  5538. global NavCalcTimeAOBSpeedFromRangeMeasurementsBase
  5539. return NavCalcTimeAOBSpeedFromRangeMeasurementsBase
  5540.  
  5541.  
  5542. def GetNavCalcTimeSpeedFromTimeMeasurementsBase():
  5543. global NavCalcTimeSpeedFromTimeMeasurementsBase
  5544. return NavCalcTimeSpeedFromTimeMeasurementsBase
  5545.  
  5546.  
  5547. def GetAttackFullyLowerButtonLeavesStationForBridge():
  5548. global AttackFullyLowerButtonLeavesStationForBridge
  5549. return AttackFullyLowerButtonLeavesStationForBridge
  5550.  
  5551.  
  5552. def GetDiveTeleportToStation():
  5553. global DiveTeleportToStation
  5554. return DiveTeleportToStation
  5555.  
  5556.  
  5557. def GetAttackRAOBFEnabled():
  5558. global AttackRAOBFEnabled
  5559. return AttackRAOBFEnabled
  5560.  
  5561.  
  5562. def SetAttackRAOBFEnabled( value ):
  5563. global AttackRAOBFEnabled
  5564. AttackRAOBFEnabled = value
  5565.  
  5566.  
  5567. def GetObsRAOBFEnabled():
  5568. global ObsRAOBFEnabled
  5569. return ObsRAOBFEnabled
  5570.  
  5571.  
  5572. def SetObsRAOBFEnabled( value ):
  5573. global ObsRAOBFEnabled
  5574. ObsRAOBFEnabled = value
  5575.  
  5576.  
  5577. def GetUZORAOBFEnabled():
  5578. global UZORAOBFEnabled
  5579. return UZORAOBFEnabled
  5580.  
  5581.  
  5582. def SetUZORAOBFEnabled( value ):
  5583. global UZORAOBFEnabled
  5584. UZORAOBFEnabled = value
  5585.  
  5586.  
  5587. def GetAttackAttackDiskEnabled():
  5588. global AttackAttackDiskEnabled
  5589. return AttackAttackDiskEnabled
  5590.  
  5591.  
  5592. def SetAttackAttackDiskEnabled( value ):
  5593. global AttackAttackDiskEnabled
  5594. AttackAttackDiskEnabled = value
  5595.  
  5596.  
  5597. def GetObsAttackDiskEnabled():
  5598. global ObsAttackDiskEnabled
  5599. return ObsAttackDiskEnabled
  5600.  
  5601.  
  5602. def SetObsAttackDiskEnabled( value ):
  5603. global ObsAttackDiskEnabled
  5604. ObsAttackDiskEnabled = value
  5605.  
  5606.  
  5607. def GetUZOAttackDiskEnabled():
  5608. global UZOAttackDiskEnabled
  5609. return UZOAttackDiskEnabled
  5610.  
  5611.  
  5612. def SetUZOAttackDiskEnabled( value ):
  5613. global UZOAttackDiskEnabled
  5614. UZOAttackDiskEnabled = value
  5615.  
  5616.  
  5617. def GetNavMapAttackDiskEnabled():
  5618. global NavMapAttackDiskEnabled
  5619. return NavMapAttackDiskEnabled
  5620.  
  5621.  
  5622. def SetNavMapAttackDiskEnabled( value ):
  5623. global NavMapAttackDiskEnabled
  5624. NavMapAttackDiskEnabled = value
  5625.  
  5626.  
  5627. def GetMessageBoxIsDraggable():
  5628. global MessageBoxIsDraggable
  5629. return MessageBoxIsDraggable
  5630.  
  5631.  
  5632. def GetHideTDCDialsWhenUsingRAOBF():
  5633. global HideTDCDialsWhenUsingRAOBF
  5634. return HideTDCDialsWhenUsingRAOBF
  5635.  
  5636.  
  5637. def GetScopesDepthIndicatorScrolls():
  5638. global ScopesDepthIndicatorScrolls
  5639. return ScopesDepthIndicatorScrolls
  5640.  
  5641.  
  5642. def GetScopesDepthIndicatorScrollsTD():
  5643. global ScopesDepthIndicatorScrollsTD
  5644. return ScopesDepthIndicatorScrollsTD
  5645.  
  5646.  
  5647. def GetScopesTorpedoBoxScrolls():
  5648. global ScopesTorpedoBoxScrolls
  5649. return ScopesTorpedoBoxScrolls
  5650.  
  5651.  
  5652. def GetScopesTorpedoBoxScrollsTD():
  5653. global ScopesTorpedoBoxScrollsTD
  5654. return ScopesTorpedoBoxScrollsTD
  5655.  
  5656.  
  5657. def GetTCxOnMessageBoxText():
  5658. global TCxOnMessageBoxText
  5659. return TCxOnMessageBoxText
  5660.  
  5661.  
  5662. def SetTCxOnMessageBoxText( value ):
  5663. global TCxOnMessageBoxText
  5664. TCxOnMessageBoxText = value
  5665.  
  5666.  
  5667. def GetTCxOnMessageBoxTextNumbers():
  5668. global TCxOnMessageBoxTextNumbers
  5669. return TCxOnMessageBoxTextNumbers
  5670.  
  5671.  
  5672. def GetTCxOnMessageBoxTextDesiredTCLevel():
  5673. global TCxOnMessageBoxTextDesiredTCLevel
  5674. return TCxOnMessageBoxTextDesiredTCLevel
  5675.  
  5676.  
  5677. def GetAutomation():
  5678. global Automation
  5679. return Automation
  5680.  
  5681.  
  5682. def GetAutomationIDForTutorial():
  5683. global AutomationIDForTutorial
  5684. return AutomationIDForTutorial
  5685.  
  5686.  
  5687. def SetAutomationIDForTutorial( value ):
  5688. global AutomationIDForTutorial
  5689. AutomationIDForTutorial = value
  5690.  
  5691.  
  5692. def GetAutomationHotKey():
  5693. global AutomationHotKey
  5694. return AutomationHotKey
  5695.  
  5696.  
  5697. def GetRadarSweepMode():
  5698. global RadarSweepMode
  5699. return RadarSweepMode
  5700.  
  5701.  
  5702. def SetRadarSweepMode( value ):
  5703. global RadarSweepMode
  5704. RadarSweepMode = value
  5705.  
  5706.  
  5707. def GetRadarMode():
  5708. global RadarMode
  5709. return RadarMode
  5710.  
  5711.  
  5712. def SetRadarMode( value ):
  5713. global RadarMode
  5714. RadarMode = value
  5715.  
  5716.  
  5717. def GetRadarRangeMode():
  5718. global RadarRangeMode
  5719. return RadarRangeMode
  5720.  
  5721.  
  5722. def SetRadarRangeMode( value ):
  5723. global RadarRangeMode
  5724. RadarRangeMode = value
  5725.  
  5726.  
  5727. def GetAutomationDebuggingEnabled():
  5728. global AutomationDebuggingEnabled
  5729. return AutomationDebuggingEnabled
  5730.  
  5731.  
  5732. def GetDelayNewSpeedThrottleCommand():
  5733. global DelayNewSpeedThrottleCommand
  5734. return DelayNewSpeedThrottleCommand
  5735.  
  5736.  
  5737. def GetNewSpeedThrottleDelayMin():
  5738. global NewSpeedThrottleDelayMin
  5739. return int( NewSpeedThrottleDelayMin )
  5740.  
  5741.  
  5742. def GetNewSpeedThrottleDelayMax():
  5743. global NewSpeedThrottleDelayMax
  5744. return int( NewSpeedThrottleDelayMax )
  5745.  
  5746.  
  5747. def GetTC1OnAnyMessageBoxText():
  5748. global TC1OnAnyMessageBoxText
  5749. return TC1OnAnyMessageBoxText
  5750.  
  5751.  
  5752. def SetTC1OnAnyMessageBoxText( value ):
  5753. global TC1OnAnyMessageBoxText
  5754. TC1OnAnyMessageBoxText = value
  5755.  
  5756.  
  5757. def GetMessageBoxScrolls():
  5758. global MessageBoxScrolls
  5759. return MessageBoxScrolls
  5760.  
  5761.  
  5762. def GetMessageBoxHideTD():
  5763. global MessageBoxHideTD
  5764. return MessageBoxHideTD
  5765.  
  5766.  
  5767. def GetCrewOnDeckMode():
  5768. global CrewOnDeckMode
  5769. return CrewOnDeckMode
  5770.  
  5771.  
  5772. def SetCrewOnDeckMode( value ):
  5773. global CrewOnDeckMode
  5774. CrewOnDeckMode = value
  5775.  
  5776.  
  5777. def GetDGunFireMode():
  5778. global DGunFireMode
  5779. return DGunFireMode
  5780.  
  5781.  
  5782. def SetDGunFireMode( value ):
  5783. global DGunFireMode
  5784. DGunFireMode = value
  5785.  
  5786.  
  5787. def GetDGunRangeMode():
  5788. global DGunRangeMode
  5789. return DGunRangeMode
  5790.  
  5791.  
  5792. def SetDGunRangeMode( value ):
  5793. global DGunRangeMode
  5794. DGunRangeMode = value
  5795.  
  5796.  
  5797. def GetDGunAimMode():
  5798. global DGunAimMode
  5799. return DGunAimMode
  5800.  
  5801.  
  5802. def SetDGunAimMode( value ):
  5803. global DGunAimMode
  5804. DGunAimMode = value
  5805.  
  5806.  
  5807. def GetAAGunFireMode():
  5808. global AAGunFireMode
  5809. return AAGunFireMode
  5810.  
  5811.  
  5812. def SetAAGunFireMode( value ):
  5813. global AAGunFireMode
  5814. AAGunFireMode = value
  5815.  
  5816.  
  5817. def GetAAGunRangeMode():
  5818. global AAGunRangeMode
  5819. return AAGunRangeMode
  5820.  
  5821.  
  5822. def SetAAGunRangeMode( value ):
  5823. global AAGunRangeMode
  5824. AAGunRangeMode = value
  5825.  
  5826.  
  5827. def GetAAGunPriorityMode():
  5828. global AAGunPriorityMode
  5829. return AAGunPriorityMode
  5830.  
  5831.  
  5832. def SetAAGunPriorityMode( value ):
  5833. global AAGunPriorityMode
  5834. AAGunPriorityMode = value
  5835.  
  5836.  
  5837. def GetAAGunAimMode():
  5838. global AAGunAimMode
  5839. return AAGunAimMode
  5840.  
  5841.  
  5842. def SetAAGunAimMode( value ):
  5843. global AAGunAimMode
  5844. AAGunAimMode = value
  5845.  
  5846.  
  5847. def GetRealNavigation():
  5848. global RealNavigation
  5849. return RealNavigation
  5850.  
  5851.  
  5852. def GetSubsCurrentPositionVisible():
  5853. global subscurrentpositionvisible
  5854. return subscurrentpositionvisible
  5855.  
  5856.  
  5857. def SetSubsCurrentPositionVisible( value ):
  5858. global subscurrentpositionvisible
  5859. subscurrentpositionvisible = value
  5860.  
  5861.  
  5862. def GetHeadingBarIsExpanded():
  5863. global HeadingBarIsExpanded
  5864. return HeadingBarIsExpanded
  5865.  
  5866.  
  5867. def GetHeadingBarStartAdvanced():
  5868. global HeadingBarStartAdvanced
  5869. return HeadingBarStartAdvanced
  5870.  
  5871.  
  5872. def GetAdvancedHudIsEnabled():
  5873. global AdvancedHudIsEnabled
  5874. return AdvancedHudIsEnabled
  5875.  
  5876.  
  5877. def GetMostFuelEfficientSpeed():
  5878. global MostFuelEfficientSpeed
  5879. return MostFuelEfficientSpeed
  5880.  
  5881.  
  5882. def GetTopRightBarsScroll():
  5883. global TopRightBarsScroll
  5884. return TopRightBarsScroll
  5885.  
  5886.  
  5887. def GetTopRightBarsHideTD():
  5888. global TopRightBarsHideTD
  5889. return TopRightBarsHideTD
  5890.  
  5891.  
  5892. def GetEssentialControlsScroll():
  5893. global EssentialControlsScroll
  5894. return EssentialControlsScroll
  5895.  
  5896.  
  5897. def GetEssentialControlsHideTD():
  5898. global EssentialControlsHideTD
  5899. return EssentialControlsHideTD
  5900.  
  5901.  
  5902. def GetCameraBarVisible():
  5903. global CameraBarVisible
  5904. return CameraBarVisible
  5905.  
  5906.  
  5907. def SetCameraBarVisible( value ):
  5908. global CameraBarVisible
  5909. CameraBarVisible = value
  5910.  
  5911.  
  5912. def GetCameraBarScrolls():
  5913. global CameraBarScrolls
  5914. return CameraBarScrolls
  5915.  
  5916.  
  5917. def GetWarningsScroll():
  5918. global WarningsScroll
  5919. return WarningsScroll
  5920.  
  5921.  
  5922. def SetWarningsScroll( value ):
  5923. global WarningsScroll
  5924. WarningsScroll = value
  5925.  
  5926.  
  5927. def GetDepthGroupBarVisible():
  5928. global DepthGroupBarVisible
  5929. return DepthGroupBarVisible
  5930.  
  5931.  
  5932. def SetDepthGroupBarVisible( value ):
  5933. global DepthGroupBarVisible
  5934. DepthGroupBarVisible = value
  5935.  
  5936.  
  5937. def GetMapToolsAsObjects():
  5938. global MapToolsAsObjects
  5939. return MapToolsAsObjects
  5940.  
  5941.  
  5942. def GetTCxOnContactDistanceEnabledTCLevel():
  5943. global TCxOnContactDistanceEnabledTCLevel
  5944. return TCxOnContactDistanceEnabledTCLevel
  5945.  
  5946.  
  5947. def SetTCxOnContactDistanceEnabledTCLevel( value ):
  5948. global TCxOnContactDistanceEnabledTCLevel
  5949. TCxOnContactDistanceEnabledTCLevel = value
  5950.  
  5951.  
  5952. def GetTCxOnContactDistanceRadius():
  5953. global TCxOnContactDistanceRadius
  5954. return TCxOnContactDistanceRadius
  5955.  
  5956.  
  5957. def SetTCxOnContactDistanceRadius( value ):
  5958. global TCxOnContactDistanceRadius
  5959. TCxOnContactDistanceRadius = value
  5960.  
  5961.  
  5962. def GetTCxOnContactDistanceTCLevel():
  5963. global TCxOnContactDistanceTCLevel
  5964. return TCxOnContactDistanceTCLevel
  5965.  
  5966.  
  5967. def SetTCxOnContactDistanceTCLevel( value ):
  5968. global TCxOnContactDistanceTCLevel
  5969. TCxOnContactDistanceTCLevel = value
  5970.  
  5971.  
  5972. def GetTravelModeEnabled():
  5973. global TravelModeEnabled
  5974. return TravelModeEnabled
  5975.  
  5976.  
  5977. def GetNavCelestialMaxCalcFixError():
  5978. global NavCelestialMaxCalcFixError
  5979. return NavCelestialMaxCalcFixError
  5980.  
  5981.  
  5982. def GetNavCelestialCalcFixMinTime():
  5983. global NavCelestialCalcFixMinTime
  5984. return NavCelestialCalcFixMinTime
  5985.  
  5986.  
  5987. def GetNavCelestialCalcFixMaxTime():
  5988. global NavCelestialCalcFixMaxTime
  5989. return NavCelestialCalcFixMaxTime
  5990.  
  5991.  
  5992. def GetNavShowPositionOnMapsAfterCalc():
  5993. global NavShowPositionOnMapsAfterCalc
  5994. return NavShowPositionOnMapsAfterCalc
  5995.  
  5996.  
  5997. def GetNavShowPositionOnMapsAfterCalcTime():
  5998. global NavShowPositionOnMapsAfterCalcTime
  5999. return NavShowPositionOnMapsAfterCalcTime
  6000.  
  6001.  
  6002. def GetNavDeadReckoningMaxCalcFixError():
  6003. global NavDeadReckoningMaxCalcFixError
  6004. return NavDeadReckoningMaxCalcFixError
  6005.  
  6006.  
  6007. def GetNavDeadReckoningMinCalcTime():
  6008. global NavDeadReckoningMinCalcTime
  6009. return NavDeadReckoningMinCalcTime
  6010.  
  6011.  
  6012. def GetNavDeadReckoningMaxCalcTime():
  6013. global NavDeadReckoningMaxCalcTime
  6014. return NavDeadReckoningMaxCalcTime
  6015.  
  6016. def GetDeleteMarksHotKey():
  6017. global DeleteMarksHotKey
  6018. return DeleteMarksHotKey
  6019.  
  6020.  
  6021. def GetRepositionMarksHotKey():
  6022. global RepositionMarksHotKey
  6023. return RepositionMarksHotKey
  6024.  
  6025.  
  6026. def GetEditMarksTextHotKey():
  6027. global EditMarksTextHotKey
  6028. return EditMarksTextHotKey
  6029.  
  6030.  
  6031. def GetEditMarksTextKeepExistingHotKey():
  6032. global EditMarksTextKeepExistingHotKey
  6033. return EditMarksTextKeepExistingHotKey
  6034.  
  6035.  
  6036. def GetSuperMarksColor():
  6037. global SuperMarksColor
  6038. return SuperMarksColor
  6039.  
  6040.  
  6041. def GetNavFixesColor():
  6042. global NavFixesColor
  6043. return NavFixesColor
  6044.  
  6045.  
  6046. def GetDestroyedMarksColor():
  6047. global DestroyedMarksColor
  6048. return DestroyedMarksColor
  6049.  
  6050.  
  6051. def GetDigitalClockStartsInLocalTime():
  6052. global DigitalClockStartsInLocalTime
  6053. return DigitalClockStartsInLocalTime
  6054.  
  6055.  
  6056. def GetSOANEnabled():
  6057. global SOANEnabled
  6058. return SOANEnabled
  6059.  
  6060.  
  6061. def SetSOANEnabled( value ):
  6062. global SOANEnabled
  6063. SOANEnabled = value
  6064.  
  6065.  
  6066. def GetAutoEnableChartsOpenSOANToIdentifiedUnit():
  6067. global AutoEnableChartsOpenSOANToIdentifiedUnit
  6068. return AutoEnableChartsOpenSOANToIdentifiedUnit
  6069.  
  6070.  
  6071. def GetChartsHotKey():
  6072. global ChartsHotKey
  6073. return ChartsHotKey
  6074.  
  6075.  
  6076. def GetUserChartsCategoriesStartExpanded():
  6077. global UserChartsCategoriesStartExpanded
  6078. return UserChartsCategoriesStartExpanded
  6079.  
  6080.  
  6081. def GetUserChartsChartsStartExpanded():
  6082. global UserChartsChartsStartExpanded
  6083. return UserChartsChartsStartExpanded
  6084.  
  6085.  
  6086. def GetMostFuelEfficientSpeedHotKey():
  6087. global MostFuelEfficientSpeedHotKey
  6088. return MostFuelEfficientSpeedHotKey
  6089.  
  6090.  
  6091. def GetAutomationActionMessagesDisplayed():
  6092. global AutomationActionMessagesDisplayed
  6093. return AutomationActionMessagesDisplayed
  6094.  
  6095.  
  6096. def GetAutomationScriptHotKey1():
  6097. global AutomationScriptHotKey1
  6098. return AutomationScriptHotKey1
  6099.  
  6100.  
  6101. def GetAutomationScriptHotKey2():
  6102. global AutomationScriptHotKey2
  6103. return AutomationScriptHotKey2
  6104.  
  6105.  
  6106. def GetAutomationScriptHotKey3():
  6107. global AutomationScriptHotKey3
  6108. return AutomationScriptHotKey3
  6109.  
  6110.  
  6111. def GetAutomationScriptHotKey4():
  6112. global AutomationScriptHotKey4
  6113. return AutomationScriptHotKey4
  6114.  
  6115.  
  6116. def GetNavigationFixes():
  6117. global navigationfixes
  6118. return navigationfixes
  6119.  
  6120.  
  6121. def SetNavigationFixes( value ):
  6122. global navigationfixes
  6123. navigationfixes = value
  6124.  
  6125.  
  6126. def GetSettingNavMapMarker():
  6127. global settingnavmapmarker
  6128. return settingnavmapmarker
  6129.  
  6130.  
  6131. def SetSettingNavMapMarker( value ):
  6132. global settingnavmapmarker
  6133. settingnavmapmarker = value
  6134.  
  6135.  
  6136. def GetMarksHaveKeyboard():
  6137. global markshavekeyboard
  6138. return markshavekeyboard
  6139.  
  6140.  
  6141. def SetMarksHaveKeyboard( value ):
  6142. global markshavekeyboard
  6143. markshavekeyboard = value
  6144.  
  6145.  
  6146. def GetNavFixRepositioning():
  6147. global navfixrepositioning
  6148. return navfixrepositioning
  6149.  
  6150.  
  6151. def SetNavFixRepositioning( value ):
  6152. global navfixrepositioning
  6153. navfixrepositioning = value
  6154.  
  6155.  
  6156. def GetTimeZoneModifier():
  6157. global timezonemodifier
  6158. return timezonemodifier
  6159.  
  6160.  
  6161. def SetTimeZoneModifier( value ):
  6162. global timezonemodifier
  6163. timezonemodifier = value
  6164.  
  6165.  
  6166. def GetSuperMarks():
  6167. global supermarks
  6168. return supermarks
  6169.  
  6170.  
  6171. def SetSuperMarks( value ):
  6172. global supermarks
  6173. supermarks = value
  6174.  
  6175.  
  6176. def GetSettingSuperMark():
  6177. global settingsupermark
  6178. return settingsupermark
  6179.  
  6180.  
  6181. def SetSettingSuperMark( value ):
  6182. global settingsupermark
  6183. settingsupermark = value
  6184.  
  6185.  
  6186. def GetSuperMarkRepositioning():
  6187. global supermarkrepositioning
  6188. return supermarkrepositioning
  6189.  
  6190.  
  6191. def SetSuperMarkRepositioning( value ):
  6192. global supermarkrepositioning
  6193. supermarkrepositioning = value
  6194.  
  6195.  
  6196. def GetSuperMarksToCreate():
  6197. global supermarkstocreate
  6198. return supermarkstocreate
  6199.  
  6200.  
  6201. def SetSuperMarksToCreate( value ):
  6202. global supermarkstocreate
  6203. supermarkstocreate = value
  6204.  
  6205.  
  6206. def GetNavFixesToCreate():
  6207. global navfixestocreate
  6208. return navfixestocreate
  6209.  
  6210.  
  6211. def SetNavFixesToCreate( value ):
  6212. global navfixestocreate
  6213. navfixestocreate = value
  6214.  
  6215.  
  6216. def GetDestroyedMarks():
  6217. global destroyedmarks
  6218. return destroyedmarks
  6219.  
  6220.  
  6221. def SetDestroyedMarks( value ):
  6222. global destroyedmarks
  6223. destroyedmarks = value
  6224.  
  6225.  
  6226. def GetTDWSound():
  6227. global tdwsound
  6228. return tdwsound
  6229.  
  6230.  
  6231. def GetTDWMouse():
  6232. global tdwmouse
  6233. return tdwmouse
  6234.  
  6235.  
  6236. def GetTDWSoan():
  6237. global tdwsoan
  6238. return tdwsoan
  6239.  
  6240.  
  6241. def GetSpeechEngineFound():
  6242. global SpeechEngineFound
  6243. return SpeechEngineFound
  6244.  
  6245.  
  6246. def SetSpeechEngineFound( value ):
  6247. global SpeechEngineFound
  6248. SpeechEngineFound = value
  6249.  
  6250.  
  6251. def GetTimeIsLocalTime():
  6252. global timeislocaltime
  6253. return timeislocaltime
  6254.  
  6255.  
  6256. def SetTimeIsLocalTime( value ):
  6257. global timeislocaltime
  6258. timeislocaltime = value
  6259.  
  6260.  
  6261. def GetTDWDestroyedMarks():
  6262. global tdwdestroyedmarks
  6263. return tdwdestroyedmarks
  6264.  
  6265.  
  6266. def GetHydroFollowContact():
  6267. global hydrofollowcontact
  6268. return hydrofollowcontact
  6269.  
  6270.  
  6271. def SetHydroFollowContact( value ):
  6272. global hydrofollowcontact
  6273. hydrofollowcontact = value
  6274. from Pagelayout import Pagelayout_HPTimer
  6275. if hydrofollowcontact == None or HydroFollowContactUpdateInterval == 0:
  6276. Pagelayout_HPTimer.RemoveItem( TimerID_HydroFollowContactBearing, -1 )
  6277. else:
  6278. Pagelayout_HPTimer.RemoveThenAddItem( TimerID_HydroFollowContactBearing, -1, HydroFollowContactUpdateInterval, True, True )
  6279. if hydrofollowcontact == None or HydroFollowContactDeltaBearing == 0:
  6280. Pagelayout_HPTimer.RemoveItem( TimerID_HydroFollowContactDeltaBearing, -1 )
  6281. else:
  6282. Pagelayout_HPTimer.RemoveThenAddItem( TimerID_HydroFollowContactDeltaBearing, -1, 1, True, True )
  6283. if hydrofollowcontact != None and HydroFollowContactDeltaBearing != 0:
  6284. from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
  6285. sub = PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact
  6286. angle = sub.HeadingDEGToContact( GetHydroFollowContact() ) - TDWUtils.GetContactHeading( sub.HeadingDEG ) + 0.25
  6287. while angle < 0:
  6288. angle += 360
  6289. hydrofollowcontact[ "DeltaBearingToSub" ] = angle
  6290.  
  6291.  
  6292. def GetHydroFollowContactUpdateInterval():
  6293. global HydroFollowContactUpdateInterval
  6294. return HydroFollowContactUpdateInterval
  6295.  
  6296.  
  6297. def SetHydroFollowContactUpdateInterval( value ):
  6298. global HydroFollowContactUpdateInterval
  6299. HydroFollowContactUpdateInterval = value
  6300.  
  6301.  
  6302. def GetHydroFollowContactDeltaBearing():
  6303. global HydroFollowContactDeltaBearing
  6304. return HydroFollowContactDeltaBearing
  6305.  
  6306.  
  6307. def SetHydroFollowContactDeltaBearing( value ):
  6308. global HydroFollowContactDeltaBearing
  6309. HydroFollowContactDeltaBearing = value
  6310.  
  6311.  
  6312. def GetHydroFollowNearestContactSweepRange():
  6313. global HydroFollowNearestContactSweepRange
  6314. return HydroFollowNearestContactSweepRange
  6315.  
  6316.  
  6317. def SetHydroFollowNearestContactSweepRange( value ):
  6318. global HydroFollowNearestContactSweepRange
  6319. HydroFollowNearestContactSweepRange = value
  6320.  
  6321.  
  6322. def GetHydroFollowNearestContactMaxRange():
  6323. global HydroFollowNearestContactMaxRange
  6324. return HydroFollowNearestContactMaxRange
  6325.  
  6326.  
  6327. def SetHydroFollowNearestContactMaxRange( value ):
  6328. global HydroFollowNearestContactMaxRange
  6329. HydroFollowNearestContactMaxRange = value
  6330.  
  6331.  
  6332. def GetElectricsOnly():
  6333. global ElectricsOnly
  6334. return ElectricsOnly
  6335.  
  6336.  
  6337. def SetElectricsOnly( value ):
  6338. global ElectricsOnly
  6339. ElectricsOnly = value
  6340.  
  6341.  
  6342. def GetSextantActive():
  6343. global sextantactive
  6344. return sextantactive
  6345.  
  6346.  
  6347. def SetSextantActive( value ):
  6348. global sextantactive
  6349. sextantactive = value
  6350. ScriptManagerManaged.Trace( "TDWUO: sextant active=" + str( value ) )
  6351.  
  6352.  
  6353. #def GetCrewDialogLines():
  6354. # global CrewDialogLines
  6355. # return CrewDialogLines
  6356.  
  6357.  
  6358. ########################################################## Debugging #################################################################
  6359. MasterDebugEnabled = False
  6360.  
  6361.  
  6362. def GetMasterDebugEnabled():
  6363. global MasterDebugEnabled
  6364. return MasterDebugEnabled
  6365.  
  6366.  
  6367. def SetMasterDebugEnabled( value ):
  6368. global MasterDebugEnabled
  6369. MasterDebugEnabled = value
  6370.  
  6371.  
  6372. def GetDisplaySapiensKey():
  6373. global DisplaySapiensKey
  6374. return DisplaySapiensKey
  6375.  
  6376.  
  6377. def SetDisplaySapiensKey( value ):
  6378. global DisplaySapiensKey
  6379. DisplaySapiensKey = value
  6380.  
  6381.  
  6382. def GetDisplayKeyPressedKey():
  6383. global DisplayKeyPressedKey
  6384. return DisplayKeyPressedKey
  6385.  
  6386.  
  6387. def SetDisplayKeyPressedKey( value ):
  6388. global DisplayKeyPressedKey
  6389. DisplayKeyPressedKey = value
  6390.  
  6391.  
  6392. def GetDisplayKeyReleasedKey():
  6393. global DisplayKeyReleasedKey
  6394. return DisplayKeyReleasedKey
  6395.  
  6396.  
  6397. def SetDisplayKeyReleasedKey( value ):
  6398. global DisplayKeyReleasedKey
  6399. DisplayKeyReleasedKey = value
  6400.  
  6401.  
  6402. def GetDisplayCurrentStationsKey():
  6403. global DisplayCurrentStationsKey
  6404. return DisplayCurrentStationsKey
  6405.  
  6406.  
  6407. def SetDisplayCurrentStationsKey( value ):
  6408. global DisplayCurrentStationsKey
  6409. DisplayCurrentStationsKey = value
  6410.  
  6411.  
  6412. def GetDisplayActiveStationKey():
  6413. global DisplayActiveStationKey
  6414. return DisplayActiveStationKey
  6415.  
  6416.  
  6417. def SetDisplayActiveStationKey( value ):
  6418. global DisplayActiveStationKey
  6419. DisplayActiveStationKey = value
  6420.  
  6421.  
  6422. def GetDisplayActiveCameraKey():
  6423. global DisplayActiveCameraKey
  6424. return DisplayActiveCameraKey
  6425.  
  6426.  
  6427. def SetDisplayActiveCameraKey( value ):
  6428. global DisplayActiveCameraKey
  6429. DisplayActiveCameraKey = value
  6430.  
  6431.  
  6432. def GetToggleDisplaySubmarineCommandsKey():
  6433. global ToggleDisplaySubmarineCommandsKey
  6434. return ToggleDisplaySubmarineCommandsKey
  6435.  
  6436.  
  6437. def SetToggleDisplaySubmarineCommandsKey( value ):
  6438. global ToggleDisplaySubmarineCommandsKey
  6439. ToggleDisplaySubmarineCommandsKey = value
  6440.  
  6441.  
  6442. def GetToggleDisplaySubmarineDelayedCommandsKey():
  6443. global ToggleDisplaySubmarineDelayedCommandsKey
  6444. return ToggleDisplaySubmarineDelayedCommandsKey
  6445.  
  6446.  
  6447. def SetToggleDisplaySubmarineDelayedCommandsKey( value ):
  6448. global ToggleDisplaySubmarineDelayedCommandsKey
  6449. ToggleDisplaySubmarineDelayedCommandsKey = value
  6450.  
  6451.  
  6452. def GetDisplayMouseDataKey():
  6453. global DisplayMouseData
  6454. return DisplayMouseData
  6455.  
  6456.  
  6457. ####################################################################################################################################
  6458. import clr
  6459. clr.AddReference( "System" )
  6460. clr.AddReference( "TDWSound" )
  6461. clr.AddReference( "TDWMouse" )
  6462. clr.AddReference( "TDWUtils" )
  6463. clr.AddReference( "TDWFileUtils" )
  6464. clr.AddReference( "TDWSoan" )
  6465. clr.AddReference( "TDWRadioMessages" )
  6466. clr.AddReference( "TDWDestroyedMarks" )
  6467. #clr.AddReference( "TDWTest" )
  6468. from TheDarkWraith.SilentHunter5 import TDWSound
  6469. from TheDarkWraith.SilentHunter5 import TDWMouse
  6470. from TheDarkWraith.SilentHunter5 import TDWUtils
  6471. from TheDarkWraith.SilentHunter5 import TDWFileUtils
  6472. from TheDarkWraith.SilentHunter5 import TDWSoan
  6473. from TheDarkWraith.SilentHunter5 import TDWRadioMessages
  6474. from TheDarkWraith.SilentHunter5 import TDWDestroyedMarks
  6475. #from TheDarkWraith.SilentHunter5 import TDWTest
  6476. from System import String, Text, Array, DateTime, Int32, UInt32, Random, Math, Single
  6477. from System.IO import Directory, File, FileMode, FileStream, StreamReader, BinaryReader, BinaryWriter, FileAccess, SeekOrigin
  6478. from System.Text import Encoding
  6479. from System.Collections.Generic import Dictionary, List
  6480. from System.Globalization import CultureInfo
  6481. clr.AddReference("System.Drawing")
  6482. from System.Drawing import PointF
  6483. #clr.AddReference( "System.Windows.Forms" )
  6484. #from System.Windows.Forms import DialogResult, FolderBrowserDialog
  6485. from game import Game
  6486. from menu import Menu
  6487.  
  6488. from TheDarkWraithAutomation import TheDarkWraithAutomation
  6489. TheDarkWraithAutomation.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )
  6490. from TheDarkWraithAutomation import TDWAutomation
  6491.  
  6492.  
  6493. ########################################################################################################
  6494. #tdwtest = None
  6495.  
  6496. def InitializeScript():
  6497. ScriptManagerManaged.Trace( "TheDarkWraithUserOptions InitializeScript" )
  6498.  
  6499. installpath = TDWFileUtils.DetermineSH5InstallPathFromRegistry()
  6500. SetSH5InstallPath(installpath)
  6501.  
  6502. # show sh5 exe file version
  6503. sh5exefileversion = TDWFileUtils.GetSHEXEVersion( 5, installpath )
  6504. if sh5exefileversion == "":
  6505. ScriptManagerManaged.Trace( "Unable to determine sh5.exe file version" )
  6506. else:
  6507. ScriptManagerManaged.Trace( "sh5.exe file version is " + sh5exefileversion )
  6508.  
  6509. # show DLL file versions
  6510. ScriptManagerManaged.Trace( "\nTDW DLL versions:" )
  6511. for fdll in Directory.GetFiles( GetSH5InstallPath(), "TDW*.dll" ):
  6512. ScriptManagerManaged.Trace( fdll + "=" + TDWFileUtils.GetDLLVersion( fdll ) )
  6513.  
  6514. # read in JSGME info
  6515. jsgmeinfo = GetSH5InstallPath() + "\\JSGME.ini"
  6516. if File.Exists( jsgmeinfo ):
  6517. jsgmemods = TDWFileUtils.FindEntryInFileStartingAtHeader( jsgmeinfo, "[MODS FOLDER]", "Name", True, ";" )
  6518. if jsgmemods != None:
  6519. jsgmeinfo2 = GetSH5InstallPath() + "\\" + jsgmemods + "\\JSGME.ini"
  6520. if File.Exists( jsgmeinfo2 ):
  6521. sf = None
  6522. sr = None
  6523. try:
  6524. sf = File.Open( jsgmeinfo2, FileMode.Open, FileAccess.Read )
  6525. sr = StreamReader( sf )
  6526. contents = sr.ReadToEnd()
  6527. ScriptManagerManaged.Trace( "\nMODS installed:\n" + contents )
  6528. except:
  6529. pass
  6530.  
  6531. if sr != None:
  6532. sr.Close()
  6533.  
  6534. ScriptManagerManaged.Trace( "" )
  6535.  
  6536. global Automation
  6537. global RadioMessages
  6538. from TheDarkWraithAutomation import TheDarkWraithAutomation
  6539. # set TDWAutomation class globals
  6540. TDWAutomation.useroptionsfilepath = GetUserOptionsFilePathname()
  6541. TDWAutomation.sh5installpath = SH5InstallPath
  6542. TDWAutomation.automationdebuggingenabled = AutomationDebuggingEnabled
  6543. TDWAutomation.automationactionmessagesdisplayed = AutomationActionMessagesDisplayed
  6544. TDWAutomation.automationpath = GetAutomationPath()
  6545. TDWAutomation.tutorialimagepath = GetTutorialImagePath()
  6546. TDWAutomation.tutorialimagename = GetTutorialImageName()
  6547. Automation = TDWAutomation( TheDarkWraithAutomation )
  6548.  
  6549. global tdwsound
  6550. tdwsound = TDWSound()
  6551. #tdwsound.PlaySound( "C:\Games\Ubisoft\Silent Hunter 5\\data\\Sound\\Blur.wav", 0.8 )
  6552.  
  6553. global RadioMessagesEnabled
  6554. if RadioMessagesEnabled:
  6555. global RadioMessageLanguage
  6556. global RadioMessagesContactReportMaxRadius
  6557. global RadioMessagesContactReportMinRadius
  6558. global RadioMessagesContactReportChance
  6559. RadioMessages = TDWRadioMessages( tdwsound, GetTC1OnNewRadioMessage, GetInformBDUMessages, GetInformRadioMessages, GetInformSubSightedMessages, GetInformDestroyedMessages, GetAllowedToSelectTarget, GetSubIsUnderwater, Game, Menu, RadioMessageLanguage, GetSH5InstallPath(), GetUboatHullNumber(), GetBelowThisDepthDontReceiveRadio(), GetRadioMessagesInterceptChance(), GetRadioMessagesFlashTime(), RadioMessagesContactReportMaxRadius, RadioMessagesContactReportMinRadius, RadioMessagesContactReportChance )
  6560. else:
  6561. RadioMessages = None
  6562.  
  6563. # get the ships of all nations
  6564. if SOANEnabled:
  6565. global tdwsoan
  6566. tdwsoan = TDWSoan( GetSH5InstallPath() )
  6567.  
  6568. #GetCrewDialogLinesFromFiles()
  6569. TDWUO_InitializeVariables()
  6570.  
  6571. global SpeechEngineFound
  6572. SpeechEngineFound = False
  6573.  
  6574. # check to see if real navigation or not
  6575. global RealNavigation
  6576. if File.Exists( GetSH5InstallPath() + "\\data\\Real_navigation.txt" ):
  6577. ScriptManagerManaged.Trace( "Using real navigation" )
  6578. RealNavigation = True
  6579.  
  6580. global NavSetCourseWhenSubIsClicked
  6581. NavSetCourseWhenSubIsClicked = False
  6582. global NavActivateWaypointToolWhenWaypointClicked
  6583. NavActivateWaypointToolWhenWaypointClicked = False
  6584. global NavHydrophoneEnabled
  6585. NavHydrophoneEnabled = False
  6586. global NavSonarEnabled
  6587. NavSonarEnabled = False
  6588. global NavVisualEnabled
  6589. NavVisualEnabled = False
  6590. global NavRadarEnabled
  6591. NavRadarEnabled = False
  6592. global NavTorpedoSolutionEnabled
  6593. NavTorpedoSolutionEnabled = False
  6594. global NavCameraPositionAndOrientationEnabled
  6595. NavCameraPositionAndOrientationEnabled = False
  6596. global NavTorpedoImpactPointsEnabled
  6597. NavTorpedoImpactPointsEnabled = False
  6598. global NavParallelCourseButtonEnabled
  6599. NavParallelCourseButtonEnabled = False
  6600. global NavInterceptCourseButtonEnabled
  6601. NavInterceptCourseButtonEnabled = False
  6602.  
  6603. global TAISetCourseWhenSubIsClicked
  6604. TAISetCourseWhenSubIsClicked = False
  6605. global TAIActivateWaypointToolWhenWaypointClicked
  6606. TAIActivateWaypointToolWhenWaypointClicked = False
  6607. global TAIHydrophoneEnabled
  6608. TAIHydrophoneEnabled = False
  6609. global TAISonarEnabled
  6610. TAISonarEnabled = False
  6611. global TAIVisualEnabled
  6612. TAIVisualEnabled = False
  6613. global TAIRadarEnabled
  6614. TAIRadarEnabled = False
  6615. global TAITorpedoSolutionEnabled
  6616. TAITorpedoSolutionEnabled = False
  6617. global TAICameraPositionAndOrientationEnabled
  6618. TAICameraPositionAndOrientationEnabled = False
  6619. global TAITorpedoImpactPointsEnabled
  6620. TAITorpedoImpactPointsEnabled = False
  6621. global TAIParallelCourseButtonEnabled
  6622. TAIParallelCourseButtonEnabled = False
  6623. global TAIInterceptCourseButtonEnabled
  6624. TAIInterceptCourseButtonEnabled = False
  6625.  
  6626. global tdwmouse
  6627. tdwmouse = TDWMouse()
  6628. if tdwmouse == None:
  6629. ScriptManagerManaged.Trace( "TDWMouse == None!" )
  6630.  
  6631. TDWFileUtils.SetInstallPath( GetSH5InstallPath() )
  6632. TDWFileUtils.SetMenuReference( Menu )
  6633.  
  6634. global tdwdestroyedmarks
  6635. tdwdestroyedmarks = TDWDestroyedMarks( Game, Menu, RealNavigation )
  6636.  
  6637. # global tdwtest
  6638. # tdwtest = TDWTest( IPTest, Menu.TimeCompression )
  6639. #
  6640. # tup = tdwtest.GetTuple()
  6641. # 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() ) )
  6642.  
  6643.  
  6644. ########################################################################################################
  6645. def StartGame():
  6646. ScriptManagerManaged.Trace( "TheDarkWraithUserOptions StartGame" )
  6647.  
  6648. global TDCIsOn
  6649. TDCIsOn = Game.GetGameplaySettings( GameWrapper.GameplaySettingsEntries.ManualTargetingSystem )
  6650. Automation.Initialize()
  6651.  
  6652. global RadioMessagesEnabled
  6653. if RadioMessagesEnabled:
  6654. from menu import event
  6655. if not TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ]:
  6656. TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = event()
  6657. TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ].make_caller()
  6658. global RadioMessages
  6659. from PageDefaultHud import Game_NewPlayerLogMessageCSharp
  6660. from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
  6661. from PageDefaultHud import PageDefaultHud_MenuGroup_QuickAccess_RadioTraffic
  6662. from PageRadioMessages import PageRadioMessages
  6663. from Pagenavigationmap import Pagenavigationmap
  6664. from menu import BlinkMenuItemTransparency, StopBlinkMenuItemTransparency, BlinkContinuousMenuItemTransparency, StopBlinkContinuousMenuItemTransparency
  6665. RadioMessages.Initialize( Game_NewPlayerLogMessageCSharp, TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ], PageRadioMessages, Pagenavigationmap, PageDefaultHud_MapGroup_Mapcontrol, PageDefaultHud_MenuGroup_QuickAccess_RadioTraffic, BlinkContinuousMenuItemTransparency, StopBlinkContinuousMenuItemTransparency, BlinkMenuItemTransparency, StopBlinkMenuItemTransparency )
  6666. else:
  6667. TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = None
  6668. TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = None
  6669.  
  6670. #global tdwtest
  6671. #tdwtest.SetTCLevel( 4 )
  6672.  
  6673.  
  6674. #def IPTest():
  6675. # global tdwtest
  6676. # ScriptManagerManaged.Trace( "called from C# app! TC=" + str( tdwtest.GetTCLevel() ) )
  6677.  
  6678.  
  6679. ########################################################################################################
  6680. def TDWUO_InitializeVariables():
  6681. ScriptManagerManaged.Trace( "TheDarkWraithUserOptions InitializeVariables" )
  6682. global DamageControlTeamActive
  6683. DamageControlTeamActive = False
  6684. global SnorkelEnabled
  6685. SnorkelEnabled = True
  6686. global FollowSelectedTargetWithCamera
  6687. FollowSelectedTargetWithCamera = False
  6688. global SilentRunning
  6689. SilentRunning = False
  6690. global SnorkelRaised
  6691. SnorkelRaised = False
  6692. global BattlestationsActivated
  6693. BattlestationsActivated = False
  6694. global ShowNavMapTDC
  6695. ShowNavMapTDC = False
  6696. global IgnoreNewLogMessages
  6697. IgnoreNewLogMessages = True
  6698. global RealisticTorpFiringInProgress
  6699. RealisticTorpFiringInProgress = False
  6700. global SelectedTorpTubes
  6701. SelectedTorpTubes = [ 0 ]
  6702. global SH5EHeadingRudderDialVisible
  6703. SH5EHeadingRudderDialVisible = False
  6704. global TorpDoorsStatus
  6705. TorpDoorsStatus = [ False, False, False, False, False, False ]
  6706. global TorpDoorsEnabled
  6707. TorpDoorsEnabled = [ True, True, True, True, True, True ]
  6708. global CurrentlySelectedTube
  6709. CurrentlySelectedTube = 0
  6710. global InSalvoMode
  6711. InSalvoMode = False
  6712.  
  6713. global CrewOnDeckMode
  6714. global WatchCrewMode
  6715. CrewOnDeckMode = WatchCrewMode
  6716. global DGunFireMode
  6717. global DGunFireModeHold
  6718. DGunFireMode = DGunFireModeHold
  6719. global DGunRangeMode
  6720. global DGunRangeModeShort
  6721. DGunRangeMode = DGunRangeModeShort
  6722. global DGunAimMode
  6723. global DGunAimModeWaterline
  6724. DGunAimMode = DGunAimModeWaterline
  6725. global AAGunFireMode
  6726. global AAGunFireModeHold
  6727. AAGunFireMode = AAGunFireModeHold
  6728. global AAGunRangeMode
  6729. global AAGunRangeModeShort
  6730. AAGunRangeMode = AAGunRangeModeShort
  6731. global AAGunPriorityMode
  6732. global AAGunPriorityModeAnyAircraft
  6733. AAGunPriorityMode = AAGunPriorityModeAnyAircraft
  6734. global AAGunAimMode
  6735. global AAGunAimModeAnyTarget
  6736. AAGunAimMode = AAGunAimModeAnyTarget
  6737.  
  6738. global AutomationIDForTutorial
  6739. AutomationIDForTutorial = None
  6740.  
  6741. global TutorialToStart
  6742. TutorialToStart = None
  6743.  
  6744. global settingnavmapmarker
  6745. settingnavmapmarker = False
  6746.  
  6747. global markshavekeyboard
  6748. markshavekeyboard = False
  6749.  
  6750. global navfixrepositioning
  6751. navfixrepositioning = None
  6752.  
  6753. global settingsupermark
  6754. settingsupermark = False
  6755.  
  6756. global supermarkrepositioning
  6757. supermarkrepositioning = None
  6758.  
  6759. global timezonemodifier
  6760. timezonemodifier = 0
  6761.  
  6762. global TutorialMissionName
  6763. TutorialMissionName = None
  6764.  
  6765. global hydrofollowcontact
  6766. hydrofollowcontact = None
  6767.  
  6768.  
  6769. ########################################################################################################
  6770. # handles the automation event for when a script completes
  6771. def AutomationEvent( scriptname ):
  6772. try:
  6773. from PageAutomation import SetActivatedScriptStartStopPause
  6774. SetActivatedScriptStartStopPause( scriptname )
  6775. except:
  6776. pass
  6777.  
  6778.  
  6779. ########################################################################################################
  6780. # clear all the user marks (navigation fixes and supermarks and destroyed marks)
  6781.  
  6782. def ClearAllUserMarks():
  6783. ScriptManagerManaged.Trace("Clearing all user marks")
  6784. for fix in GetNavigationFixes():
  6785. for ctrl in fix[ 0 ].Controls:
  6786. Menu.DeleteItemOnEndOfFrame( ctrl )
  6787. Menu.DeleteItemOnEndOfFrame( fix[ 0 ] )
  6788. SetNavigationFixes( [] )
  6789.  
  6790. from Pagenavigationmap import Pagenavigationmap_Mapcontrol
  6791. for ctrl in Pagenavigationmap_Mapcontrol.Controls:
  6792. if ctrl.Name == "MapFix" or ctrl.Name == "DestroyedShipFix" or ctrl.Name == "DestroyedSubFix" or ctrl.Name == "DestroyedAirFix" or ctrl.Name == "DestroyedLandFix":
  6793. Menu.DeleteItemOnEndOfFrame( ctrl )
  6794.  
  6795. global navigationfixes
  6796. navigationfixes = []
  6797.  
  6798. global navfixestocreate
  6799. navfixestocreate = None
  6800.  
  6801. global supermarks
  6802. supermarks = []
  6803.  
  6804. global supermarkstocreate
  6805. supermarkstocreate = None
  6806.  
  6807. global destroyedmarks
  6808. destroyedmarks = []
  6809.  
  6810. if tdwdestroyedmarks != None:
  6811. tdwdestroyedmarks.Reset()
  6812.  
  6813.  
  6814. ########################################################################################################
  6815. # functions for the Ship's Journal
  6816.  
  6817. def WriteShipsJournalToFile( publishname, saveentries, savesupermarks, savenavfixes ):
  6818. IDSTR_FolderDoesntExist = 8824
  6819. IDSTR_UnableToCreate = 8825
  6820. IDSTR_CreatedSuccessfully = 8826
  6821.  
  6822. savepath = GetShipsJournalPath()
  6823. if not Directory.Exists( savepath ):
  6824. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_FolderDoesntExist ) + " " + savepath )
  6825. Directory.CreateDirectory( savepath )
  6826.  
  6827. savefilepath = ""
  6828. if publishname == "":
  6829. savefilepath = GetShipsJournalFile()
  6830. else:
  6831. savefilepath = savepath + publishname
  6832.  
  6833. try:
  6834. sf = File.Open( savefilepath, FileMode.Create, FileAccess.Write )
  6835. except:
  6836. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToCreate ) + " " + savefilepath )
  6837. return False
  6838.  
  6839. ScriptManagerManaged.Trace( "Writing ships journal to file " + savefilepath )
  6840.  
  6841. SortShipsJournal()
  6842.  
  6843. bw = BinaryWriter( sf )
  6844.  
  6845. # set the culture specifics
  6846. usculture = CultureInfo( "en-US" )
  6847.  
  6848. # create list of entries that need to be saved
  6849. entriestosave = []
  6850. journal = GetShipsJournal()
  6851. if len( journal ) > 0:
  6852. #ScriptManagerManaged.Trace( "Writing ship's journal:" )
  6853. for entry in journal:
  6854. if (entry[ 0 ] == 0 and ( entry[ 4 ] & 0x1 ) == 0x1 ):
  6855. entriestosave.append( entry )
  6856. elif (entry[ 0 ] == 1 or entry[ 0 ] == 2):
  6857. entriestosave.append( entry )
  6858.  
  6859. try:
  6860. # write the 'magic' string
  6861. bw.Write( GetMagicString() )
  6862. bw.Write( GetUboatHullNumber() )
  6863. bw.Write( GetUboatCaptainName() )
  6864.  
  6865. journal = None
  6866. journallen = UInt32( 0 )
  6867. if saveentries:
  6868. journallen = UInt32( len( entriestosave ) )
  6869.  
  6870. # write number of journal entries
  6871. bw.Write( journallen )
  6872. ScriptManagerManaged.Trace( "Number of journal entries to save is " + str( journallen ) )
  6873.  
  6874. if journallen > 0:
  6875. for entry in entriestosave:
  6876. #ScriptManagerManaged.Trace( str( entry ) )
  6877. bw.Write( UInt32( entry[ 0 ] ) )
  6878.  
  6879. # 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]
  6880. if entry[ 0 ] == 0:
  6881. bw.Write( entry[ 1 ].ToBinary() )
  6882. bw.Write( Single( entry[ 2 ] ) )
  6883. bw.Write( entry[ 3 ] )
  6884. bw.Write( UInt32( entry[ 4 ] ) )
  6885.  
  6886. # 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)
  6887. elif entry[ 0 ] == 1:
  6888. bw.Write( entry[ 1 ].ToBinary() )
  6889. bw.Write( Single( entry[ 2 ] ) )
  6890. bw.Write( entry[ 3 ].X )
  6891. bw.Write( entry[ 3 ].Y )
  6892. bw.Write( entry[ 4 ] )
  6893. bw.Write( entry[ 5 ] )
  6894. bw.Write( entry[ 6 ] )
  6895. bw.Write( entry[ 7 ] )
  6896. bw.Write( entry[ 8 ] )
  6897. bw.Write( entry[ 9 ] )
  6898. bw.Write( entry[ 10 ] )
  6899. bw.Write( entry[ 11 ] )
  6900.  
  6901. # Unknown
  6902. else:
  6903. ScriptManagerManaged.Trace("Unrecognized entry of " + str( entry[ 0 ] ) + " while saving journal")
  6904. bw.Close()
  6905. return False
  6906.  
  6907. # write number of supermarks
  6908. sms = GetSuperMarks()
  6909. smslen = UInt32( 0 )
  6910. if savesupermarks:
  6911. smslen = UInt32( len( sms ) )
  6912. bw.Write( smslen )
  6913. ScriptManagerManaged.Trace( "Number of supermarks to save is " + str( smslen ) )
  6914.  
  6915. if smslen > 0:
  6916. # now write all the supermarks to the file
  6917. for mark in sms:
  6918. # write the supermark location
  6919. bw.Write( mark[ 2 ].ToBinary() )
  6920. #bw.Write( mark[ 3 ].ToBinary() )
  6921. bw.Write( Single( mark[ 3 ] ) )
  6922. bw.Write( mark[ 1 ].X )
  6923. bw.Write( mark[ 1 ].Y )
  6924. # write the text
  6925. for ctrl in mark[ 0 ].Controls:
  6926. if ctrl.Name == "Description":
  6927. bw.Write( ctrl.Text )
  6928. break
  6929.  
  6930. # write number of navigation fixes
  6931. nfs = GetNavigationFixes()
  6932. nfslen = UInt32( 0 )
  6933. if savenavfixes:
  6934. nfslen = UInt32( len( nfs ) )
  6935. bw.Write( nfslen )
  6936. ScriptManagerManaged.Trace( "Number of nav fixes to save is " + str( nfslen ) )
  6937.  
  6938. if nfslen > 0:
  6939. # now write all the navigation fixes to the file
  6940. for mark in nfs:
  6941. # write the navfix location
  6942. bw.Write( mark[ 3 ].ToBinary() )
  6943. #bw.Write( mark[ 4 ].ToBinary() )
  6944. bw.Write( Single( mark[ 4 ] ) )
  6945. bw.Write( mark[ 5 ] )
  6946. bw.Write( mark[ 1 ].X )
  6947. bw.Write( mark[ 1 ].Y )
  6948. # write the sub's actual location
  6949. bw.Write( mark[ 2 ].X )
  6950. bw.Write( mark[ 2 ].Y )
  6951. # write the text
  6952. for ctrl in mark[ 0 ].Controls:
  6953. if ctrl.Name == "Description":
  6954. bw.Write( ctrl.Text )
  6955. break
  6956.  
  6957. except:
  6958. bw.Close()
  6959. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToCreate ) + " " + savefilepath )
  6960. return False
  6961.  
  6962. bw.Flush()
  6963. bw.Close()
  6964.  
  6965. ScriptManagerManaged.Trace( savefilepath + " " + Menu.GetLocalizedText( IDSTR_CreatedSuccessfully ) )
  6966.  
  6967. return True
  6968.  
  6969.  
  6970. def ReadShipsJournalFromFile( importname, readentries, readsupermarks, readnavfixes ):
  6971. IDSTR_ImportFolder = 8828
  6972. IDSTR_DoesntExist = 8829
  6973. IDSTR_File = 8830
  6974. IDSTR_UnableToOpen = 8831
  6975. IDSTR_InvalidFileMagicString = 8833
  6976. IDSTR_UnableToRead = 8834
  6977.  
  6978. importpath = GetShipsJournalPath()
  6979. if not Directory.Exists( importpath ):
  6980. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_ImportFolder ) + " " + importpath + " " + Menu.GetLocalizedText( IDSTR_DoesntExist ) )
  6981. return False
  6982.  
  6983. importfilepath = ""
  6984. if importname == "":
  6985. importfilepath = GetShipsJournalFile()
  6986. else:
  6987. importfilepath = importpath + importname
  6988.  
  6989. if not File.Exists( importfilepath ):
  6990. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_File ) + " " + importfilepath + " " + Menu.GetLocalizedText( IDSTR_DoesntExist ) )
  6991. return False
  6992.  
  6993. try:
  6994. rf = File.Open( importfilepath, FileMode.Open, FileAccess.Read )
  6995. except:
  6996. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToOpen ) + " " + importfilepath )
  6997. return False
  6998.  
  6999. ScriptManagerManaged.Trace( "Reading ships journal from file " + importfilepath )
  7000.  
  7001. br = BinaryReader( rf )
  7002.  
  7003. # read the 'magic' string
  7004. try:
  7005. magicstring = br.ReadString()
  7006. except:
  7007. br.Close()
  7008. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_InvalidFileMagicString ) )
  7009. return False
  7010.  
  7011. oldstylefile = False
  7012. v7style = True
  7013. v6style = False
  7014. v5style = False
  7015. v4style = False
  7016. v3style = False
  7017. if magicstring == GetMagicString():
  7018. ScriptManagerManaged.Trace( "found v7 ship's journal file" )
  7019. else:
  7020. if magicstring == "TheDarkWraithSH5_new6":
  7021. v7style = False
  7022. v6style = True
  7023. ScriptManagerManaged.Trace( "found v6 ship's journal file" )
  7024. elif magicstring == "TheDarkWraithSH5_new5":
  7025. v6style = False
  7026. v5style = True
  7027. ScriptManagerManaged.Trace( "found v5 ship's journal file" )
  7028. elif magicstring == "TheDarkWraithSH5_new4":
  7029. v6style = False
  7030. v5style = False
  7031. v4style = True
  7032. ScriptManagerManaged.Trace( "found v4 ship's journal file" )
  7033. elif magicstring == "TheDarkWraithSH5_new3":
  7034. v6style = False
  7035. v5style = False
  7036. v4style = False
  7037. v3style = True
  7038. ScriptManagerManaged.Trace( "found v3 ship's journal file" )
  7039. elif magicstring == "TheDarkWraithSH5_new2":
  7040. v6style = False
  7041. v5style = False
  7042. v4style = False
  7043. v3style = False
  7044. ScriptManagerManaged.Trace( "found v2 ship's journal file" )
  7045. elif magicstring == "TheDarkWraithSH5_new":
  7046. oldstylefile = True
  7047. v3style = False
  7048. v4style = False
  7049. v5style = False
  7050. v6style = False
  7051. ScriptManagerManaged.Trace( "found old style ship's journal file" )
  7052. else:
  7053. br.Close()
  7054. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_InvalidFileMagicString ) )
  7055. return False
  7056.  
  7057. # read the uboat hull number
  7058. br.ReadString()
  7059.  
  7060. # read the captain's name
  7061. if v3style or v4style or v5style or v6style or v7style:
  7062. ScriptManagerManaged.Trace( "Captain's name is " + br.ReadString() )
  7063.  
  7064. # set the culture specifics
  7065. usculture = CultureInfo( "en-US" )
  7066.  
  7067. newjournal = GetShipsJournal()
  7068. if newjournal == None:
  7069. newjournal = []
  7070.  
  7071. if oldstylefile:
  7072. try:
  7073. while True:
  7074. entry = []
  7075. entry.append( UInt32( 0 ) )
  7076. entry.append( DateTime.ParseExact( br.ReadString(), "g", usculture ) )
  7077. entry.append( Single( 0 ) )
  7078. entry.append( br.ReadString() )
  7079. if br.ReadBoolean():
  7080. entry.append( UInt32( 0x1 ) )
  7081. else:
  7082. entry.append( UInt32( 0x7 ) )
  7083.  
  7084. if readentries:
  7085. index = 0
  7086. lessthan = False
  7087. for oldentry in newjournal:
  7088. if entry[ 1 ] < oldentry[ 1 ]:
  7089. newjournal.insert( index, entry )
  7090. lessthan = True
  7091. break
  7092. index += 1
  7093. if lessthan:
  7094. continue
  7095. else:
  7096. newjournal.append( entry )
  7097. except EOFError:
  7098. pass
  7099.  
  7100. except:
  7101. br.Close()
  7102. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToRead ) + " " + importfilepath )
  7103. return False
  7104. else:
  7105. try:
  7106. # get the number of journal entries
  7107. numjes = br.ReadUInt32()
  7108. ScriptManagerManaged.Trace( "Number of journal entries is " + str( numjes ) )
  7109.  
  7110. # read all the journal entries
  7111. while numjes > 0:
  7112. numjes -= 1
  7113. entry = []
  7114. if v6style or v7style:
  7115. type = br.ReadUInt32();
  7116. if type == 0:
  7117. # 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]
  7118. entry.append( UInt32( 0 ) )
  7119. entry.append( DateTime.FromBinary( br.ReadInt64() ) )
  7120. if v7style:
  7121. entry.append( br.ReadSingle() )
  7122. else:
  7123. entry.append( Single( 0 ) )
  7124. entry.append( br.ReadString() )
  7125. entry.append( br.ReadUInt32() )
  7126.  
  7127. if readentries:
  7128. index = 0
  7129. lessthan = False
  7130. for oldentry in newjournal:
  7131. if entry[ 1 ] < oldentry[ 1 ]:
  7132. newjournal.insert( index, entry )
  7133. lessthan = True
  7134. break
  7135. index += 1
  7136. if lessthan:
  7137. continue
  7138. else:
  7139. newjournal.append( entry )
  7140.  
  7141. elif type == 1:
  7142. # 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)
  7143. entry.append( UInt32( 1 ) )
  7144. entry.append( DateTime.FromBinary( br.ReadInt64() ) )
  7145. if v7style:
  7146. entry.append( br.ReadSingle() )
  7147. else:
  7148. entry.append( Single( 0 ) )
  7149. entry.append( PointF( br.ReadSingle(), br.ReadSingle() ) )
  7150. entry.append( br.ReadDouble() )
  7151. entry.append( br.ReadDouble() )
  7152. entry.append( br.ReadDouble() )
  7153. entry.append( br.ReadDouble() )
  7154. entry.append( br.ReadDouble() )
  7155. entry.append( br.ReadDouble() )
  7156. entry.append( br.ReadDouble() )
  7157. entry.append( br.ReadDouble() )
  7158.  
  7159. index = 0
  7160. lessthan = False
  7161. for oldentry in newjournal:
  7162. if entry[ 1 ] < oldentry[ 1 ]:
  7163. newjournal.insert( index, entry )
  7164. lessthan = True
  7165. break
  7166. index += 1
  7167. if lessthan:
  7168. continue
  7169. else:
  7170. newjournal.append( entry )
  7171.  
  7172. else:
  7173. br.Close()
  7174. ScriptManagerManaged.Trace( "Write ships journal to file: unrecognized type found of " + str( type ) )
  7175. SetShipsJournal( [] )
  7176. return False
  7177.  
  7178. else:
  7179. entry.append( UInt32( 0 ) )
  7180. entry.append( DateTime.ParseExact( br.ReadString(), "g", usculture ) )
  7181. entry.append( Single( 0 ) )
  7182. entry.append( br.ReadString() )
  7183. if v5style:
  7184. entry.append( br.ReadUInt32() )
  7185. else:
  7186. if br.ReadBoolean():
  7187. entry.append( UInt32( 0x1 ) )
  7188. else:
  7189. entry.append( UInt32( 0x7 ) )
  7190.  
  7191. if readentries:
  7192. index = 0
  7193. lessthan = False
  7194. for oldentry in newjournal:
  7195. if entry[ 1 ] < oldentry[ 1 ]:
  7196. newjournal.insert( index, entry )
  7197. lessthan = True
  7198. break
  7199. index += 1
  7200. if lessthan:
  7201. continue
  7202. else:
  7203. newjournal.append( entry )
  7204.  
  7205. # get the number of supermarks
  7206. numsms = br.ReadUInt32()
  7207. ScriptManagerManaged.Trace( "number of supermarks to read from journal file=" + str( numsms ) )
  7208.  
  7209. from Pagemain import Pagemain
  7210. pmvis = Pagemain.Visible
  7211. global supermarkstocreate
  7212. global navfixestocreate
  7213.  
  7214. if readsupermarks:
  7215. if pmvis:
  7216. ScriptManagerManaged.Trace("supermarks flagged as needed to be read")
  7217. supermarkstocreate = []
  7218. else:
  7219. supermarkstocreate = None
  7220. else:
  7221. ScriptManagerManaged.Trace("not reading the supermarks from journal file")
  7222.  
  7223. if readnavfixes:
  7224. if pmvis:
  7225. ScriptManagerManaged.Trace("navfixes flagged as needed to be read")
  7226. navfixestocreate = []
  7227. else:
  7228. navfixestocreate = None
  7229. else:
  7230. ScriptManagerManaged.Trace("not reading the navfixes from journal file")
  7231.  
  7232. # read all the supermarks
  7233. while numsms > 0:
  7234. numsms -= 1
  7235. smgmtdatetime = DateTime()
  7236. smdatetime = DateTime()
  7237. smtimezonemodifier = 0
  7238. #if v6style or v7style:
  7239. if v6style:
  7240. smgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
  7241. smdatetime = DateTime.FromBinary( br.ReadInt64() )
  7242. smtimezonemodifier = Single( ( smdatetime - smgmtdatetime ).TotalSeconds )
  7243. elif v7style:
  7244. smgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
  7245. smtimezonemodifier = br.ReadSingle()
  7246. #ScriptManagerManaged.Trace( "Supermark: DateTime (GMT)=" + str( smgmtdatetime ) + "\ttimezonemodifier=" + str( smtimezonemodifier ) )
  7247. location = PointF( br.ReadSingle(), br.ReadSingle() )
  7248. txt = br.ReadString()
  7249. if readsupermarks:
  7250. createfix = True
  7251. for supermark in GetSuperMarks():
  7252. if location.X == supermark[ 1 ].X and location.Y == supermark[ 1 ].Y:
  7253. createfix = False
  7254. break
  7255. if createfix:
  7256. if pmvis:
  7257. #supermarkstocreate.append( [ PointF( location.X, location.Y ), txt, smgmtdatetime, smdatetime ] )
  7258. supermarkstocreate.append( [ PointF( location.X, location.Y ), txt, smgmtdatetime, smtimezonemodifier ] )
  7259. else:
  7260. from Pagelayout import CreateNewSuperMark
  7261. #CreateNewSuperMark( location.X, location.Y, txt, smgmtdatetime, smdatetime )
  7262. CreateNewSuperMark( location.X, location.Y, txt, smgmtdatetime, smtimezonemodifier )
  7263.  
  7264. # get the number of navigation fixes
  7265. numnfs = br.ReadUInt32()
  7266. ScriptManagerManaged.Trace( "number of nav fixes to read from journal file=" + str( numnfs ) )
  7267.  
  7268. # read all the navigation fixes
  7269. while numnfs > 0:
  7270. numnfs -= 1
  7271. nfgmtdatetime = DateTime()
  7272. nfdatetime = DateTime()
  7273. nftimezonemodifier = 0
  7274. iscelestialfix = False
  7275. #if v6style or v7style:
  7276. if v6style:
  7277. nfgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
  7278. nfdatetime = DateTime.FromBinary( br.ReadInt64() )
  7279. nftimezonemodifier = Single( ( nfdatetime - nfgmtdatetime ).TotalSeconds )
  7280. iscelestialfix = br.ReadBoolean()
  7281. elif v7style:
  7282. nfgmtdatetime = DateTime.FromBinary( br.ReadInt64() )
  7283. nftimezonemodifier = br.ReadSingle()
  7284. iscelestialfix = br.ReadBoolean()
  7285. #ScriptManagerManaged.Trace( "NavFix: DateTime (GMT)=" + str( nfgmtdatetime ) + "\ttimezonemodifier=" + str( nftimezonemodifier ) )
  7286. fixlocation = PointF( br.ReadSingle(), br.ReadSingle() )
  7287. sublocation = PointF( br.ReadSingle(), br.ReadSingle() )
  7288. txt = br.ReadString()
  7289. if readnavfixes:
  7290. createfix = True
  7291. for navfix in GetNavigationFixes():
  7292. if fixlocation.X == navfix[ 1 ].X and fixlocation.Y == navfix[ 1 ].Y:
  7293. createfix = False
  7294. break
  7295. if createfix:
  7296. if pmvis:
  7297. #navfixestocreate.append( [ PointF( fixlocation.X, fixlocation.Y ), PointF( sublocation.X, sublocation.Y ), txt, nfgmtdatetime, nfdatetime, iscelestialfix ] )
  7298. navfixestocreate.append( [ PointF( fixlocation.X, fixlocation.Y ), PointF( sublocation.X, sublocation.Y ), txt, nfgmtdatetime, nftimezonemodifier, iscelestialfix ] )
  7299. else:
  7300. from Pagelayout import CreateNewNavFix
  7301. #CreateNewNavFix( fixlocation.X, fixlocation.Y, sublocation.X, sublocation.Y, False, txt, nfgmtdatetime, nfdatetime, iscelestialfix )
  7302. CreateNewNavFix( fixlocation.X, fixlocation.Y, sublocation.X, sublocation.Y, False, txt, nfgmtdatetime, nftimezonemodifier, iscelestialfix )
  7303.  
  7304. # set the current position to the latest fix
  7305. lasttime = None
  7306. location = None
  7307. for navfix in GetNavigationFixes():
  7308. #info = navfix[ 0 ]
  7309. #for ctrl in info.Controls:
  7310. # if ctrl.Name == "Description":
  7311. # txt = ctrl.Text.split( "\n" )
  7312. # txt = txt[ 0 ].split( '(' )
  7313. # txt = txt[ 0 ].Trim()
  7314. # dt = DateTime.Parse( txt )
  7315. #
  7316. # if dt > lasttime or lasttime == None:
  7317. # lasttime = dt
  7318. # location = navfix[ 1 ]
  7319. # break
  7320. dt = navfix[ 3 ]
  7321. if dt > lasttime or lasttime == None:
  7322. lasttime = dt
  7323. location = navfix[ 1 ]
  7324.  
  7325. try:
  7326. from PageDefaultHud import PageDefaultHud_MapGroup_Mapcontrol
  7327. from Pagenavigationmap import Pagenavigationmap_Mapcontrol
  7328. # keep track of current position
  7329. Pagenavigationmap_Mapcontrol.SubmarineContact[ "CurrentPositionFix" ] = PointF( location.X, location.Y )
  7330. PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact[ "CurrentPositionFix" ] = PointF( location.X, location.Y )
  7331. # store the new sub's actual position
  7332. PageDefaultHud_MapGroup_Mapcontrol.SubmarineContact[ "LastPositionFixActualPosition" ] = PointF( location.X, location.Y )
  7333. Pagenavigationmap_Mapcontrol.SubmarineContact[ "LastPositionFixActualPosition" ] = PointF( location.X, location.Y )
  7334. except:
  7335. pass
  7336. except:
  7337. br.Close()
  7338. ScriptManagerManaged.Trace( Menu.GetLocalizedText( IDSTR_UnableToRead ) + " " + importfilepath )
  7339. return False
  7340.  
  7341. br.Close()
  7342.  
  7343. SetShipsJournal( newjournal )
  7344.  
  7345. SortShipsJournal()
  7346.  
  7347. #ScriptManagerManaged.Trace( "Read ship's journal:" )
  7348. #sj = GetShipsJournal()
  7349. #for entry in sj:
  7350. # ScriptManagerManaged.Trace( str( entry ) )
  7351.  
  7352. return True
  7353.  
  7354.  
  7355. def SortShipsJournal():
  7356. oldjournal = GetShipsJournal()
  7357. ojl = len( oldjournal )
  7358.  
  7359. if ojl < 2:
  7360. return
  7361.  
  7362. newjournal = []
  7363. newjournal.append( oldjournal[ 0 ] )
  7364.  
  7365. for i in range( 1, ojl ):
  7366. index = 0
  7367. inserted = False
  7368.  
  7369. for entry in newjournal:
  7370. if oldjournal[ i ][ 1 ] < entry[ 1 ]:
  7371. newjournal.insert( index, oldjournal[ i ] )
  7372. inserted = True
  7373. break
  7374. index += 1
  7375.  
  7376. if not inserted:
  7377. newjournal.append( oldjournal[ i ] )
  7378.  
  7379. SetShipsJournal( newjournal )
  7380.  
  7381.  
  7382. ########################################################################################################
  7383. def EndGame():
  7384. ScriptManagerManaged.Trace( "TheDarkWraithUserOptions EndGame" )
  7385. TheDarkWraithUserOptions[ "OnSetNewRadioMessage" ] = None
  7386. TheDarkWraithUserOptions[ "OnSetNewRadioMessageCaller" ] = None
  7387.  
  7388. Automation.StopAllScripts()
  7389.  
  7390.  
  7391. ########################################################################################################
  7392. def UnloadScript():
  7393. ScriptManagerManaged.Trace( "Destroying Automation" )
  7394. global Automation
  7395. if Automation != None:
  7396. Automation.Destroy()
  7397. Automation = None
  7398.  
  7399. ScriptManagerManaged.Trace( "Destroying TDWSoan" )
  7400. global tdwsoan
  7401. if tdwsoan != None:
  7402. tdwsoan.Destroy()
  7403. tdwsoan = None
  7404.  
  7405. ScriptManagerManaged.Trace( "Destroying TDWSound" )
  7406. global tdwsound
  7407. if tdwsound != None:
  7408. tdwsound.Destroy()
  7409. tdwsound = None
  7410.  
  7411. ScriptManagerManaged.Trace( "Destroying TDWRadioMessages" )
  7412. global RadioMessages
  7413. if RadioMessages != None:
  7414. RadioMessages.Destroy()
  7415. RadioMessages = None
  7416.  
  7417. ScriptManagerManaged.Trace( "Destroying TDWMouse" )
  7418. global tdwmouse
  7419. if tdwmouse != None:
  7420. tdwmouse.Destroy()
  7421. tdwmouse = None
  7422.  
  7423. ScriptManagerManaged.Trace( "Destroying TDWDestroyedMarks" )
  7424. global tdwdestroyedmarks
  7425. if tdwdestroyedmarks != None:
  7426. tdwdestroyedmarks.Destroy()
  7427. tdwdestroyedmarks = None
  7428.  
  7429. ScriptManagerManaged.Trace( "Destroying TDWFileUtils" )
  7430. TDWFileUtils.Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement