use of riskyken.armourersWorkshop.client.gui.controls.GuiControlSkinPanel.SkinIcon in project Armourers-Workshop by RiskyKen.
the class GuiGlobalLibraryPanelSearchResults method actionPerformed.
@Override
protected void actionPerformed(GuiButton button) {
if (button.id == 1) {
changePage(currentPageIndex - 1);
}
if (button.id == 2) {
changePage(currentPageIndex + 1);
if (currentPageIndex + 1 < totalPages) {
fetchPage(currentPageIndex + 1);
}
}
if (button == iconButtonSmall) {
iconScale = 50;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == iconButtonMedium) {
iconScale = 80;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == iconButtonLarge) {
iconScale = 110;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == skinPanelResults) {
SkinIcon skinIcon = ((GuiControlSkinPanel) button).getLastPressedSkinIcon();
if (skinIcon != null) {
((GuiGlobalLibrary) parent).panelSkinInfo.displaySkinInfo(skinIcon.getSkinJson(), Screen.SEARCH);
}
}
}
use of riskyken.armourersWorkshop.client.gui.controls.GuiControlSkinPanel.SkinIcon in project Armourers-Workshop by RiskyKen.
the class GuiGlobalLibraryPanelUserSkins method actionPerformed.
@Override
protected void actionPerformed(GuiButton button) {
if (button.id == 1) {
changePage(currentPageIndex - 1);
}
if (button.id == 2) {
changePage(currentPageIndex + 1);
if (currentPageIndex + 1 < totalPages) {
fetchPage(currentPageIndex + 1);
}
}
if (button == iconButtonSmall) {
iconScale = 50;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == iconButtonMedium) {
iconScale = 80;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == iconButtonLarge) {
iconScale = 110;
skinPanelResults.setIconSize(iconScale);
resize();
}
if (button == skinPanelResults) {
SkinIcon skinIcon = ((GuiControlSkinPanel) button).getLastPressedSkinIcon();
if (skinIcon != null) {
((GuiGlobalLibrary) parent).panelSkinInfo.displaySkinInfo(skinIcon.getSkinJson(), Screen.USER_SKINS);
}
}
}
use of riskyken.armourersWorkshop.client.gui.controls.GuiControlSkinPanel.SkinIcon in project Armourers-Workshop by RiskyKen.
the class GuiGlobalLibraryPanelHome method actionPerformed.
@Override
protected void actionPerformed(GuiButton button) {
if (button == buttonShowAll) {
((GuiGlobalLibrary) parent).panelSearchResults.clearResults();
((GuiGlobalLibrary) parent).switchScreen(Screen.SEARCH);
((GuiGlobalLibrary) parent).panelSearchResults.doSearch("");
}
if (button == skinPanelRecentlyUploaded | button == skinPanelMostDownloaded | button == skinPanelMostLiked) {
SkinIcon skinIcon = ((GuiControlSkinPanel) button).getLastPressedSkinIcon();
if (skinIcon != null) {
((GuiGlobalLibrary) parent).panelSkinInfo.displaySkinInfo(skinIcon.getSkinJson(), Screen.HOME);
}
}
}
Aggregations