Commit Graph

191 Commits

Author SHA1 Message Date
Joonas Rikkonen da3e325ffc (58b5b8b6a) Fixed nullref exception when trying to spawn items with the "spawnitem" command when a round is not running 2019-04-18 12:33:25 +03:00
Joonas Rikkonen 6aef4073b7 (73782c3bc) Don't prevent selecting items in the sub editor when the cursor is on a wire node, because it makes it very difficult (or impossible) to select items in the wiring mode. + Don't start moving wire nodes unless the cursor is moved by at least 16px from the initial position of the node. 2019-04-18 12:05:43 +03:00
Joonas Rikkonen b0580a9050 (7e43eae73) Optimized Item.ApplyStatusEffects & ItemComponent.PlaySound: check if the item has effects/sounds of the correct type from a bool array instead of doing a dictionary lookup. A small thing, but the methods are called so frequently that it adds up to a lot. 2019-04-18 12:05:11 +03:00
Joonas Rikkonen 1a3184dbad (4c452f172) Force reactor IsActive=true when an AI character or a remote player operates it. Previously this was only done in UpdateHUD, so inactive reactors would not become enabled. 2019-04-18 12:04:56 +03:00
Joonas Rikkonen fdacc4534b (c14dcd3d6) Support for multi-target monster missions 2019-04-18 12:03:07 +03:00
Joonas Rikkonen 6262b3ea54 (ce8e185aa) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-16 17:12:09 +03:00
Joonas Rikkonen bd07acf26d (052ab6307) Use MonoKickstart on Linux so installing Mono is not required, fixed division by zero if the width of the server console window is 0 2019-04-16 17:11:49 +03:00
Joonas Rikkonen 8290c577d8 (1dd58d3ff) CustomInterface editor shows each label/signal as a separate textbox (w/ text picker option) 2019-04-15 12:10:05 +03:00
Joonas Rikkonen ed38e60d13 (32ba1d322) When editing an item label or a room name, the text is colored gray/green according to whether the text can be translated (= if a matching text tag is found in the language files). There's also now a "text picker menu" that can be used to pick the text from a list of translatable texts. TODO: use this in ItemComponent.Msg and CustomInterface button/tickbox labels. 2019-04-15 12:07:27 +03:00
Joonas Rikkonen 66de47f041 (a83cec9d6) Made room names translatable, added "RoomName." to all room names in EnglishVanilla.xml 2019-04-15 12:06:58 +03:00
Joonas Rikkonen d7e41d95af (bb287fabc) Decreased simple physics distance, sonar now displays characters that are in simple physics mode 2019-04-11 18:28:38 +03:00
Joonas Rikkonen 9f55da3677 (8d282f4cc) Hide the crew area and the chat box when using a controller (= aiming with a turret or similar item). 2019-04-10 15:13:25 +03:00
Joonas Rikkonen 71128c27e6 (7764eef2d) CustomInterfaces can apply status effects when a button is pressed or depending on the state of a tickbox (OnUse when the tickbox is checked, OnSecondaryUse otherwise). 2019-04-08 23:11:56 +03:00
Joonas Rikkonen 71d546ff7f (f36b3a111) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-08 19:17:50 +03:00
Joonas Rikkonen 9a829206af (2c264b075) Improve readability (no functional changes). 2019-04-08 19:17:06 +03:00
Joonas Rikkonen 4902de606b (5d9bdaea4) Deterioration values (timer, deterioration rate, whether the timer is currently running, item condition) are visible in debugdraw, fixed items that should only deteriorate for X seconds after being used deteriorating continuously 2019-04-08 15:59:53 +03:00
Joonas Rikkonen d15a88c619 (3e8bdbb0a) v0.8.9.9 + merge fix 2019-04-06 17:54:39 +03:00
Joonas Rikkonen f043ac26f4 (5754c8b91) Fixed incorrectly placed gap in Typhon's cargo room 2019-04-06 17:52:36 +03:00
Joonas Rikkonen dc8b49b5b6 (e3f5b70a3) Updated vanilla sub preview images (resolution 1024 x 448-512) 2019-04-06 17:52:23 +03:00
Joonas Rikkonen f80e9a29a7 (301f0a344) Option to set a custom preview image for subs 2019-04-06 17:50:53 +03:00
Joonas Rikkonen c19899769e (cb10b53db) Fixed GUIImage.RecalculateScale throwing an exception if the sprite is not set, use relative scales in GUINumberInput to make the child elements scale dynamically with the parent 2019-04-06 17:50:40 +03:00
Joonas Rikkonen 7b3ccde624 (46f58eedd) Set submarine preview image resolution back to 256x128. For some reason, higher resolutions seem to cause hangs for when loading the image. I suspected it was because of encoding the image as a Base64 string into the xml, but that doesn't seem to case: I tried saving the image as a separate file instead, and it still causes the same problem (see #19 in the private repo). 2019-04-06 17:50:27 +03:00
Joonas Rikkonen 8d8478432f (00783cc63) Don't premultiply submarine preview image alpha, fixed background texture not covering the whole preview image when using an image resolution larger than the size of the texture 2019-04-06 17:50:13 +03:00
Joonas Rikkonen 4359de7b7e (f6b392c84) Fixed TextureLoader.FromStream always premultiplying the alpha channel regardless of the value of the preMultiplyAlpha argument 2019-04-06 17:49:59 +03:00
Joonas Rikkonen 8cb5576955 (abdc60f9d) Resaved vanilla subs with higher-res preview images 2019-04-06 17:49:46 +03:00
Joonas Rikkonen 14d0daf16d (ccef21f63) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-06 17:49:31 +03:00
Joonas Rikkonen 45c1ed499a (e326112f5) Increased discharge coil sound range and added camera shake to make it more noticeable when it's used 2019-04-06 17:49:18 +03:00
Joonas Rikkonen ea463acc60 (e7176c489) Tweaks to the workshop screen 2019-04-06 17:49:05 +03:00
Joonas Rikkonen 3f42d889a2 (166d035d7) New powerOn sounds 2019-04-06 17:48:52 +03:00
Joonas Rikkonen 110a63b88b (5bd37e693) Removed PAX.sub 2019-04-06 17:48:38 +03:00
Joonas Rikkonen d1d0a083b4 (2986c8359) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-06 17:48:26 +03:00
Joonas Rikkonen c94f888c4d (5d73de170) Fixed RefreshSavedSub removing an extra sub from the list (causing an index out of range exception if refreshing a sub at the end of the list) 2019-04-06 17:48:13 +03:00
Joonas Rikkonen 8e56174d28 (6a236c1f3) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-06 17:47:58 +03:00
Joonas Rikkonen ebb62d2fd2 (a432c283e) Fixed popping texture when fixing reactor 2019-04-06 17:47:45 +03:00
Joonas Rikkonen 4238676548 (80a1a0003) Made electrical engineers responsible for operating the reactor. 2019-04-06 17:47:32 +03:00
Joonas Rikkonen 8713b0ba8e (9a1210d72) Fixed not being able to zoom out fully with turrets 2019-04-06 17:47:20 +03:00
Joonas Rikkonen 7e49140920 (9a23cb0c4) New decoy sprite 2019-04-06 17:47:07 +03:00
Joonas Rikkonen 0725e1c4b2 (1d7e76d1f) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-06 17:46:55 +03:00
Joonas Rikkonen f958f5fb44 (248ac43ed) Added inventory icons for Physicorium items armor, helmet, ammunition box and spear + normal and explosive spear (not yet implemented) 2019-04-06 17:46:42 +03:00
Joonas Rikkonen 6fed28e80b (b00ce5ec2) Fixed character's feet levitating when standing at the base of a staircase without climbing it. Closes #1275 2019-04-05 16:21:41 +03:00
Joonas Rikkonen 6199f68999 (3fde2a20d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-05 16:21:26 +03:00
Joonas Rikkonen a3ff707a31 (cf99ace8a) Fix bots entering the combat state if taking damage from falling etc. 2019-04-05 16:21:12 +03:00
Joonas Rikkonen 69c414dfc9 (34cca982f) Steering tweaks that should fix bots not being able to proceed on ladders when the next waypoint is not on the ladder but the one after that is. 2019-04-05 16:20:58 +03:00
Joonas Rikkonen 11a77e3694 (83dad7f87) Fixed crashing when attempting to use the turrets in character mode in the sub editor 2019-04-05 16:20:42 +03:00
Joonas Rikkonen e086af2c6f (bebc37619) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-05 16:20:27 +03:00
Joonas Rikkonen 25768d8845 (4b54fb4bf) Refactor AIObjectiveCombat and the reactions to the damage. Fixes bots not reacting to any damage done with repair tools. Now they should flee (but not retaliate). 2019-04-05 16:20:11 +03:00
Joonas Rikkonen 501a114000 (4119dec1c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-05 16:19:55 +03:00
Joonas Rikkonen d7364171fb (e31a38ae1) Fixed spritebatch not being disposed when saving submarine preview images, don't reload all subs when saving a sub 2019-04-05 16:19:40 +03:00
Joonas Rikkonen 592683afa8 (4cdc7cef2) Changed Pause Menu quit button to say "Main Menu" as you aren't closing the game when pressing it 2019-04-05 16:19:22 +03:00
Joonas Rikkonen 161f725778 (2b36813ef) Added Back button to submarine editor 2019-04-05 16:19:07 +03:00