# Adding Gum Screens to FlatRedBall

### Introduction

Many games include a Gum screen for every FRB screen. Gum screens can be used for UI such as buttons and textboxes (usually using FlatRedBall.Forms) or can be used for read-only UI such as score and health display. Screens can be added in a variety of ways, depending on the state of your project.

### Automatic Gum Screen Addition on New FRB Screen

If you have an existing project which already has a Gum project, then by default your project will receive a new Gum screen any time you add a new FRB screen.

<figure><img src="/files/ogjI5F77OXX0JwS1bbGX" alt=""><figcaption></figcaption></figure>

This behavior is default, and it can be controlled by selecting the .gumx file.

![](/files/HRaF1HhQqduKX9LOmDf7)

### Adding New Gum Screens to Existing FRB Screens

If you have a FRB screen which does not have an associated Gum screen (for example, if the Screen was created before adding Gum to your project), then you can tell FRB  to add a new Gum screen. To do this, select and right-click on the screen, and select the option to create a new Gum screen.

![](/files/sEZszq9wTfLunmhQ5ppP)

This option will create a new Gum screen and add it both to your Gum project and to the current FRB screen. FRB follows the standard naming convention by appending the word "Gum" to your FRB screen name.

![](/files/l9251NSoWlwH68ifvezu)

### Adding an Existing Gum Screen to an Existing FRB Screen

If your project already has a Gum screen and a FRB screen and you would like to add the Gum Screen to the FRB screen, you can right-click on the Files and select the option to add the screen.

![](/files/SYY1rwxMbHy9jyAJcNmT)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/flatredball/gum/adding-screens-to-glue-screens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
