-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
90 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
### Additions | ||
* Added support for quoting in search queries and OR splitting up words rather than needing a space | ||
* Added visibility options for the EMI config and recipe tree buttons | ||
* EMI config button now is visible by default when toggled, to prevent people from accidentally hiding the mod without knowing how to undo it | ||
|
||
### Tweaks | ||
* Tweak a small few recipe IDs to be synthetic when they previously weren't | ||
* Updated config UI on modern versions to be more similar to vanilla changes | ||
* Tweaked "default stack" bind to also toggle during resolution | ||
* EMI visibility toast is now only shown when help level is verbose, due to other features preventing accidental hiding | ||
* EMI config enum selection screen now is consistent with the rest of the config screen on later versions | ||
|
||
### Fixes | ||
* Added additional dev mode nags for synthetic IDs #730 | ||
* Added further safety around recipe baking to prevent self mutation from affecting EMI significantly #776 | ||
* Further update JEI integration with null backgrounds #755 | ||
* Fixed JEI dependency on 1.19 versions #780 | ||
* Fixed stack default bind not toggling in recipe tree | ||
* #689 |
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
35 changes: 35 additions & 0 deletions
35
xplat/src/main/java/dev/emi/emi/config/ButtonVisibility.java
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,35 @@ | ||
package dev.emi.emi.config; | ||
|
||
import dev.emi.emi.EmiPort; | ||
import net.minecraft.text.Text; | ||
|
||
public enum ButtonVisibility implements ConfigEnum { | ||
AUTO("auto"), | ||
SHOWN("shown"), | ||
HIDDEN("hidden"), | ||
; | ||
|
||
private final String name; | ||
|
||
private ButtonVisibility(String name) { | ||
this.name = name; | ||
} | ||
|
||
public boolean resolve(boolean fallback) { | ||
return switch (this) { | ||
case AUTO -> fallback; | ||
case SHOWN -> true; | ||
case HIDDEN -> false; | ||
}; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public Text getText() { | ||
return EmiPort.translatable("emi.button_visibility." + name); | ||
} | ||
} |
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