For this wiki article we will demonstrate adding Quests and Highscore to the dropdown menu, assuming all of their UIs have already been made.
For this wiki article we will demonstrate adding Quests and Highscore to the dropdown menu, assuming all of their UIs have already been made.
## Creating The Drop-down
## Creating The Drop-down
Within GameClient/src/view/screen/menu/MenuUI.java, first add the label(s) of the element(s) you wish to add to the drop-down as instance variable constants (QUEST_BUTTON_TEXT and HIGHSCORE_BUTTON_TEXT below. Then, add the following method to the class, where your new constants will be set along with the preexisting ones:
Within GameClient/src/main/java/view/screen/menu/MenuUI.java, first add the label(s) of the element(s) you wish to add to the drop-down as instance variable constants (QUEST_BUTTON_TEXT and HIGHSCORE_BUTTON_TEXT below. Then, add the following method to the class, where your new constants will be set along with the preexisting ones:
```java
```java
/**
/**
* Adds the dropown menu to the UI
* Adds the dropown menu to the UI
* @param text - the the label of the dropdown menu
* @param text - the the label of the dropdown menu
* @param listener - The listener listening to the dropdown menu
* @param listener - The listener listening to the dropdown menu
* @param clickListener - the click listener that will close the windows.
* @param clickListener - the click listener that will close the windows.