1.0.0-SNAPSHOT-U187

+ Completed the CustomSettingsEditorPanel
This commit is contained in:
Charles 2019-01-08 19:12:42 +08:00
parent 8ab23d96e8
commit 45a0877378
3 changed files with 12 additions and 4 deletions

View File

@ -76,9 +76,15 @@ public class IntervalSpawnHandler {
return true;
}
public ClickAction getSpawnAfterLastBossIsKilledAction(IntervalSpawnElement intervalSpawnElement) {
public ClickAction getSpawnAfterLastBossIsKilledAction(IntervalSpawnElement intervalSpawnElement, AutoSpawn autoSpawn, VariablePanelHandler<AutoSpawn> panelHandler) {
return event -> {
Player player = (Player) event.getWhoClicked();
intervalSpawnElement.setSpawnAfterLastBossIsKilled(!ObjectUtils.getValue(intervalSpawnElement.getSpawnAfterLastBossIsKilled(), false));
autoSpawn.setCustomData(BossAPI.convertObjectToJsonObject(intervalSpawnElement));
CustomBosses.get().getAutoSpawnFileManager().save();
panelHandler.openFor(player, autoSpawn);
};
}

View File

@ -85,7 +85,9 @@ public class DropsEditorPanel extends VariablePanelHandler<BossEntity> {
PanelBuilderCounter counter = panel.getPanelBuilderCounter();
fillPanel(panel, bossEntity);
counter.getSlotsWith("Selected").forEach(slot -> panel.setOnClick(slot, event -> {/* TODO: GO TO EDIT PANEL FOR DROP TABLE */}));
counter.getSlotsWith("Selected").forEach(slot -> panel.setOnClick(slot, event -> {
/* TODO: GO TO EDIT PANEL FOR DROP TABLE */
}));
counter.getSlotsWith("CreateDropTable").forEach(slot -> panel.setOnClick(slot, event -> {
player.closeInventory();
Message.Boss_New_CreateArgumentsDropTable.msg(event.getWhoClicked());

View File

@ -19,7 +19,7 @@
</modules>
<properties>
<plugin.version>1.0.0-U186</plugin.version>
<plugin.version>1.0.0-U187</plugin.version>
<plugin.name>EpicBosses</plugin.name>
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
<plugin.author>AMinecraftDev</plugin.author>