-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add separate menu (and keybind) for opening entity selectors menu
- Loading branch information
Showing
8 changed files
with
116 additions
and
36 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
38 changes: 38 additions & 0 deletions
38
src/main/java/mchorse/metamorph/client/gui/creative/GuiSelectorsScreen.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 mchorse.metamorph.client.gui.creative; | ||
|
||
import mchorse.mclib.client.gui.framework.GuiBase; | ||
import mchorse.mclib.client.gui.framework.elements.utils.GuiDraw; | ||
import mchorse.metamorph.Metamorph; | ||
import net.minecraft.client.Minecraft; | ||
|
||
public class GuiSelectorsScreen extends GuiBase | ||
{ | ||
public GuiSelectorEditor editor; | ||
public GuiCreativeMorphsMenu menu; | ||
|
||
public GuiSelectorsScreen(Minecraft mc) | ||
{ | ||
this.editor = new GuiSelectorEditor(mc, true); | ||
this.menu = new GuiCreativeMorphsMenu(mc, true, this.editor::setMorph); | ||
this.menu.setVisible(true); | ||
|
||
this.editor.flex().relative(this.viewport).wTo(this.menu.flex()).h(1F); | ||
this.menu.flex().relative(this.viewport).x(140).h(1F).wTo(this.root.flex(), 1F); | ||
|
||
this.root.add(this.menu, this.editor); | ||
} | ||
|
||
@Override | ||
public boolean doesGuiPauseGame() | ||
{ | ||
return Metamorph.pauseGUIInSP.get(); | ||
} | ||
|
||
@Override | ||
public void drawScreen(int mouseX, int mouseY, float partialTicks) | ||
{ | ||
GuiDraw.drawCustomBackground(0, 0, this.width, this.height); | ||
|
||
super.drawScreen(mouseX, mouseY, partialTicks); | ||
} | ||
} |
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