FlatRedBall.Gui.Window.MinimumScaleX

Introduction The MinimumScaleX and MinimumScaleY values set the smallest possible size for a Window. These values are useful if the window is set as Resizable, or if the Window automatically resizes itself, such as is the case with PropertyGrids.

FlatRedBall.Gui.Window.SetPositionTL

Introduction SetPositionTL is a shortcut method for setting the X and Y properties. For example, the following two blocks of code are identical:

5. Events on Gum Objects Part 2

Introduction This tutorial continues our look at working with events on Gum objects. The previous tutorial covered the most basic situation – a clickable button in a screen. We’ll expand upon the previous tutorial by creating a more complicated example – handling events on a popup container which displays a message and allows the user[…]

XForUI

Introduction The XForUI and YForUI members provide a coordinate system that can be used to interact with the default FlatRedBall GUI. There are a few things to keep in mind with the UI: The values reported by XForUI and YForUI are rarely needed. Most interaction with the default FRB UI can be done through events[…]

FlatRedBallXna:Tutorials:Inheriting from Window

Introduction The Window class is the base class for all UI elements in FlatRedBall. It also provides the basic class for constructing your own custom UI element. Creating your own Window is like creating your own class in C#. Available types in C# include float, int, string, and bytes. In the FlatRedBall GUI these types[…]

FlatRedBall.Gui.GuiManager

Introduction The GuiManager is a static object responsible for common UI element management as well as some UI creation. There are two categories of UI elements: Default FlatRedBall GUI objects which are usually used for debugging and tools (these are used in all FRB graphical tools like the SpriteEditor, PolygonEditor, etc) Glue Entities inheriting from[…]