1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00
Commit Graph

60 Commits

Author SHA1 Message Date
tobspr
222ea8c261 Merge steam-demo branch 2022-06-06 14:06:09 +02:00
Dimava
561318b7db
mark all abstract functions abstract (#1383) 2022-02-15 08:31:47 +01:00
tobspr
c41aaa1fc5
Mod Support - 1.5.0 Update (#1361)
* initial modloader draft

* modloader features

* Refactor mods to use signals

* Add support for modifying and registering new transltions

* Minor adjustments

* Support for string building ids for mods

* Initial support for adding new buildings

* Refactor how mods are loaded to resolve circular dependencies and prepare for future mod loading

* Lazy Load mods to make sure all dependencies are loaded

* Expose all exported members automatically to mods

* Fix duplicate exports

* Allow loading mods from standalone

* update changelog

* Fix mods folder incorrect path

* Fix modloading in standalone

* Fix sprites not getting replaced, update demo mod

* Load dev mod via raw loader

* Improve mod developing so mods are directly ready to be deployed, load mods from local file server

* Proper mods ui

* Allow mods to register game systems and draw stuff

* Change mods path

* Fix sprites not loading

* Minor adjustments, closes #1333

* Add support for loading atlases via mods

* Add support for loading mods from external sources in DEV

* Add confirmation when loading mods

* Fix circular dependency

* Minor Keybindings refactor, add support for keybindings to mods, add support for dialogs to mods

* Add some mod signals

* refactor game loading states

* Make shapez exports global

* Start to make mods safer

* Refactor file system electron event handling

* Properly isolate electron renderer process

* Update to latest electron

* Show errors when loading mods

* Update confirm dialgo

* Minor restructure, start to add mod examples

* Allow adding custom themesw

* Add more examples and allow defining custom item processor operations

* Add interface to register new buildings

* Fixed typescript type errors (#1335)

* Refactor building registry, make it easier for mods to add new buildings

* Allow overriding existing methods

* Add more examples and more features

* More mod examples

* Make mod loading simpler

* Add example how to add custom drawings

* Remove unused code

* Minor modloader adjustments

* Support for rotation variants in mods (was broken previously)

* Allow mods to replace builtin sub shapes

* Add helper methods to extend classes

* Fix menu bar on mac os

* Remember window state

* Add support for paste signals

* Add example how to add custom components and systems

* Support for mod settings

* Add example for adding a new item type

* Update class extensions

* Minor adjustments

* Fix typo

* Add notification blocks mod example

* Add small tutorial

* Update readme

* Add better instructions

* Update JSDoc for Replacing Methods (#1336)

* upgraded types for overriding methods

* updated comments

Co-authored-by: Edward Badel <you@example.com>

* Direction lock now indicates when there is a building inbetween

* Fix mod examples

* Fix linter error

* Game state register (#1341)

* Added a gamestate register helper

Added a gamestate register helper

* Update mod_interface.js

* export build options

* Fix runBeforeMethod and runAfterMethod

* Minor game system code cleanup

* Belt path drawing optimization

* Fix belt path optimization

* Belt drawing improvements, again

* Do not render belts in statics disabled view

* Allow external URL to load more than one mod (#1337)

* Allow external URL to load more than one mod

Instead of loading the text returned from the remote server, load a JSON object with a `mods` field, containing strings of all the mods. This lets us work on more than one mod at a time or without separate repos. This will break tooling such as `create-shapezio-mod` though.

* Update modloader.js

* Prettier fixes

* Added link to create-shapezio-mod npm page (#1339)

Added link to create-shapezio-mod npm page: https://www.npmjs.com/package/create-shapezio-mod

* allow command line switch to load more than one mod (#1342)

* Fixed class handle type (#1345)

* Fixed class handle type

* Fixed import game state

* Minor adjustments

* Refactor item acceptor to allow only single direction slots

* Allow specifying minimumGameVersion

* Add sandbox example

* Replaced concatenated strings with template literals (#1347)

* Mod improvements

* Make wired pins component optional on the storage

* Fix mod examples

* Bind `this` for method overriding JSDoc (#1352)

* fix entity debugger reaching HTML elements (#1353)

* Store mods in savegame and show warning when it differs

* Closes #1357

* Fix All Shapez Exports Being Const (#1358)

* Allowed setting of variables inside webpack modules

* remove console log

* Fix stringification of things inside of eval

Co-authored-by: Edward Badel <you@example.com>

* Fix building placer intersection warning

* Add example for storing data in the savegame

* Fix double painter bug (#1349)

* Add example on how to extend builtin buildings

* update readme

* Disable steam achievements when playing with mods

* Update translations

Co-authored-by: Thomas (DJ1TJOO) <44841260+DJ1TJOO@users.noreply.github.com>
Co-authored-by: Bagel03 <70449196+Bagel03@users.noreply.github.com>
Co-authored-by: Edward Badel <you@example.com>
Co-authored-by: Emerald Block <69981203+EmeraldBlock@users.noreply.github.com>
Co-authored-by: saile515 <63782477+saile515@users.noreply.github.com>
Co-authored-by: Sense101 <67970865+Sense101@users.noreply.github.com>
2022-02-01 16:35:49 +01:00
tobspr
f61f25934f Add setting to always show shape tooltip 2021-08-26 14:29:22 +02:00
tobspr
012818841d Wegame version adjustments 2021-08-16 12:34:40 +02:00
tobspr
1025bede1f Add wires tutorial 2020-10-08 19:40:58 +02:00
tobspr
5a96e76151 Allow configuring map resources scale 2020-10-08 09:13:53 +02:00
tobspr
38ba763897 Allow disabling zoom towards cursor 2020-10-07 19:12:49 +02:00
tobspr
fa27d1681f Cleanup IS_DEMO flags and introduce Restriction Manager 2020-10-07 09:48:31 +02:00
tobspr
fbff0a0ad4 Allow to pan the map with the mouse by moving the cursor to the edges of the screen 2020-09-19 20:30:35 +02:00
tobspr
47443058e0 Add potato mode 2020-09-19 10:34:46 +02:00
tobspr
10507b735a Update settings version and changelog 2020-09-13 09:22:17 +02:00
Exund
3741934b39
Add a setting to disable picking the miner when on a resource patch (#649)
* Add a setting to disable picking the miner when on a  resource patch

* Fix that one space :D

Linter go brrrr

Co-authored-by: dengr1065 <dengr1065@gmail.com>
2020-09-13 09:19:53 +02:00
tobspr
6042fcba62 Properly implement sound and music volumes, debounce writes 2020-09-13 08:40:56 +02:00
Yoshie2000
50e40888fd
Music & Sound volume sliders in the settings menu (#611)
* Added music & sound volume sliders in the settings menu

* Changed the order of the sound options in the settings menu

* Fixed the formatting, removed extra semicolon

* Removed a bad character

* Update base-en.yaml

* Updated base-en.yaml

* Removed trailing spaces

* Type safety fixes

* Replaced logical XOR (^) with !==
2020-08-31 15:46:21 +02:00
tobspr
9b8745535b Refactor item processor to use charges and thus be more correct, even at low tick rates 2020-08-30 15:31:53 +02:00
tobspr
bca379ee89 Add setting to show chunk borders 2020-08-29 22:52:52 +02:00
tobspr
78fe34840a Fix buildings not working at their advertised speed, closes #440, closes #442, closes #437, closes #449 2020-08-29 22:35:30 +02:00
tobspr
b210db2361 Revert item filter behaviour 2020-08-29 10:45:38 +02:00
tobspr
e6b5f8d2ed Added setting to be able to delete buildings while placing, closes #45 2020-08-28 21:05:20 +02:00
tobspr
9085f32ec3 Add multiple performance settings 2020-08-14 09:38:48 +02:00
moonheart08
c0b905b74a
Add support for a 75hz simulation target (#517)
Entirely untested, I just wanted to avoid having it sit as an issue forever and as such just quickly added it with the github editor. Someone actually check it please. 😅
2020-08-06 11:21:26 +02:00
tobspr
209fc76fc7 Update ui design 2020-07-23 09:07:51 +02:00
dengr1065
2df1b8d014
Major ui changes (#482)
* "discord" -> "Discord", sync most translations

* that major settings update you'll like

* Finish new settings, add logo to about page

* sync & format translations
2020-07-23 08:48:23 +02:00
Bjorn Stromberg
cb1ff53338 Add TSLint to github actions, fix existing type errors 2020-07-22 11:15:16 +09:00
tobspr
3672f52619 Add 120hz refresh rate 2020-06-28 10:24:11 +02:00
tobspr
7ca425c8f3 Fix belt rendering bug 2020-06-25 12:53:59 +02:00
tobspr
15a4e0c580 Fix settings version 2020-06-24 19:01:19 +02:00
Magnus Grimstvedt Saltnes
553ebb5ef6 Switches to using ES6 get/set for currentBaseRotation. 2020-06-23 12:22:24 +02:00
Magnus Grimstvedt Saltnes
9a00931c3f Implements some linter recommendations for CI check. 2020-06-23 12:15:59 +02:00
Magnus Grimstvedt Saltnes
c7f8b50d13 Adds tracking for rotation per building type.
Adds a setting to go back to one global base rotation.
2020-06-23 12:13:29 +02:00
tobspr
9a67115ba7 Color blind mode 2020-06-22 14:32:24 +02:00
tobspr
f204189fdb Refactor smart underground belt logic 2020-06-22 12:48:35 +02:00
tobspr
a8b37792e4 Allow configuring autosave interval 2020-06-22 12:09:02 +02:00
hexagonhexagon
5d601a94be Add setting to disable cut/delete dialogs. 2020-06-21 19:11:20 -04:00
tobspr
47b3ed5cbf Add option to render info boxes compact 2020-06-21 20:47:37 +02:00
tobspr
d198fcad4f
Merge pull request #197 from dengr1065/dark-theme-is-cool
Dark Theme - slowly for everything
2020-06-21 20:19:01 +02:00
tobspr
317b7d72ff Add setting to disable vignette 2020-06-17 13:58:59 +02:00
dengr1065
97c52169da Changelog, support for dark theme in document root 2020-06-17 02:55:13 +03:00
tobspr
b753187cde Add setting to disable smart tunnels 2020-06-16 19:24:23 +02:00
mini-bomba
b6e03d6cd0
Fixed standalone only setting hint not being translated 2020-06-16 14:51:48 +02:00
tobspr
0985a36793 Allow higher tickrates 2020-06-13 11:13:28 +02:00
tobspr
7fd0451ddc Minor adjustments 2020-06-12 19:12:35 +02:00
mini-bomba
107a3ef69c
Added movement speed setting 2020-06-12 00:47:59 +02:00
mini-bomba
2196299fff
New langkeys: settings.labels.theme.themes
Basically allows you to translate theme names to your language instead of them being hard-coded
2020-06-11 17:18:10 +02:00
tobspr
714cd449e9 Initial support for translations 2020-06-10 12:13:38 +02:00
tobspr
90c7b87e31 Minor UX Improvements 2020-06-10 11:49:33 +02:00
tobspr
8c85018352 Added setting to configure zoom / mouse wheel / touchpad sensitivity 2020-06-01 13:05:15 +02:00
tobspr
f03f04caa1 Allow to disable hints, add changelog 2020-05-23 15:04:55 +02:00
tobspr
53fccd241b Fix migration 2020-05-23 12:36:59 +02:00