Commit graph

565 commits

Author SHA1 Message Date
16005b1835 Forgot indices 2022-12-23 20:15:00 -06:00
b89366de2a Made sections support computable titles and subtitles 2022-12-23 19:55:52 -06:00
4c4ff87110 Fix tab family padding-left 2022-12-23 15:57:09 -06:00
5498258700 Don't yell about deleted persistent refs 2022-12-23 11:46:09 -06:00
65071760ec Make boards take state and link overrides 2022-12-23 11:46:06 -06:00
7984f525d7 Fixed typo for hotkeys 2022-12-22 22:41:03 -06:00
23ad0680f5 Fixed hotkeys not working with shift + number 2022-12-21 22:39:20 -06:00
56b1a7a9b4 Fixed hotkeys not being reactive 2022-12-21 22:34:32 -06:00
36f91f91c3 Hide dev speed when paused 2022-12-20 21:57:11 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
81e774bbd4 Make hotkeys 2-column 2022-12-19 07:42:34 -06:00
d02b7294a1 hotkey tweaks 2022-12-19 07:29:28 -06:00
ducdat0507
a4e74a9c5d Hotkey display 2022-12-19 07:28:00 -06:00
beb996803d Made modifiers show small numbers 2022-12-14 21:26:21 -06:00
97faa20056 Fix addSoftcap not affecting currentAt or nextAt 2022-12-12 14:19:18 -06:00
b8e498250b Set modVersion 🤦 2022-12-11 23:44:07 -06:00
27def194e8 merged grid rows and retain soft edges 2022-12-10 19:33:24 +01:00
c40b80f60a Update modifier displays 2022-12-10 02:24:14 -06:00
8524d65dc1 Reword PWA update notif 2022-12-10 00:47:31 -06:00
6085dfdfe2 Fixed PWAs not showing updates 2022-12-08 19:32:46 -06:00
8e8c71224a Fix total resources increasing on load 2022-12-07 23:01:38 -06:00
36f064ebd7 Cleaned up NonPersistent typing 2022-12-06 08:06:35 -06:00
5fa2e521b2 Fixed resets 2022-12-06 08:06:31 -06:00
4207677944 Fix save data object redundancy
Note: Requires the use of noPersist quite a bit, but the console will tell you when you missed a spot
Also required breaking up events.ts due to cyclical dependencies
2022-12-06 00:22:32 -06:00
ae0d19c267 Make rest of discord links open in new tab 2022-12-05 07:19:23 -06:00
6704e1bea8 Create createCollapsibleMilestones util function 2022-12-04 20:31:42 -06:00
0f275e3e94 Add showPopups property to milestones 2022-12-04 20:07:01 -06:00
7a1e00b2e8 Fixed offline time not being capped 2022-12-03 12:26:12 -06:00
Seth Posner
62c3e1f45d Apply flooring to resource displays 2022-12-01 21:16:00 -06:00
ce895ed0a0 Fix mainDisplay not respecting classes and styles props 2022-11-30 18:42:58 -06:00
d9dac42837 Made notifs not selectable 2022-11-30 00:12:51 -06:00
753ce5f8de Add initialValue to Buyables 2022-11-29 08:13:04 -06:00
505bb2a4bc projInfo.id must be non-zero length 2022-11-17 21:04:32 -06:00
c6909cf1b6 Updated projinfo schema 2022-11-17 07:54:55 -06:00
5b3e6e3de2 Added schema for projInfo.json 2022-11-16 21:37:36 -06:00
9f38ae6449 Fix typing issue 2022-11-08 10:07:30 -06:00
8f52918e38 Fix boards not starting with starting nodes 2022-11-07 22:09:34 -06:00
3dbacc8e21 Fixed board feature 2022-11-07 22:09:20 -06:00
a451d4ad94 Add submitOnBlur property to text fields 2022-11-07 22:08:27 -06:00
5bea1bf9b4 Fix isFunction typing 2022-11-07 22:06:16 -06:00
73d6fd7566 Fix a couple type issues 2022-11-07 22:05:37 -06:00
07fcccd0e4 Add hotkey to default layer 2022-10-08 15:57:09 -05:00
8bd51932d9 Fix modifier sections not looking correct when the topmost section isn't visible 2022-08-22 08:53:06 -05:00
6784fbaf51 Update node bounds whenever a node is registered or unregistered 2022-08-22 08:53:01 -05:00
11662e248f Use fontsource for loading webfonts offline 2022-08-22 08:52:55 -05:00
ad613d06d4 Fixed fonts causing shifts in Node positions on firefox 2022-08-22 08:52:51 -05:00
3042d5ebb6 Use shallowRef in more places 2022-08-22 08:52:43 -05:00
bca8c6d64e Made Pixi application holder a shallow ref 2022-08-22 08:52:24 -05:00
61859049b9 Fixed issues with pixi.js 2022-08-22 08:52:15 -05:00
e8ba3f1f88 Add utility type for the values within a readonly array 2022-08-22 08:52:02 -05:00
21eb5409b4 Added option to exponential modifiers to support low numbers 2022-08-22 08:51:53 -05:00
1729fa8561 Add joinJSX utility function 2022-08-22 08:51:37 -05:00
1a304ea425 Fix collapsible modifier sections not registering persistent 2022-07-27 22:59:15 -05:00
6323fa0879 Implemented createDismissableNotify 2022-07-27 22:59:03 -05:00
39c62f3b9c Made trackHover less intrusive 2022-07-27 22:58:59 -05:00
0c3ce6af45 Fix createCollapsibleModifierSections not being lazy 2022-07-26 23:56:38 -05:00
1976628b16 Fixed modifier typing 2022-07-26 19:52:24 -05:00
72dbc2da90 Implemented utility to unwrap computable resources 2022-07-26 19:52:11 -05:00
351d4873be Fixed $ appearing in colorText 2022-07-26 19:52:02 -05:00
783d5a8a6b Add function to track hovering over a VueFeature 2022-07-26 19:51:39 -05:00
b397929c62 Made sequential modifiers lazy 2022-07-26 18:17:36 -05:00
1997f70699 Made modifiers lazy 2022-07-26 15:25:31 -05:00
17a033bfd9 Use ID to compare layers in trackResetTime 2022-07-22 21:54:37 -05:00
c84bffae59 Made default layer option functions not anonymous 2022-07-22 18:59:52 -05:00
fe865bff9d Add onLoad event 2022-07-21 19:23:50 -05:00
1345209461 Made colorText return JSX Element 2022-07-17 21:32:32 -05:00
ba47847e39 Fix LayerData typing for handling arrays 2022-07-17 20:21:34 -05:00
7d1346746f Fix trackResetTime not working after the layer is removed and re-added 2022-07-17 19:39:25 -05:00
4670258241 Moved section into its own interface 2022-07-15 17:27:51 -05:00
8d1234a916 Documented /game 2022-07-15 01:17:01 -05:00
23545a9d33 Fixed super duper major typo that would've totally been worth making a PR over 2022-07-14 22:40:54 -05:00
1f4676d997 Make Particles component typed generically to fix doc generation 2022-07-14 08:20:28 -05:00
2763749904 Minimize how much pixi.js we use 2022-07-14 00:06:39 -05:00
be96fcdd38 Fixed broken links 2022-07-10 03:00:08 -05:00
717f13ebe0 Fix typing errors 2022-07-10 02:20:51 -05:00
5c0a248b16 Documented /data 2022-07-10 01:44:45 -05:00
db304dea43 Cleaned up docs 2022-07-10 01:07:39 -05:00
21e739070d Documented game/layers.tsx 2022-07-10 00:43:34 -05:00
804e596fa7 Fix doc generation 2022-07-09 22:09:26 -05:00
439e10d7b1 Create tooltips' pinnable persistent variable immediately 2022-07-09 22:09:26 -05:00
9828e5ec62 Document all the window augmentations 2022-07-09 22:09:25 -05:00
3ee1cdb384 Fix Links not always updating its outer bounds 2022-07-09 19:11:12 -05:00
6a7b411b93 Add notif component 2022-07-09 19:11:04 -05:00
863c70222b Better handling of provide failing
Was having trouble with Vite HMR
2022-07-09 19:10:53 -05:00
9b89552f1c Prevent onComplete events triggering while loading saves 2022-07-09 19:10:03 -05:00
a701168ab1 Fix processed JSXFunctions not being considered coercable components 2022-07-09 19:09:57 -05:00
a2212a40b7 Made descriptions on buyables optional 2022-07-07 20:40:08 -05:00
0def9ca5a6 Fixed error when passing in overlay text to bar 2022-07-07 20:40:08 -05:00
0229c0130f Cleaned up tooltips 2022-07-07 20:40:08 -05:00
409b3bbac4 Add showAmount boolean to buyable displays 2022-07-07 20:40:08 -05:00
78ac7957dd Improved how MainDisplay displayed effect strings 2022-07-07 20:40:08 -05:00
7345471e8a Add options to tab families to style the buttons container
Example usage: adding a "top" property for proper stickying
2022-07-07 20:40:07 -05:00
62d23ec699 Made MainDisplay sticky 2022-07-07 20:40:07 -05:00
64d6aae1c0 Reformat Sqrt.vue 2022-07-07 20:40:07 -05:00
7dd7744edf Add colorText utility function 2022-07-07 20:40:07 -05:00
ff9fa0bf07 Bind uncached functions in processComputable 2022-07-07 20:40:07 -05:00
d7041a3c3c Make OptionsFunc include the options in the typing for this 2022-06-26 23:44:10 -05:00
8fce6ac23e Removed v-show 2022-06-26 23:44:08 -05:00
9370b0ed6f Improved typing for player.layers 2022-06-26 23:44:05 -05:00
b6d5eaa72d Added math components folder 2022-06-26 23:44:02 -05:00
d658455eb0 Added spend function to conversions
(for custom handling of changing baseResource)
2022-06-26 22:12:53 -05:00
3130e0add7 Improve setupPassiveGeneration
- Handles independent conversions better
- Now can be given a cap
2022-06-26 20:34:46 -05:00
b639d91032 Made several projInfo properties default to empty strings 2022-06-26 19:24:03 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
a2b5820906 Implemented PWA 2022-06-26 15:22:22 -05:00
7fe57798bb Switched from vue-cli-service to vite
Should be thoroughly tested still
Also involved removing operator overloads, which weren't good anyways
2022-06-25 22:34:18 -05:00
6411ee4e34 Replace isPlainObject 2022-06-23 11:31:10 -05:00
39f92040aa Added onConvert callback to conversions 2022-05-23 23:40:26 -05:00
d123ed3feb Made resetTime more useful and various setup functions use BaseLayer 2022-05-23 23:34:59 -05:00
5b62080786 Added costModifier to conversions 2022-05-23 23:06:21 -05:00
90114f6eb3 Fix reset buttons not displaying Req if buyMax is true (but computed) 2022-05-23 22:54:56 -05:00
6a87e34a1d Make Context mutation observers ignore attributes
I can't find any edge cases where this would really be useful,
and it prevents a _lot_ of false node updates
2022-05-23 22:54:54 -05:00
7398a861ed Fixed nodes not being accessible on tabs that weren't initially visible 2022-05-23 22:54:52 -05:00
2568a8b3a0 Fixed links being in the wrong spot after above elements added/removed 2022-05-23 22:54:50 -05:00
d650cda84f Using getFirstFeature and Collapsible won't re-render each frame 2022-05-23 22:54:48 -05:00
7db806afc6 Fix particle effects not reloading when the Particles component is re-mounted 2022-05-23 22:54:46 -05:00
65e265768b Improved regularFormat on small numbers 2022-05-23 22:54:44 -05:00
3f10abbb09 Fix buyables' onPurchase not being called 2022-05-23 22:54:42 -05:00
1e6104a349 Fixed additive modifier description using + on negative modifiers 2022-05-23 22:54:40 -05:00
061b4f24da Fixed collapsibles having wrong width on buttons + collapsed content 2022-05-23 22:54:38 -05:00
0ead4e8ce0 Made slider tooltips appear below the slider 2022-05-23 22:54:36 -05:00
2e3f1de158 Fix presets dropdown not deselecting after creating a save 2022-05-10 23:37:43 -05:00
55c4476edf Fixed exporting the currently active save not using exportEncoding 2022-05-10 21:49:35 -05:00
01ade0984c Add tooltips to icons in saves manager 2022-05-10 21:42:45 -05:00
ce2f9f8ee0 Make buyables' onClick/purchase function support custom canPurchases
They can also now be overidden from the options function
2022-05-10 21:23:05 -05:00
3118db1402 Fixed offline time amount always showing when offline limit is 0 2022-05-10 21:01:57 -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
521c0d1ea4 Wrote documentation for feature.ts
Also slightly cleaned up modifiers.tsx due to slightly new comment style
2022-05-10 20:04:08 -05:00
2ec1a03d8f Fixed some typings on Board component
also removed FeatureComponent type since it's no longer used
2022-05-10 19:39:39 -05:00
05eb2a2bed Made findFeatures take multiple types, and added excludeFeatures 2022-05-10 19:08:16 -05:00
86688b5bb1 Fix tab buttons not getting style refs 2022-05-10 08:11:43 -05:00
eec494370c Made layer style and classes 2022-05-10 08:11:11 -05:00
223b1cfcd4 Fix createModifierSection requiring revert and enabled properties 2022-05-10 08:10:56 -05:00
b82bf8eee3 Made most touch events passive 2022-05-03 01:36:07 -05:00
2c14b2193d Fix links sometimes using nodes that were removed 2022-05-03 01:36:00 -05:00
4058fad711 Removed unused import 2022-05-03 01:35:54 -05:00
9a40249c00 Fixed error when switching between saves with different layers 2022-05-03 01:35:48 -05:00
2d9de00424 Make nested player proxies of arrays as well as objects 2022-05-03 01:35:30 -05:00
4f3d73acd7 Make scaling functions use computables instead of processed computables 2022-05-01 19:24:50 -05:00
17642b95a6 Documented conversion.ts 2022-05-01 19:24:44 -05:00
eb1d394f04 Added periods to modifiers doc comments 2022-05-01 19:24:39 -05:00
b7789563e2 Made modifier constructors have more explicit typing 2022-05-01 19:24:12 -05:00
22f3415069 Fix adding new layers not allowing them to be displayed until refresh 2022-05-01 19:24:03 -05:00
75fde0f099 Fix tooltip component expecting direction to be a number instead of string 2022-05-01 19:23:56 -05:00
7eaae981d8 Fixed createCollapsibleModifierSections typing 2022-05-01 19:23:52 -05:00
ade00f2ebd Remove unused lib file 2022-05-01 19:23:46 -05:00
8f7160c725 Add comments for modifiers 2022-05-01 19:23:43 -05:00
665ddff196 Replaced the two Direction enums with a single one 2022-04-30 23:54:14 -05:00
77bcc10580 Open newly created saves automatically 2022-04-30 23:54:02 -05:00
c692578da7 Made createCollapsibleModifierSections utility function 2022-04-30 23:53:53 -05:00
1479c1d44d Fixed tree nodes not being clickable on the edges 2022-04-27 08:21:04 -05:00
d4c1e16fb4 Fix tree branches not appearing in the correct positions 2022-04-27 08:20:59 -05:00
8e6fc852d7 Made modifier section's base customizable 2022-04-27 08:20:47 -05:00
64533b55dc Fix Particles causing scroll issues 2022-04-24 22:07:47 -05:00
f49edc3de2 Made goBack and minimize buttons look more consistent 2022-04-24 22:07:43 -05:00
eb81fdfb2c Fixed separators getting cut off if the tab on the left can be scrolled
This also required some cleanup around the stick CSS
2022-04-24 21:49:17 -05:00
dc8a5fb558 Fix layer.minWidth being ignored 2022-04-24 21:49:13 -05:00
5156193a60 Fixed save manager loading old version of save previously opened 2022-04-24 20:21:57 -05:00
94a7f41fd1 Made several options functions optional 2022-04-24 17:05:28 -05:00
aae6455ea6 Made no features extend Persistent 2022-04-24 16:59:31 -05:00
cfe378020a Added support for reading/loading from different encodings 2022-04-24 16:59:20 -05:00
819c3c674a Fix tooltips sometimes causing issues with cyclical dependencies 2022-04-24 16:45:27 -05:00
eb06435821 Fix style attribute not working on tooltips 2022-04-24 16:45:24 -05:00
f70273425e Fixed spacing in Tree.vue 2022-04-24 13:41:57 -05:00
5427f200c1 Fixed updating displays sometimes eating clicks 2022-04-24 01:03:25 -05:00
76c81dc5b5 Fixed createLayerTreeNode not using display option correctly 2022-04-23 23:54:23 -05:00
7f63bf5d79 Made default theme's feature foreground dark rather than light 2022-04-23 23:37:52 -05:00
b161151424 Add tooltip to example layer 2022-04-23 22:23:46 -05:00
f1e5f177bf Made projEntry default display avoid rendering things rather than hiding them 2022-04-23 22:15:15 -05:00
1e276adce5 Made createResourceTooltip show the resource name 2022-04-23 22:15:10 -05:00
ba2bb3a5fd Fixed tooltips' classes and style props 2022-04-23 22:15:07 -05:00
8add09841e Make modifiers sections accept DecimalSources for the base 2022-04-23 22:15:04 -05:00
6e53678991 Moved createModifierSection to modifiers.tsx 2022-04-23 22:14:58 -05:00
f04cb69726 Show pin on pinned tooltips 2022-04-23 22:14:56 -05:00
bef5272ab5 Made tooltips' onClick in capture mode 2022-04-23 22:14:54 -05:00
6ed9f3da53 Improved tooltip typing 2022-04-23 22:14:52 -05:00
5b45642a58 Made TreeNodes VueFeatures 2022-04-23 22:14:49 -05:00
d988b37e8d Clean up typing 2022-04-23 22:14:47 -05:00
f76d5deb6e Tooltips overhaul 2022-04-23 22:14:45 -05:00
89861dfbd5 Allowed layer.minWidth to take string values as well 2022-04-23 22:14:42 -05:00
ba7f877581 Made tab family's options function optional 2022-04-23 22:14:37 -05:00
9c2dcddcbe Updated some modifiers CSS 2022-04-23 22:14:35 -05:00
6efd01fc43 Made modifier descriptions use CoercableComponents 2022-04-23 22:14:32 -05:00
c918f1b54b Add render functions that ensure returned type is always a JSX element 2022-04-23 22:14:29 -05:00
4e2095fd51 Implemented modifiers 2022-04-23 22:14:25 -05:00
52864964a2 Fixed independent conversions showing values over 1 when buyMax is false 2022-04-10 23:02:15 -05:00
78262996ad Fixed independent conversions with buyMax false capping incorrectly 2022-04-10 23:01:02 -05:00
b478999e7e Cap gain in nextAt and currentAt to 0 after modifier 2022-04-10 22:28:39 -05:00
eb434656b3 Fix Req showing wrong value 2022-04-10 21:53:11 -05:00
3694e2be1f Cap independent conversion's actualGain to 1 if buyMax is false 2022-04-10 21:22:00 -05:00
98c7cd7724 Added minimumGain to resetButton 2022-04-10 21:16:20 -05:00
42fe66c891 Display Req: instead of Next: when buy max is disabled 2022-04-10 19:33:44 -05:00
6bbd9b990a Update default layers to use new createLayer signature 2022-04-10 19:26:33 -05:00
99cda9f344 Fixed attempting to delete persistent ref when there's no layer being added 2022-04-10 19:26:33 -05:00
64f1b460b0 Added FeatureOptionsFunc to simplify features 2022-04-10 19:26:33 -05:00
838ac46cf9 Fixed missed references to PersistentRef 2022-04-10 19:26:33 -05:00
5a59aaf4fc Persistence rework
- Removed makePersistent
- Removed Persistent, renamed PersistentRef to Persistent
- createLazyProxy now takes optional base object
  - For use where previously makePersistent would be used
- Added warnings when creating refs outside a layer
- Added warnings when persistent refs aren't included in their layer object
- createLayer now takes id as a parameter rather than an option
2022-04-10 19:26:33 -05:00
bd084e51c5 Fixed issue with dynamically loading layers 2022-04-10 19:26:33 -05:00
Seth Posner
099c19d712 Fix independent gain, add current cost 2022-04-10 15:05:49 -07:00
ecc4b9fb5f Replaced tsparticles with pixi-emitter 2022-04-01 01:08:29 -05:00