Commit Graph

412 Commits

Author SHA1 Message Date
Víctor Aguilera Puerto 4f397e1ce2
Fix warnings (#723) 2020-02-23 00:28:50 +01:00
Acruid ee6eec9c40 SubscribeEvent() has been split into SubscribeNetworkEvent() and SubscribeLocalEvent() methods on EntitySystem.
Most methods on EntityEventBus now require callers to specify the source (Local or Network) of the events.
2020-02-19 17:08:59 -08:00
Acruid e719745b10 Removed the Sender object from events. If you needed this field, add it to the event class. 2020-02-19 14:39:00 -08:00
Acruid c51533686b Updates the Content EntitySystems with the changes to the event API.
Visual Studio wants to update the version of the solution, and change some GUIDs around.
2020-02-18 19:43:54 -08:00
Pieter-Jan Briers 08fcbdf271
Populate tutorial window key binds with proper key names. 2020-02-17 11:29:52 +01:00
Pieter-Jan Briers 011ac0fd7d
Fix inverted triangle path on Linux.
@ShadowCommander you messed up the casing on the file path.
2020-02-17 11:29:19 +01:00
Pieter-Jan Briers cd8025b87e
Merge branches '20-02-17-upd' and 'triangle' 2020-02-17 11:19:15 +01:00
micheel665 987a39c25e
Added a button to add entities to storage items (#709) 2020-02-17 00:19:35 +01:00
ShadowCommander 983d626ce4 Fix Styling 2020-02-14 18:05:35 -08:00
ShadowCommander 92030c6724 Update NanoStyle for refactored Button and CheckBox 2020-02-14 04:18:14 -08:00
ShadowCommander 718bf0edc3 Update Button references 2020-02-14 04:17:07 -08:00
Pieter-Jan Briers 7f9d2f9dbf
Fix ClientStatusEffectsComponent breaking after re-attaching to mob.
Fixes #689
2020-02-13 23:18:53 +01:00
ShadowCommander 3292939756
Unset FocusChat when returning to main menu (#691)
Fixes #403
2020-02-13 15:14:03 +01:00
ShadowCommander 5f26944df9 Add styles for ContainerButton and OptionButton 2020-02-13 00:47:46 -08:00
adrian 9544099c99
Paper and pen (#582)
* A very basic paper and pen implementation

* Removes SharedWriteComponent

* Update ContentNetIDs.cs
2020-02-12 00:01:05 +01:00
moneyl b965dfea33
Fix toggle UI keybind in tutorial window (#669)
Is shift + f4, not F1
2020-02-09 23:35:35 +01:00
Acruid d16f433f45 Adds test to make sure that calling IComponent.HandleComponentState() with null states does not throw an exception.
Fixes state handling code on components to not throw exceptions when called with null components.
2020-02-09 02:28:47 -08:00
ShadowCommander 092f234943
Add a check to make sure the CombatMode is the current player (#663) 2020-02-09 10:42:44 +01:00
moneyl a2a3e5e2e4
Fix issues with exploding items from own hand (#645)
* Fix crash in CameraRecoilComponent from NaN values

Doesn't proceed with camera shake if either component of recoil is NaN.

* Log NaN recoil value in CameraRecoilComponent

* Fix ExplosionHelper passing NaN recoil values when exploding from hand

With other commits CameraRecoilComponent now won't crash from NaN recoil values. Still want to fix this so explosions shake the camera. Just sets a value slightly greater than 0.0 for distance if it is (0.0, 0.0)
2020-02-08 20:46:12 +01:00
Pieter-Jan Briers eb7c80ba7a
You can no longer place unless you are in admin or sandbox. 2020-02-08 20:45:02 +01:00
moneyl d8afa6bc03
Update & improve tutorial window (#586)
* Update & improve tutorial window

- Fix scroll bar not showing up till window is resized/scrolled.
- Update keybinds and information.
- Add "quick controls" before detailed explanation for quick reference.
- Add section headers with larger font.

* Add more keybinds

Adds more keybinds from keybinds.yml

* Address code review

- Remove paragraph explaining controls in favor of quick list.
- Remove use of ForceRunLayoutUpdate(). Need to find bug causing scroll bar to not show up until resize. Can do in separate PR.

* Add gameplay section

Adds gameplay section with some important notes on respawning and combat node.

* Fix typo

"it's keybind" -> "its keybind"
2020-02-07 00:07:13 +01:00
moneyl 184f2fb68d
Remove duplicate code in client EntryPoint.cs (#580) 2020-02-06 16:13:10 +01:00
Acruid 35dc6b2eee Fixed bug where the mouse highlighting was always red on an entity when the grid was offset from the map origin. 2020-02-04 22:28:46 -08:00
Tad Hardesty 7438ef96ad
Remove unused variable in VerbSystem (#581) 2020-02-02 22:39:40 +01:00
moneyl 33cf29978a
Sandbox window improvements (#578)
* Several sandbox manager improvements

- Bound sandbox manager to B key as it lists on the UI
- Bound entity spawner to F5
- Bound tile spawner to F6
- Made entity spawner and tile spawner toggle instead of repeated spawning new windows from the sandbox panel

* Move relevant keyfunctions from engine to content

Turns out it was unnecessary to have the key functions in the engine as all code using the ones added here are in content.
2020-02-02 22:38:51 +01:00
moneyl 972d601664
Add solution pouring / click-transfer (#574)
* Add click-based solution transfer

For example, clicking on a beaker with a soda can to transfer the soda to the beaker. Works on plain solution containers like beakers and also on open drink containers like soda cans as long as they have the `PourIn` and `PourOut` solution  capabilities. If no `SolutionComponent` is added to a drink entity, the `DrinkComponent` will give the entity one. This PR extends that behavior slightly by also giving these default `SolutionComponent`'s the proper capabilities for pouring in/out.

* Improve fix for poured drinks not immediately disappearing

Instead of making `DrinkComponent.Use` public this 
 splits out the code important to both users and made that function public, leaving `Use` private.

* Shorten solution transfer popup

* Make code review changes

- Move pouring code from SolutionComponent to new PourableComponent. Added PourableComponent to client ignore list and added to existing container prototypes.
- Added EmptyVolume property to shared SolutionComponent for convenience.
- Removed DrinkComponent fix from pouring AttackBy code. Instead DrinkComponent subscribes to the SolutionChanged action and updates its self when necessary.
- Fixed pouring being able to add more than a containers max volume and sometimes deleting reagents.
- Added message for when a container is full.

* More code review changes

- Remove IAttackBy ComponentReference attribute in PourableComponent
- Remove _transferAmount from shared SolutionComponent. Left over var from previous commit not being used anymore.
2020-01-29 02:07:02 +01:00
Pieter-Jan Briers 5243530d81
Fix crash on reconnect. 2020-01-26 23:53:33 +01:00
Pieter-Jan Briers 1d98152953
Fix grabbing things out of storage items doing an attack sometimes. 2020-01-26 16:17:24 +01:00
Tad Hardesty a6f8ee317f Fix parallax on resolutions greater than 1920x1080 (#564) 2020-01-26 14:02:12 +01:00
Pieter-Jan Briers 2ec493e2af
Combat mode improvements.
You now need to hold the mouse for 0.15 seconds in combat mode to actually do an attack.

Otherwise it's regular item interaction (for now).
2020-01-26 03:38:51 +01:00
Pieter-Jan Briers 7e43d574d8
Fix opening context menus for world entities. 2020-01-25 23:35:03 +01:00
Pieter-Jan Briers daf3c28929
Use PopupContainer for verbs & examine popups.
Fixes #501
2020-01-25 17:28:39 +01:00
DamianX 4a833e82cd Update character list when one of them is selected (#561) 2020-01-25 14:37:04 +01:00
Acruid a692899f5b GridCoordinates API changes. 2020-01-25 01:39:14 -08:00
Acruid a86363a6d2 API changes, renamed SpawnEntityAt to SpawnEntity. 2020-01-24 16:10:48 -08:00
Acruid 4ab7f1dcb3 Removed the `StateType` property from every component. This field was completely unused except for a debug assertion. 2020-01-24 14:10:36 -08:00
Pieter-Jan Briers f95c5b7921
Adds job icons to the job list. 2020-01-24 16:31:18 +01:00
DamianX 46ce6bf45e Implemented random character creation (#548)
* Implemented random character creation

* Pick from a list and apply a bit of randomness instead

* Rename SetInitialData, unselect list entries properly
2020-01-24 00:56:26 +01:00
Pieter-Jan Briers 5af5a02e31
Fixes ICharacterUI scene controls getting disposed when CharacterInterface is removed.
Fixes #550
2020-01-24 00:54:17 +01:00
moneyl 86d1f808af Fix more unknown component errors (#545)
Fixed UseDelayComponent not being on the ignore list of Content.Client and removed seemingly erroneous `Timing` component used in bike_horn.yml
2020-01-23 01:09:56 +01:00
Pieter-Jan Briers 5a5e8f0e31
Fixes notify messages causing an exception in UI update.
Fixes #539
2020-01-22 23:59:41 +01:00
Pieter-Jan Briers 559367ee55
Content.{Client,Server} are now Exes that can be ran. 2020-01-22 20:17:32 +01:00
moneyl eb7f592154 Add more client/server only components to registerIgnore lists (#534)
Fixes a few warnings from components not added to the ignore list on client/server.
2020-01-21 18:12:50 +01:00
Pieter-Jan Briers 9beb7e48d4
Implement female uniform masking. 2020-01-21 18:11:15 +01:00
Pieter-Jan Briers 32fae60930
Make slot buttons in character setup less wide.
Most normal names will fit easily.
2020-01-21 03:37:27 +01:00
Pieter-Jan Briers 6537aead64
Use MapCoordinates.Nullspace 2020-01-20 22:26:28 +01:00
Pieter-Jan Briers ba88b2b1da
Update NuGet dependencies.
EFCore excluded because I'm still using .NET Core Runtime 3.1.0 instead of 3.1.1
2020-01-20 20:44:36 +01:00
Pieter-Jan Briers bdc637d3af
Remove unused field to fix compiler warning. 2020-01-20 20:33:24 +01:00
Pieter-Jan Briers 77fcc4a673
Use TG human sprites. 2020-01-20 15:13:03 +01:00
Pieter-Jan Briers f6fe9ce85c
Show job title in character setup. 2020-01-20 10:30:06 +01:00