Class PCToolbar
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCToolbar
The Pokemon Summary screen that appears when hovering over a Pokemon during PC operations.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected static final Map<PCToolbar.ToolbarButtons,
com.pixelmonmod.pixelmon.client.gui.pc.PCToolbar.ButtonInfo> protected Map<PCToolbar.ToolbarButtons,
KeyBindImageButton> protected PCToolbarHost
The PC Screen this is attached to.protected static final int
protected boolean
Flag to hide the toolbarprotected static final int
protected static final int
Distance from the left side of the screenprotected static final int
Padding before and after the first and last icons respectivelyprotected int
The X size of the toolbar in pixels.protected int
The Y size of the toolbar in pixels. -
Constructor Summary
ConstructorDescriptionPCToolbar
(PCToolbarHost host) PCToolbar
(PCToolbarHost host, PCToolbar.ToolbarButtons[] buttons) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
init()
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) protected void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
setActive
(boolean v) void
setTooltips
(boolean v) void
setVisible
(boolean visible)
-
Field Details
-
ICON_SIZE
protected static final int ICON_SIZE- See Also:
-
PADDING_START_END
protected static final int PADDING_START_ENDPadding before and after the first and last icons respectively- See Also:
-
PADDING_BETWEEN_ICONS
protected static final int PADDING_BETWEEN_ICONS- See Also:
-
PADDING_LEFT
protected static final int PADDING_LEFTDistance from the left side of the screen- See Also:
-
BUTTON_INFO
protected static final Map<PCToolbar.ToolbarButtons,com.pixelmonmod.pixelmon.client.gui.pc.PCToolbar.ButtonInfo> BUTTON_INFO -
xSize
protected int xSizeThe X size of the toolbar in pixels. -
ySize
protected int ySizeThe Y size of the toolbar in pixels. Depends on enabled icons. -
anchorX
protected int anchorX -
anchorY
protected int anchorY -
host
The PC Screen this is attached to. -
isVisible
protected boolean isVisibleFlag to hide the toolbar -
buttons
-
-
Constructor Details
-
PCToolbar
-
PCToolbar
-
-
Method Details
-
setActive
public void setActive(boolean v) -
setTooltips
public void setTooltips(boolean v) -
init
public void init() -
addButton
-
setVisible
public void setVisible(boolean visible) -
render
protected void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
-