Skip to content

Commit

Permalink
Merge pull request #50 from lim-jt/edit-helpWindow
Browse files Browse the repository at this point in the history
Edit help window to include command list and format
  • Loading branch information
itsnotsherm authored Oct 15, 2024
2 parents 630577d + 0a51ab5 commit 7674530
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 23 additions & 2 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,29 @@
public class HelpWindow extends UiPart<Stage> {

public static final String USERGUIDE_URL = "https://se-education.org/addressbook-level3/UserGuide.html";
public static final String HELP_MESSAGE = "Refer to the user guide: " + USERGUIDE_URL;

public static final String HELP_MESSAGE = "List of commands: \n\n\n"
+ "<<Viewing help>>\n"
+ "Format: help\n\n\n"
+ "<<Adding a person>>\n"
+ "Format: add n/NAME p/PHONE_NUMBER e/EMAIL r/REMARK a/ADDRESS [t/TAG]\n\n\n"
+ "<<Adding a remark>>\n"
+ "Format: remark NRIC r/REMARK\n\n\n"
+ "<<Listing all persons>>\n"
+ "Format: list\n\n\n"
+ "<<Adding an appointment>>\n"
+ "Format: appointment NRIC app/APPOINTMENT\n\n\n"
+ "<<Editing a person>>\n"
+ "Format: edit NRIC [n/NAME] [p/PHONE] [e/EMAIL] [r/REMARK] [a/ADDRESS] [t/TAG]\n\n\n"
+ "<<Locating persons by name>>\n"
+ "Format: find KEYWORD [MORE_KEYWORDS]\n\n\n"
+ "<<Deleting a person>>\n"
+ "Format: delete NRIC\n\n\n"
+ "<<Clearing all entries>>\n"
+ "Format: clear\n\n\n"
+ "<<Exiting the program>>\n"
+ "Format: exit\n\n\n"
+ "Refer to the user guide: "
+ USERGUIDE_URL;
private static final Logger logger = LogsCenter.getLogger(HelpWindow.class);
private static final String FXML = "HelpWindow.fxml";

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/HelpWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<URL value="@HelpWindow.css" />
</stylesheets>

<HBox alignment="CENTER" fx:id="helpMessageContainer">
<HBox alignment="BOTTOM_CENTER" fx:id="helpMessageContainer">
<children>
<Label fx:id="helpMessage" text="Label">
<HBox.margin>
Expand Down

0 comments on commit 7674530

Please sign in to comment.