Search in sources :

Example 1 with GuiArmourer

use of riskyken.armourersWorkshop.client.gui.armourer.GuiArmourer in project Armourers-Workshop by RiskyKen.

the class GuiTabArmourerMain method onDropDownListChanged.

@Override
public void onDropDownListChanged(GuiDropDownList dropDownList) {
    DropDownListItem listItem = dropDownList.getListSelectedItem();
    ISkinType skinType = SkinTypeRegistry.INSTANCE.getSkinTypeFromRegistryName(listItem.tag);
    ((GuiArmourer) parent).skinTypeUpdate(skinType);
    PacketHandler.networkWrapper.sendToServer(new MessageClientGuiSetArmourerSkinType(skinType));
}
Also used : MessageClientGuiSetArmourerSkinType(riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetArmourerSkinType) DropDownListItem(riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList.DropDownListItem) ISkinType(riskyken.armourersWorkshop.api.common.skin.type.ISkinType) GuiArmourer(riskyken.armourersWorkshop.client.gui.armourer.GuiArmourer)

Aggregations

ISkinType (riskyken.armourersWorkshop.api.common.skin.type.ISkinType)1 GuiArmourer (riskyken.armourersWorkshop.client.gui.armourer.GuiArmourer)1 DropDownListItem (riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList.DropDownListItem)1 MessageClientGuiSetArmourerSkinType (riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetArmourerSkinType)1