Regalis
39ddd63e0c
Removed references to GameMain from GUIListBox & GUITextBlock (-> launcher works again)
2017-05-02 23:39:09 +03:00
Regalis
f92c2df9f7
TextBoxes align text to the right and hide any overflowing text at the left if the width of the box is exceeded
2017-04-30 18:14:25 +03:00
Regalis
eddc33dc89
Smoothly scrolling listboxes, items in the boxes can be partially visible
2017-04-30 17:57:01 +03:00
Regalis
d1d8284b94
Fixed some text overflows in the labels in the vanilla subs
2017-04-28 19:50:10 +03:00
Regalis
6397bc432e
UI tweaks
2017-04-27 21:08:20 +03:00
Regalis
58de86a98f
Heal and revive debug commands can also be used on other characters than the controlled one
2017-04-24 21:34:36 +03:00
Regalis
1dad5d9bf4
Passive sonar: when not active, the sonar shows nearby sources of sound and a faint outline of the structures around them. Now it's much easier to monitor how much noise the sub is making and to hide from enemies.
...
+ Changed the visuals of the sonar a bit. The current rendering method is very inefficient though, todo: write a shader
2017-04-24 21:13:54 +03:00
Regalis
5eb01d4c50
EnemyAIController tweaking:
...
- removed the "distance accumulator" which was used to make characters reset their attack target if they haven't moved enough within a specific interval. The intention was to make characters less likely to get stuck but it seems to cause more problems than it solves.
- more frequent target updates
- characters can target entities they're previously targeted from further away (even if the target isn't within range anymore)
2017-04-24 19:49:27 +03:00
Regalis
df7daa5925
Fixed incorrectly positioned character info boxes in the info menu
2017-04-24 19:08:25 +03:00
Regalis
645df3fde6
Crew command menu and the info menu can't be open at the same time, UI layout tweaking again
2017-04-23 21:06:30 +03:00
Regalis
1d41b4958c
Item UI fix
2017-04-20 22:33:08 +03:00
Regalis
0709418ba3
Merge branch 'UI-overhaul'
...
Conflicts:
Subsurface/Source/Screens/EditMapScreen.cs
2017-04-20 21:27:40 +03:00
Regalis
2cac176c87
More UI tweaking
2017-04-20 21:24:52 +03:00
Regalis
a5d605e29b
Sub editor doesn't allow creating structures with zero width/height, fixed null exceptions when trying to remove a structure without wall sections
2017-04-20 18:02:20 +03:00
Regalis
499284dc91
UI layout tweaks
2017-04-20 17:39:32 +03:00
Regalis
acaa8697c8
Small menu fixes: open menus are closed when opening another one in the sub editor (e.g. if the save dialog box is opened when one of the entity menus are open), switching to the correct tab from the settings menu when going through the "apply changes" dialog
2017-04-18 20:08:56 +03:00
Regalis
9a5777183f
Separate sprites for horizontal and vertical scrollbars, style tweaking
2017-04-18 19:24:13 +03:00
Regalis
dc6ed7daf1
Separate component style for item UIs + option to select the style in the item config files, removed a bunch of hard-coded UI element color changes
2017-04-10 18:11:33 +03:00
Regalis
34f0ae39b6
- Sliced sprites are scaled instead of tiling (so they work properly even if the UI element is smaller than the sprite)
...
- Option to use separate sprites for different states of a GUIComponent (e.g. hovered/pressed button)
- Option to configure "child styles" for the individual elements of a GUIComponent (e.g. the background frame and the handle of a scroll bar)
2017-04-09 21:26:35 +03:00
Regalis
3844dd9dac
GUIStyle logic changes: instead of having a predetermined GUIComponentStyle for each type of GUIComponent, any GUIComponent can use any style. The GUIComponent constructors take the name of the style as a parameter, and if no style is specified, the default style for the GUIComponent in question will be used.
2017-04-08 16:46:53 +03:00
Regalis
1fe6427c05
9-Sliced UI sprites & some new UI graphics
2017-04-07 22:22:07 +03:00
Regalis
a2e21a78f9
Nicer looking explosions
2017-04-06 21:58:35 +03:00
Regalis
00b7193b6b
Minor optimizations: GUITextBlocks don't reposition and wrap the text when only the position of the text block changes (almost killed my laptop by spamming a bit too many messages to the debug console), less unnecessary floor raycasts
2017-04-06 21:58:19 +03:00
Regalis
7cb88e39e9
Attempt to fix ThrowOrIgnoreBadComparer exception in LightSource.FindRaycastHits.
...
Couldn't reproduce the crash, but I'm guessing it could be caused by CompareCCW not returning 0 if comparing a position to itself. (and if not, at least the exception is caught now)
2017-04-05 21:36:31 +03:00
Regalis
b3bbdbf589
Explosion damage is reduced if there are walls or other solid obstacles between an explosion and a character
2017-04-04 19:54:28 +03:00
Regalis
b063cf3feb
Fire sound fix: the sounds were freed after each round without ever loading them again. The sound objects still existed and had some buffer ID assigned though, causing an incorrect clip to be played or OpenAL errors to be thrown on successive rounds. (Now freed sounds always have a buffer ID of -1)
2017-04-03 20:59:02 +03:00
Regalis
83a6fcffaf
Heavily nerfed oxygen and welding fuel tank explosions
2017-04-03 20:49:12 +03:00
Regalis
2ca609855a
Particle collision and project file fixes
2017-04-03 18:32:49 +03:00
Regalis
2f638a4c01
The initial loading screen is closed if an exception is thrown during loading. Causes the game to crash due to the unloaded content, but that's better than letting the game hang on the loading screen.
2017-03-30 21:56:05 +03:00
Regalis
c368d6ddf1
- fire particle tweaking
...
- water puts out fires more slowly and the speed depends on the height of the water surface relative to the position of the firesource (instead of the volume of the water in the room)
- the extents of the firesources are visualized when debugdraw is on
- any >0.0 damage to structures has a chance of spawning some "shrapnel" particles
2017-03-30 21:50:18 +03:00
Regalis
c58d7dfd73
Animated fire & smoke particles
2017-03-30 21:32:08 +03:00
Regalis
e661724cbb
Debug console is added to GUIUpdateList after all other UI elements (because it's drawn on top of everything else)
2017-03-30 17:35:14 +03:00
Regalis
2b65392a3c
BackgroundSpriteManager takes the rotation and pivot point of the sprites into account when determining which cells of the "sprite grid" the sprite occupies (-> partially visible sprites shouldn't be culled away anymore)
2017-03-29 23:28:09 +03:00
Regalis
0e5de469d3
Fixed infinite loop in WrapText if the line length is smaller than an individual character, text scale is taken into account in GUITextBlock wrapping
2017-03-27 21:08:14 +03:00
Regalis
9ef069bf61
New head sprite
2017-03-27 01:54:48 +03:00
Regalis
4d19d0afc1
Deconstructors & fabricators drop created items on the floor if there's no more room in the inventory, deconstructor doesn't reset the activation button after deconstructing an item if there are still more items to go
2017-03-23 18:55:39 +02:00
Regalis
e9e4e5f9d3
Level cells that overlap with ruins are removed during level generation (instead of just disabling collisions with them), background sprites can spawn on ruin walls
2017-03-23 18:13:28 +02:00
Regalis
885a8c610c
Text scale in GUITextBlocks and ItemLabels can be changed, text wrapping fix (words that are too wide for one line shouldn't cause overflows anymore)
2017-03-22 23:22:54 +02:00
Regalis
7c6ea5b1c0
LightSource vertices are recalculated if another submarine within the range of the light has moved relative to the sub the light is in
2017-03-20 17:15:12 +02:00
Regalis
d6074d23ab
MonsterEvent switches state back to "not started" if the sub gets far enough from the monsters (prevents monster music from staying on), SoundPlayer plays a random default music clip if a suitable clip isn't found for the highest priority task
2017-03-19 20:34:21 +02:00
Regalis
cd0da235a2
Swimming anim fix: legs are forced back to their correct position if the thighs are bent too close to the torso (should fix characters swimming with their legs extended up over their shoulders)
2017-03-19 19:49:59 +02:00
Regalis
b38512865d
GUIListBoxes don't add children that aren't in the view to GUIUpdateList (-> can't scroll the listbox with the scroll wheel when the cursor is above/below the box)
2017-03-19 19:19:04 +02:00
Regalis
18fded1d87
Fixed a typo in the "give in" button tooltip
2017-03-19 18:31:15 +02:00
Regalis
40f5f352f5
- pasted entities are assigned to the main sub (-> entities copypasted from another sub are saved)
...
- fixed submarinebody attempting to generate a physics body for a sub with no walls if there are some other walls loaded
- MathUtils.GiftWrap doesn't throw an exception if passed an empty list of points
2017-03-15 23:59:23 +02:00
Regalis
ede3f1c393
Removed old fonts
2017-03-09 20:09:34 +02:00
Regalis
be72a04d90
Switched to the pro version of Code Bold
2017-03-09 20:04:33 +02:00
juanjp600
2d9f706998
Scale applies to newlines in ScalableFont.DrawString
2017-03-07 15:44:59 -03:00
juanjp600
7c6032e3fc
Removed GUITextBlock.caretAt
...
Just a leftover of something I tried to implement but never got around to finishing.
2017-03-07 13:56:12 -03:00
juanjp600
49b440208c
Merge branch 'master' of https://gitlab.com/poe.regalis/barotrauma
2017-03-07 13:44:52 -03:00
juanjp600
d6c292a2cc
SharpFont + ScalableFont implementation
...
https://github.com/Robmaister/SharpFont
TODO: replace Code Bold.otf with the full version, fix any bugs, build on Linux, possibly move ToolBox string wrapping and limiting logic to ScalableFont class for better results.
2017-03-07 13:44:42 -03:00