26.03.2014, 20:57
Quote:
Yea, thats really easy
Btw: I've got one Problem: I use your Vehicle Manager Plugin, and in my Gamemode i've got some Dialogs. I use the DialogResponseEvent and check if the dialogID from the event is, for example the loginDialog. And it works great, but when i open the Dialog from the Plugin, the ID is wrong. I think you know what I mean. In normal Pawn it happens when you mix filterscripts with Dialogs and Dialogs in your Gamemode. And Second, is it possible to acces the OnPlayerGive/TakeDamage Event? //Edit: Is it possible to start a GUI from the Script? Like a JFrame? |
2. Unless you modify the code to support it, otherwise please wait for the Shoebill 1.0 M1, sorry
3. YES! But not recommended.
BTW, in the future, the code might look like this
Code:
DialogItemNameSupplier nameSupplier = (Integer i) -> VehicleModel.getName(i); OnDialogItemSelected callback = (Integer i) -> factory.createVehicle(i, player.getLocation(), 0, 0, 0); PagedListDialog.create() .caption("Spawn Vehicle") .item(nameSupplier, callback, 439) .item(nameSupplier, callback, 451) .item(nameSupplier, callback, 456) // ...... .item("Naughty little option", () -> player.playSound(1057, player.getLocation())) .build(player) .show();