forked from CleverNucleus/data-attributes
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [chore] update `fabric.mod.json` to include all authors/contributors * [ref] provide `MANAGER` directly in `reload` * [fix] let identifier serializer throw exception when parsing fails * [chore] Change to `workflow_dispatch` * [partial-feat] Implement new AttributeOverrideProvider * [partial-feat] Added ability to remove attribute overrides & def.tooltip * [chore] Make `Validators` internal * [feat] Make SearchAnchor & Ability to Add/Edit Overrides * [ref] use `xor` for switching, remove shadow of id * [chore&semver] update version & move to actions v3 * [chore] CL and small cleanup * [feat] Incorporate Attribute Function V2 * [fix] Push attribute function buttons to first position * [feat] Integrate EntityTypesProvider, remove old providers * [fix] Fix component rendering * [fix] Resolve problems with tooltips * [feat] Add `ParsedTextBoxComponent` * [ref] Refractored all field components, added parsing * [fix] Allow adding of entity-types with default data * [feat] Add the ability to disable/enable functions, update CL * [chore] Adjust CL, make small refractoring change to AF provider * [removal] Remove `DefaultAttributeFactory` * [ref] Make `List<AttributeFunction>` into `Map` with identifier * [fix] Fixed UI components not rendering with new links * [feat] Introduce `EntityTypeEntry` and fallback * [chore] update CL * [fix] Force unknowns to have priority render * [ref] Changed edit field and text box to be more agnostic * [chore] comment clearing * [fix] revert typing on `Endec.keyOf` extension * [ref] Remove `RemoveButtonComponent`, add `ButtonComponents` * [feat] added autocomplete for edit fields * [feat] implement diminishing as it was intended...
- Loading branch information
1 parent
8ac0aad
commit 194d384
Showing
41 changed files
with
1,171 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
## Fixes 🍋 | ||
- Adjusted formatting of `Whole` formats to not go past two decimals. | ||
## Overview | ||
**There are breaking changes in this release. Ensure you back up your config(s) if possible. Mods relying on the beta version will have to be updated.** | ||
|
||
*Welcome to the release of the new Data Attributes. This has taken a considerable amount of time to complete.* | ||
|
||
*I am glad to have this opportunity to work on this project and be supported with the first ever public project I will personally release.* | ||
|
||
## Additions 🍎 | ||
- No more needing to leave the UI to your config json~ you can do everything you need to do in the UI! | ||
- Allowed easier control of the config menu, and added some new features. | ||
- A `Reset` option to reset your targeted attribute, refreshing all its entries to start anew. | ||
- A `Remove` option to remove the targeted entry of your choice. | ||
- A `Edit` option to edit the identifier to target a different entry. | ||
- A `Add` option to include new entries. | ||
- You can also add into default entries. | ||
- Added autocomplete that will appear while editing fields. This will show you currently registered entities and attributes when editing the respective id you want. | ||
- Press [ENTER] to quickly grab the first entry on the autocomplete. | ||
- Attribute components in configuration now will re-render in certain scenarios, allowing for a better experience with working with multiple attributes. | ||
- Improved logic with entering fields, commit changes by pressing [Done], and [Reload] to refresh to the latest config. | ||
- You can now actually use the search bar to look up the specific entries you wish to find. | ||
- Translations should be compatible in the language you choose as well as the attribute id. | ||
- e.g., looking up `playerex:luck`, or `Luck` should work. | ||
- You can now enable/disable Attribute Functions. | ||
|
||
## Changes 🌽 | ||
- **[BREAKING]** Changed mockup of config JSON. | ||
- Config keys such as `"functions"/"overrides"/"entity_types": { ... }` have been replaced with `"entries": { ... }`. | ||
- This retains parity with the data-pack format. | ||
- **[BREAKING]** Changed `Map<Identifier, Double>` to `Map<Identifier, EntityTypeEntry>` for `EntityTypeData`. | ||
- This also includes a `fallback` value that gets the default registered base value for the specific attribute under that entity. | ||
- **[BREAKING]** Changed overall structure of config related class definitions. This will affect your config file considerably. | ||
- **[BREAKING]** Removed `DefaultAttributeFactory`. | ||
- **[BREAKING]** Changed `Map<Identifier, List<AttributeFunction>>` to `Map<Identifier, Map<Identifier, AttributeFunction>>` | ||
- This existed to avoid an odd situation that does not exist anymore. | ||
- Made some changes to certain logic internally and micro-optimizations. | ||
- Fixed CTD issues with editing function values. | ||
- Separated config entries from defaults using color coding & tooltips. | ||
- **[BREAKING]** Integrated diminishing returns as intended. | ||
- You must keep and/or target attribute min/max ranges between -1 & 1. | ||
- It is how it usually worked in the original DataAttributes, as unfortunately, a solution to implement diminishing returns on all attributes was not possible (at this time). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
src/main/kotlin/com/bibireden/data_attributes/api/factory/DefaultAttributeFactory.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/main/kotlin/com/bibireden/data_attributes/api/parser/Parsing.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.bibireden.data_attributes.api.parser | ||
|
||
typealias Parser<I, O> = (I) -> O? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.