forked from SteamWar/SteamWar
Add lobby particle slot menus
Replace the particle inventory with a main menu showing the 7 slots and unlocked presets, a slot editor with a read-only view for locked slots, and an entry editor with pickers for designs, choices, colours and icons. Slots are limited to 10 entries and a particles-per-tick budget.
This commit is contained in:
@@ -93,6 +93,16 @@ public class Designs {
|
||||
public int points(ParameterValues values) {
|
||||
return values.get(WING_IMAGE).getVectors().length;
|
||||
}
|
||||
|
||||
// Wings spawn a particle on every pixel of the image, so they start sparse
|
||||
@Override
|
||||
public void applyDefaults(ParameterValues values) {
|
||||
values.set(EntryParameters.COUNT, 1)
|
||||
.set(EntryParameters.SPEED, 0.0)
|
||||
.set(EntryParameters.TICK_MODE, EntryParameters.TickMode.ALWAYS)
|
||||
.set(EntryParameters.INTERVAL, 20)
|
||||
.set(EntryParameters.GLIDING, EntryParameters.Gliding.NOT_GLIDING);
|
||||
}
|
||||
};
|
||||
|
||||
public final ParticleDesign CLOUD = new ParticleDesign("cloud", Material.WHITE_WOOL, "PARTICLE_DESIGN_CLOUD") {
|
||||
|
||||
Reference in New Issue
Block a user