Search in sources :

Example 1 with PupilBuildingModuleView

use of com.minecolonies.coremod.colony.buildings.moduleviews.PupilBuildingModuleView in project minecolonies by Minecolonies.

the class WindowHireWorker method setupShowEmployed.

/**
 * Set up the showEmployed button.
 * Disable button if not a "normal" building, like a warehouse or quarry
 * Also disable for pupils
 */
private void setupShowEmployed() {
    Button button = findPaneOfTypeByID(TOGGLE_SHOW_EMPLOYED, Button.class);
    button.setEnabled(selectedModule instanceof WorkerBuildingModuleView && !(selectedModule instanceof PupilBuildingModuleView));
    button.setText("N");
    showEmployed = false;
}
Also used : Button(com.ldtteam.blockout.controls.Button) WorkerBuildingModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.WorkerBuildingModuleView) PupilBuildingModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.PupilBuildingModuleView)

Aggregations

Button (com.ldtteam.blockout.controls.Button)1 PupilBuildingModuleView (com.minecolonies.coremod.colony.buildings.moduleviews.PupilBuildingModuleView)1 WorkerBuildingModuleView (com.minecolonies.coremod.colony.buildings.moduleviews.WorkerBuildingModuleView)1