26.03.2014, 20:09
Quote:
Nice, how long will it take until you are ready to release the new Milestone ?
|
I will release as soon as possible.
p.s.
More simple example:
Code:
public class SpawnVehicleDialog extends AbstractPageListDialog { public SpawnVehicleDialog(Player player, Shoebill shoebill, EventManager eventManager) { super(player, shoebill, eventManager, null); this.caption = "Spawn Vehicle"; } public void addModel(final int modelId) { String vehicleName = VehicleModel.getName(modelId); dialogListItems.add(new DialogListItem(vehicleName) { @Override public void onItemSelect() { Vehicle veh = shoebill.getSampObjectFactory().createVehicle(modelId, player.getLocation(), 0, 0, 0); player.setVehicle(veh); } }); } }
Code:
SpawnVehicleDialog dialog = new SpawnVehicleDialog(player, shoebill, eventManager); dialog.addModel(451); dialog.addModel(439); // ...... dialog.show();
(Source) https://github.com/GTAUN/shoebill-common
(Build) http://ci.gtaun.net/job/shoebill-common/