-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [feat] Tracking list compatibility with small screens - [feat] Learned recipe list now on separate screen - [feat] Added lock icon to vendor items to show recipes that are not known or require a higher level - [feat] Pressing "x" when hovering over a recipe in the list will remove all recipes - [feat] Added notification when new vendor is added - [fix] Added missing item counts when viewing item by vendor slot - [fix] Sunken and Myrk dealers fixed - [fix] Corrupted gear now displays differently than normal gear - [chore] Added helper tooltips for balance and profession levels - [chore] Notification when vendor or item has been removed using hotkey - [chore] Indicate when recipes are unavailable due to game changes - [chore] Changed coin display to use stored NBT data for texture pack matching
- Loading branch information
1 parent
103d46b
commit 4a6530f
Showing
31 changed files
with
882 additions
and
208 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
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
38 changes: 38 additions & 0 deletions
38
src/main/java/dev/bnjc/blockgamejournal/gui/screen/LearnedRecipesScreen.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,38 @@ | ||
package dev.bnjc.blockgamejournal.gui.screen; | ||
|
||
import dev.bnjc.blockgamejournal.gui.widget.KnownRecipesWidget; | ||
import net.minecraft.client.gui.screen.Screen; | ||
import net.minecraft.text.Text; | ||
|
||
public class LearnedRecipesScreen extends Screen { | ||
private static final int WIDTH = 250; | ||
private final Screen parent; | ||
|
||
public LearnedRecipesScreen(Screen parent) { | ||
super(Text.literal("Learned Recipes")); | ||
|
||
this.parent = parent; | ||
} | ||
|
||
@Override | ||
protected void init() { | ||
super.init(); | ||
|
||
int widgetWidth = Math.min(WIDTH, this.width - 40); | ||
KnownRecipesWidget knownRecipesWidget = new KnownRecipesWidget( | ||
this, | ||
(this.width - widgetWidth) / 2, | ||
0, | ||
widgetWidth, | ||
this.height | ||
); | ||
this.addDrawableChild(knownRecipesWidget); | ||
} | ||
|
||
@Override | ||
public void close() { | ||
if (this.client != null) { | ||
this.client.setScreen(this.parent); | ||
} | ||
} | ||
} |
Oops, something went wrong.