Commit graph

36 commits

Author SHA1 Message Date
67ca253f5c Add docs and otherwise improve how docs will generate 2024-12-31 13:04:20 +00:00
83d41428eb Feature rewrite
- Removed `jsx()` and `JSXFunction`. You can now use `JSX.Element` like any other `Computable` value
- `joinJSX` now always requires a joiner. Just pass the array of elements or wrap them in `<>` and `</>` if there's no joiner
- Removed `coerceComponent`, `computeComponent`, and `computeOptionalComponent`; just use the `render` function now
- It's recommended to now do `<MyComponent />` instead of `<component :is="myComponent" />`
- All features no longer take the options as a type parameter, and all generic forms have been removed as a result
- Fixed `forceHideGoBack` not being respected
- Removed `deepUnref` as now things don't get unreffed before being passed into vue components by default
- Moved MarkNode to new wrapper, and removed existing `mark` properties
- Moved Tooltip to new wrapper, and made it take an options function instead of raw object
- VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to
- `mergeAdjacent` now works with grids (perhaps should've used scss to reduce the amount of css this took)
- `CoercableComponent` renamed to `Renderable` since it should be used with `render`
- Replaced `isCoercableComponent` with `isJSXElement`
- Replaced `Computable` and `ProcessedComputable` with the vue built-ins `MaybeRefOrGetter` and `MaybeRef`
- `convertComputable` renamed to `processGetter`
- Also removed `GetComputableTypeWithDefault` and `GetComputableType`, which can similarly be replaced
- `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column
- Fixed saves manager not being imported in addiction warning component
- Created `vueFeatureMixin` for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself
- All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes)
- Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator
- All `render` functions now return `JSX.Element`. The `JSX` variants (e.g. `renderJSX`) (except `joinJSX`) have been removed
- Moved all features that use the clickable component into the clickable folder
- Removed `small` property from clickable, since its a single css rule (`min-height: unset`) (you could add a small css class and pass small to any vue feature's classes property, though)
- Upgrades now use the clickable component
- Added ConversionType symbol
- Removed setDefault, just use `??=`
- Added isType function that uses a type symbol to check
- General cleanup
2024-11-29 08:02:24 -06:00
6ba25f9abd Removed dynamic imports 2024-10-18 07:02:32 -05:00
9f25d7f58f Fix more modal paths 2024-10-17 16:17:32 +00:00
dfb14acc6e Allow null and undefined values in persistent refs 2024-03-29 04:39:56 +00:00
c85bca110b Sync cloud saves every minute 2024-03-05 22:47:29 -06:00
ece7ed2923 Add save conflict resolver 2024-03-05 22:47:27 -06:00
cfba55d2c6 Add galaxy api 2024-03-05 22:47:11 -06:00
7f4d57d3e4 Added incredibly dangerous deleteLowerSaves function to window 2023-02-15 20:36:08 -06:00
f5a25b2c2d Fix NaN detection
Also removes the proxy around player and cleaned up types
2023-02-15 20:21:26 -06:00
8c8f7f7904 Fix typos 2023-02-15 20:13:20 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
b8e498250b Set modVersion 🤦 2022-12-11 23:44:07 -06:00
8e8c71224a Fix total resources increasing on load 2022-12-07 23:01:38 -06:00
7a1e00b2e8 Fixed offline time not being capped 2022-12-03 12:26:12 -06:00
fe865bff9d Add onLoad event 2022-07-21 19:23:50 -05:00
db304dea43 Cleaned up docs 2022-07-10 01:07:39 -05:00
9828e5ec62 Document all the window augmentations 2022-07-09 22:09:25 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
868a77af29 Saving is now always lz-string. saveEncoding renamed to exportEncoding.
exportEncoding only affects exports, and defaults to base64 so it's
obfuscated but doesn't have issues with being pasted in discord
2022-05-10 20:58:13 -05:00
9a40249c00 Fixed error when switching between saves with different layers 2022-05-03 01:35:48 -05:00
cfe378020a Added support for reading/loading from different encodings 2022-04-24 16:59:20 -05:00
e56f34c13c Converted variables that track time to numbers 2022-03-11 15:33:08 -06:00
49474b1518 Changed path aliasing 2022-03-03 21:39:48 -06:00
52a9f51510 Renamed modInfo -> projInfo, mod -> projEntry 2022-03-02 20:12:56 -06:00
e2126472b2 Fixed runtime issues with vue
Entire demo tree has been tested and is fully functional,
including all the options and save manager functionality
2022-02-27 13:49:34 -06:00
90e49e196f Fixing more issues 2022-01-24 22:25:34 -06:00
15a460bf42 Fixing building / cleanup 2022-01-24 22:23:30 -06:00
6f781b33fa New layer API WIP 2022-01-13 22:25:47 -06:00
eaf47bb946 Moved properties from player data to new settings and state objects 2021-09-05 18:53:04 -05:00
72e73db048 Fixed things happening on save load 2021-08-28 11:35:25 -05:00
9313748f21 Added develop action 2021-08-26 23:47:53 -05:00
7618ee291a Implemented confirmable actions (plus logs and other related features) 2021-08-22 22:57:59 -05:00
c4db2a51c7 Fixed hardReset not updating the active save file 2021-08-22 02:00:38 -05:00
3163b58ba6 Fixed saves issues 2021-08-20 21:14:08 -05:00
0afcd1cd3d First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.

The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-16 23:30:54 -05:00