Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2019.11.09 #9

Merged
merged 54 commits into from
Nov 9, 2019
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1d0fed8
Bug fixed
LucBerge Mar 13, 2019
2084aa0
Disable automatic tests during Maven compilation
LucBerge Mar 14, 2019
e035d48
Now include jpcap in maven build and can generate an executable jar
LucBerge Mar 15, 2019
74e8efe
Add eclipse settings files
LucBerge Mar 15, 2019
181abe5
Convert to utf8
LucBerge Mar 15, 2019
aeaa663
Chat menu compatible with internationals servers
LucBerge Jun 5, 2019
a2a2109
Now use external property file
LucBerge Jun 5, 2019
7b0c2d5
Add java-string-similarity dependency
LucBerge Jun 5, 2019
a071c9d
Add Dofus singleton
Jul 19, 2019
5e94476
Add ProgramOptions class
LucBerge Oct 24, 2019
aaf4ea4
Now open a gitHub issues to report a bug
LucBerge Oct 24, 2019
f0322a3
Now use the @BeforeClass annotation
LucBerge Oct 24, 2019
47e7b3c
Fix encoding bug
LucBerge Oct 28, 2019
7d9c484
Renamed tests classes
LucBerge Oct 28, 2019
b325e05
Only throw B4DExceptions
LucBerge Oct 28, 2019
7d30b02
Automaticaly get the calling class
LucBerge Oct 28, 2019
bb3b638
Add Logger API tutorial
LucBerge Oct 28, 2019
3d1cb01
Add Logger API tutorial
LucBerge Oct 28, 2019
7e07382
Add Converter API tutorial
LucBerge Oct 28, 2019
137cd37
Renamed program
LucBerge Oct 28, 2019
9282179
Add Mouse API tutorial
LucBerge Oct 28, 2019
b931d66
Add Keyboard API tutorial
LucBerge Oct 28, 2019
6acc9b8
Add Screen API tutorial
LucBerge Oct 28, 2019
52f0911
Add comments for javadoc
LucBerge Oct 28, 2019
91c1440
Now generate the javadoc
LucBerge Oct 28, 2019
7b185b1
Add javadoc generated with maven
LucBerge Oct 28, 2019
c49cf63
Changed program arguments
LucBerge Oct 28, 2019
fbf6a73
Removed items
LucBerge Oct 28, 2019
f459f2f
Version 1.1
LucBerge Oct 28, 2019
1635ac2
Now use pcap4j
LucBerge Nov 3, 2019
10dc850
Add confirm dialog question
LucBerge Nov 3, 2019
be03070
Fix bug
LucBerge Nov 3, 2019
9e95215
Fix bug
LucBerge Nov 3, 2019
3d08173
Fix bug
LucBerge Nov 3, 2019
3a80edb
Now use pcap4j
LucBerge Nov 3, 2019
2838a3c
Add java doc
LucBerge Nov 3, 2019
0c8b2f3
New version format
LucBerge Nov 3, 2019
82de40b
Update README.md
LucBerge Nov 4, 2019
80686d3
Changed error message
LucBerge Nov 9, 2019
aca8c6d
Now ask for a pseudo
LucBerge Nov 9, 2019
3ae8209
New way to wait, allows interruption during waiting time
LucBerge Nov 9, 2019
edc0925
New way to wait
LucBerge Nov 9, 2019
e92bf1a
New test program
LucBerge Nov 9, 2019
7883baf
Removed TEST program from the list, changed log.
LucBerge Nov 9, 2019
0f16fdb
Changed place
LucBerge Nov 9, 2019
ffb6ccd
Add general channel
LucBerge Nov 9, 2019
a6bf1dc
Add unit tests
LucBerge Nov 9, 2019
2715b14
Changed bug report url
LucBerge Nov 9, 2019
6c775bc
Add button to propose a new program, a feature or a question
LucBerge Nov 9, 2019
2d30521
Add java doc
LucBerge Nov 9, 2019
89f6543
Generated java doc for version 2019-11-09
LucBerge Nov 9, 2019
b1b3ffa
Merge branch 'dev' of https://github.com/MrDomoo/B4D into dev
LucBerge Nov 9, 2019
c5db4bf
Generated javadoc for version 2019-11-09
LucBerge Nov 9, 2019
500838e
Removed X:Y label
LucBerge Nov 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Now ask for a pseudo
  • Loading branch information
LucBerge committed Nov 9, 2019
commit aca8c6d4e244d8683d681ea9159a1e81a1426ecf
16 changes: 14 additions & 2 deletions src/main/java/fr/B4D/programs/tutorials/MessageAPI.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package fr.B4D.programs.tutorials;

import javax.swing.JOptionPane;
import javax.swing.JTextField;

import fr.B4D.bot.B4D;
import fr.B4D.bot.Person;
import fr.B4D.dofus.Dofus;
Expand Down Expand Up @@ -44,11 +47,20 @@ public void cycle(Person person) {
* </ul>
* Dans le cas où l'échange est annulé par le joueur, un exception est levée. Un message différent est alors affiché.<br>
*/
public final static Program TUTORIAL2 = new Program(Place.Tous, Category.Tutorial, "Message API", "Tutorial 2", new Channel[] {Channel.PRIVATE}, Status.AVAILABLE, new ProgramInterface() {
public final static Program TUTORIAL2 = new Program(Place.Tous, Category.Tutorial, "Message API", "Tutorial 2", new Channel[] {Channel.PRIVATE, Channel.GENERAL}, Status.AVAILABLE, new ProgramInterface() {
public void intro(Person person) {}
public void outro(Person person) {}
public void cycle(Person person) throws StopProgramException, CancelProgramException {
Message message = new Message("Solwy", "Salut !");
JTextField nameField = new JTextField();
Object[] field = {
"Destinataire :", nameField,
};
int option = JOptionPane.showConfirmDialog(null, field, "Envoi d'un message privé :", JOptionPane.OK_CANCEL_OPTION);
if (option == JOptionPane.CANCEL_OPTION)
throw new CancelProgramException("Vous avez annulé le programme.");

String name = nameField.getText();
Message message = new Message(name, "Salut !");
message.send();
message = message.waitForReply(60000);
if(message != null)
Expand Down