This section discusses how to add new element types to FlatRedBall.Forms. This section is for maintainers of FlatRedBall who would like to add new types to be used across all projects and to be included in new projects created with the wizard.
The high-level steps for creating a new Forms object are:
Define the class in FlatRedBall.Forms shared code project
Identify the required and optional Gum objects for your new control
Create a new Gum component in the embedded Gum project in the Gum plugin
Add a behavior for the new control
Implement the new behavior on the new component
Update FormsControlInfo
and GetIfIsCompleteFulfillment
to include your new behavior and control
Test the new control in a new project
You can verify that the Gum plugin code generation logic has picked up on the new behavior by checking a game's GumIdbExtensions
class. for the presence of your new control.