diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-03-16 16:19:25 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-03-16 16:19:25 +0800 |
| commit | 9e990de7685960391d78ca2cca0ff68bebe1a8cd (patch) | |
| tree | 1ce7e36a326d11d0d278bb070df9ba7984515c01 /src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java | |
| parent | 921fbe77b6ebbbb7e5a78dc996ca5c98faf5fcc5 (diff) | |
| download | RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.tar.gz RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.tar.bz2 RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.zip | |
4.0.13
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java index 6d4d4f16c..df1860b4c 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java @@ -28,6 +28,8 @@ import com.mojang.blaze3d.systems.RenderSystem; import me.shedaniel.math.api.Point; import me.shedaniel.math.api.Rectangle; import me.shedaniel.rei.api.REIHelper; +import me.shedaniel.rei.api.widgets.Panel; +import me.shedaniel.rei.api.widgets.Widgets; import me.shedaniel.rei.gui.RecipeViewingScreen; import net.minecraft.client.MinecraftClient; import net.minecraft.client.resource.language.I18n; @@ -49,7 +51,7 @@ public class RecipeChoosePageWidget extends DraggableWidget { private List<Widget> widgets; private RecipeViewingScreen recipeViewingScreen; private TextFieldWidget textFieldWidget; - private CategoryBaseWidget base1, base2; + private Panel base1, base2; private ButtonWidget btnDone; public RecipeChoosePageWidget(RecipeViewingScreen recipeViewingScreen, int currentPage, int maxPage) { @@ -102,8 +104,8 @@ public class RecipeChoosePageWidget extends DraggableWidget { this.grabBounds = new Rectangle(midPoint.x - 50, midPoint.y - 20, 100, 16); this.dragBounds = new Rectangle(midPoint.x - 50, midPoint.y - 20, 100, 70); this.widgets = Lists.newArrayList(); - this.widgets.add(base1 = new CategoryBaseWidget(new Rectangle(bounds.x + bounds.width - 50, bounds.y + bounds.height - 6, 50, 36))); - this.widgets.add(base2 = new CategoryBaseWidget(bounds)); + this.widgets.add(base1 = Widgets.createCategoryBase(new Rectangle(bounds.x + bounds.width - 50, bounds.y + bounds.height - 6, 50, 36))); + this.widgets.add(base2 = Widgets.createCategoryBase(bounds)); this.widgets.add(new Widget() { @Override public List<Widget> children() { |
