-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added quantum computer ui and added conditional recipes if mega is lo…
…aded
- Loading branch information
Showing
14 changed files
with
760 additions
and
15 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
25 changes: 25 additions & 0 deletions
25
src/main/java/net/pedroksl/advanced_ae/client/gui/QuantumComputerScreen.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,25 @@ | ||
package net.pedroksl.advanced_ae.client.gui; | ||
|
||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.pedroksl.advanced_ae.gui.quantumcomputer.AdvCpuSelectionList; | ||
import net.pedroksl.advanced_ae.gui.quantumcomputer.QuantumComputerMenu; | ||
|
||
import appeng.client.gui.me.crafting.CraftingCPUScreen; | ||
import appeng.client.gui.style.ScreenStyle; | ||
import appeng.client.gui.widgets.Scrollbar; | ||
|
||
public class QuantumComputerScreen extends CraftingCPUScreen<QuantumComputerMenu> { | ||
public QuantumComputerScreen( | ||
QuantumComputerMenu menu, Inventory playerInventory, Component title, ScreenStyle style) { | ||
super(menu, playerInventory, title, style); | ||
|
||
var scrollbar = widgets.addScrollBar("selectCpuScrollbar", Scrollbar.BIG); | ||
widgets.add("selectCpuList", new AdvCpuSelectionList(menu, scrollbar, style)); | ||
} | ||
|
||
@Override | ||
protected Component getGuiDisplayName(Component in) { | ||
return in; // the cpu name is on the button | ||
} | ||
} |
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
Oops, something went wrong.